ninjatux / example-kafka-producer

Educational purpose service that writes messages to kafka

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

CICD Workflof

Example Kafka Producer

Example web service that produces kafka messages when the /produce endpoint is called. This application was created for educational purposes.

Local development

# starts the kafka cluster
docker-compose up
# starts the example web service
go run .
# test writing to kafka
curl --location --request POST 'http://127.0.0.1:8080/produce' --header 'Content-Type: text/plain' --data-raw '{"test":"yo"}'

About

Educational purpose service that writes messages to kafka

License:GNU Affero General Public License v3.0


Languages

Language:Go 78.6%Language:Dockerfile 21.4%