Consumer group
Consumers sharing one group id split a topic's partitions between them, and the group commits offsets so it resumes where it left off. Different groups read the same records independently.
Minimal example
kgo.NewClient(kgo.SeedBrokers(addr), kgo.ConsumerGroup("notifier"), kgo.ConsumeTopics("order-events"), kgo.DisableAutoCommit())Learn this concept
Lesson 3.13 · Kafka partitions and groupsUsed in exercises
Exercise 3.17 · Notifier worker with retries and DLQ Exercise 3.19 · API and notifier shutdown Exercise 5.5 · Per-user order event bridgePrerequisite conceptsPartition
RelatedAt-least-once delivery