Skip to content
Theory · Kafka consumers · lesson 1 of 9

Consumer groups

The department billing: three desks with the ledgers 0 1 2 and the department's bookmarks, the fourth desk empty

One consumer cannot keep up with a topic that gets thousands of orders a second. Kafka lets you run several copies of a service and split the work so that each record is processed by only one copy. For that the copies join a group, and Kafka decides on its own who reads which partitions.

In this lesson

  • How a group shares partitions
  • Two copies of a service in one group
  • Rebalancing
  • Lag
  • Common mistake
  • Key points