Examples of using go-kit-kafka with various Apache Kafka client libraries
-
producer - a service that provides an endpoint for generating and producing events to the specified topic in Apache Kafka
-
consumer - the service that able to consume events from kafka topic, store them the in inmemory storage and provide an endpoint to list all consumed events
Bootstrap full project using docker compose:
docker compose -f <example>/compose.yml up
To produce an event send the following request:
curl -X GET http://localhost:8081/events
To view all events send the following request:
curl -X GET http://localhost:8080/events