https://github.com/digorithm/event-driven-kafka-go-template
Simple template for event-driven systems using Go and Kafka.
https://github.com/digorithm/event-driven-kafka-go-template
golang kafka sarama
Last synced: about 1 year ago
JSON representation
Simple template for event-driven systems using Go and Kafka.
- Host: GitHub
- URL: https://github.com/digorithm/event-driven-kafka-go-template
- Owner: digorithm
- Created: 2020-08-24T16:25:50.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2020-08-24T16:33:15.000Z (almost 6 years ago)
- Last Synced: 2025-03-27T00:54:57.434Z (over 1 year ago)
- Topics: golang, kafka, sarama
- Language: Go
- Homepage:
- Size: 11.5 MB
- Stars: 5
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Simple template that I've been using to build event-driven systems using:
1. Go
2. Kafka
3. Sarama's Kafka API (https://github.com/Shopify/sarama)
It's organized as a reusable producer code in a high-level package (`pkg`). This producer can be used embedded in any consumer.
Then we have the consumers, I created two as an example: `ordering` and `payment`. Creating a new consumer is only about following what has been done in these packages.