Skip to content

golang service which will relay events to another kafka/topic

License

Notifications You must be signed in to change notification settings

bculberson/kafka-relay

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

kafka-relay

To run:

docker-compose up

In one terminal (source):

docker-compose exec kafka /opt/kafka/bin/kafka-console-producer.sh --topic source --broker-list localhost:9092

In another terminal (destination):

docker-compose exec kafka /opt/kafka/bin/kafka-console-consumer.sh --topic destination --bootstrap-server localhost:9092

This will relay all messages you type into source terminal into destination.

Examples to write:

{"id": 1, "foo": "bar"}
{"id": "2", "bar": "foo"}

About

golang service which will relay events to another kafka/topic

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages