A Kafka consumer cannot keep up with its partition, so it is sped up with a worker pool: each record goes to the first free goroutine. A day later a complaint comes in: an order was paid before it was created. The pool broke the order that the partition kept. And when the workers still cannot keep up, records pile up in the consumer's memory until the process crashes.
In this lesson
- Order per key
- Back-pressure
- Common mistake
- Key points