- Batch Consumer
- Batch Consumer with transient pool map memory to reduce memory allocation
- Batch Consumer should be able to process messages without waiting all batch message to fill-up a map
- Flexible yet Simple Producer
- Producer must implement all the needs of the consumer such as batch
- An interface to control state of produced message(s)
- Unbound internal and external Interface definitions such as ConsumerInstance
- Integration Test
- Watermark query to get message count of given topic
- Run
docker-compose up
- Check
localhost:8080
to make sure kafka is running with no problem - Run
go run example_producer/
to first fill-up topic - Run
go run example/
to consume messages
...
2024/08/03 01:32:23 Handle() Producer example, message #1097564
2024/08/03 01:32:23 Handle() Producer example, message #1097565
2024/08/03 01:32:23 Handle() Producer example, message #1097561
2024/08/03 01:32:23 Handle() Producer example, message #1097566
2024/08/03 01:32:23 Handle() Producer example, message #1097568
2024/08/03 01:32:23 Handle() Producer example, message #1097567
2024/08/03 01:32:23 Handle() Producer example, message #1097569
2024/08/03 01:32:23 Handle() Producer example, message #1097570
...