Skip to content

A small example of Kafka producer and consumer, based on Allura Apache Kafka Formation

License

Notifications You must be signed in to change notification settings

robsonbittencourt/kafka-example

Repository files navigation

kafka-example

header

This project demonstrates some of the concepts learned in Allura's Apache Kafka formation.

The project is simple, to serve as a basis for other projects, and so that the concepts of producers and consumers can be easily visualized.

Running

Running Kafka, Zookeeper and consumer

docker-compose up -d

Visualize consumer logs

docker logs -f consumer

On another terminal, run producer. This creates ten Order events. You can run this command many times.

docker run --rm --name=producer --net=host robsonbittencourt/kafka-example-producer

running

About

A small example of Kafka producer and consumer, based on Allura Apache Kafka Formation

Topics

Resources

License

Stars

Watchers

Forks