Kafka Go client quick start

Here is a Docker based example for Kafka using Go client

Overview

  • Producer
    • uses the traditional API for pushing messages to Kafka (channel is another option)
    • receives notifications on the (default) Events (custom channel is another option or you can choose not to get notified)
  • Consumer uses (Events) channel – Poll()ing is another alternative
  • Docker Compose to bootstrap the sample app (producer and consumer) as a single unit
  • BYOK (bring your own Kafka) for trying this out

To run

Check out the README – it’s super easy to get going, thanks to Docker Compose!

References

Cheers!

 

About Abhishek

Loves Go, NoSQL DBs and messaging systems
This entry was posted in Distributed systems, Kafka, messaging. Bookmark the permalink.

Leave a comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.