Skip to content

mufti1/kafka-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GO Kafka Example

This is repository how to use kafka in golang, with shopify sarama

Tutorial

You can see tutorial to make this repository in here

How to run

# clone this repo
git clone git@github.com:mufti1/kafka-example.git
# or
git clone https://github.com/mufti1/kafka-example.git

# Add kafka to your hosts
sudo nano /etc/hosts
127.0.0.1 kafka

cd kafka-example

# running docker compose
docker-compose up

# run consumer with command
go run cmd/consumer/main.go

# run publisher with command
go run cmd/publiser/main.go

About

Example produce and consume kafka with test

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages