this a simple consumer sample
install kafka
https://www.cnblogs.com/mignet/p/window_kafka.html
https://www.apache.org/dyn/closer.cgi?path=/kafka/2.3.0/kafka_2.12-2.3.0.tgz
$ go run .
./kafka-console-producer.bat --broker-list localhost:9092 --topic fruit
> {"authToken":"","createdAt":"2019-07-30T23:51:30.5899707Z","payload":{"name":"apple"},"requestId":"","status":"FruitCreated"}
you will see the new message in your console
Content type
Image
Digest
Size
8 MB
Last updated
about 7 years ago
docker pull relaxed/consumer-kafka