GithubHelp home page GithubHelp logo

go-kafka-consumer's Introduction

Go-kafka-consumer

Go Api Auth JWT Cassandra

Written in Go Kafka consumer/producer is Kafka consumer that consult a kafka topi and get event sent by a producer

The API has many features and support runing on multiple platform :

  • Go Kafka consumer/producer is able to run on different Operating System :
  • MacOs, Linux and Windows support.
  • Added support of various Linux verion :
    • Ubuntu
    • Debian
    • Redhat
    • Fedora
    • CentOS
  • For other operation system go in DIY mode
  • Docker version of this api is still under developpment

Who Uses Go Kafka consumer/producer

How It Works

  1. Go Kafka consumer/producer the api authenticate a preregistred user under apache Cassandra
  2. Go Kafka consumer/producer set a token to the http client
  3. The registred user is able to fetch protected pages

Usage

Show Installtion Instructions

JWT Go example

Example application that implements JWT based authentication. Read the blog post here

Install go

visit https://go.dev and install Go on your Operating system

Install go dependencies

    export GO111MODULE=auto
go get github.com/segmentio/kafka-go

Apache Kafka

Run Zookeeper

kafka_2.12-2.8.0$ bin/zookeeper-server-start.sh config/zookeeper.properties 

Run Kafka

kafka_2.12-2.8.0$ bin/kafka-server-start.sh config/server.properties 
localhost:9092

Create a topic

../../Downloads/kafka_2.12-2.8.0/bin/kafka-topics.sh --create --topic sp-user --bootstrap-server localhost:9092

Go

Producer

go run producer.go

Consumer

go run consumer.go
for awesome badges

https://github.com/alexandresanlim/Badges4-README.md-Profile/blob/master/README.md

go-kafka-consumer's People

Contributors

cloudevops101 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.