A topic scales by splitting into partitions; each partition is read by one consumer per group, in order — so partitions cap your parallelism, and only events with the same key keep their order.
A shop writes order events to the topic “orders” at 30 events per second, spread over 4 partitions. The “billing” group has 2 consumers that each finish 10 events per second. Rates are tiny and illustrative, so you can watch single events.
Produced
30/s
Consumed
20/s
max 20/s now
Total lag
0 events
Consumers working
2 of 2
none idle
Processed twice
0
replayed after a crash
analytics lag
off
second group not running
Crashes C1 (reads P0, P1). Rebalance pause: 3 s.
A shop writes order events to the topic “orders” at 30 events per second, spread over 4 partitions. The “billing” group has 2 consumers that each finish 10 events per second. Rates are tiny and illustrative, so you can watch single events.
Illustrative model: rates are tiny so single events can be watched (real consumers handle thousands per second), arrivals are random but seeded, and the rebalance pause is shortened.