Discover Packages
github.com/manumura/go-kafka-demo
module
Version:
v0.0.0-...-0a71ebe
Opens a new window with list of versions in this module.
Published: Apr 26, 2023
License: MIT
Opens a new window with license information.
README
README
¶
go-kafka-example
Thanks to https://medium.com/swlh/apache-kafka-with-golang-227f9f2eb818
curl --location --request POST '0.0.0.0:3000/api/v1/comments'
--header 'Content-Type: application/json'
--data-raw '{ "text":"nice boy" }'
curl --location --request POST '0.0.0.0:3000/api/v1/comments'
--header 'Content-Type: application/json'
--data-raw '{ "text":"keep up the good work" }'
Kafka
docker compose up
docker exec -it zookeeper bash
./bin/zkCli.sh
create /kafka-manager/mutex ""
create /kafka-manager/mutex/locks ""
create /kafka-manager/mutex/leases ""
Expand ▾
Collapse ▴
Directories
¶
Click to show internal directories.
Click to hide internal directories.