ML
Topic

Apache Kafka

Production-grade notes on Apache Kafka — the log format on disk, the durability contract, the partition strategy that decides whether your cluster scales or melts, and the operational gotchas that only show up under real load.

7 articles · updated regularly

Apache Kafka
Jul 06, 20269 min

The Order That Shipped Twice: A Rebalance in the Middle of a Long Batch

A Kafka consumer processed every message exactly once for months, and then one afternoon a handful of orders shipped twice. Nothing had crashed, no message was redelivered by a broker retry, and the offsets on the dashboard looked healthy. The consumer had committed an offset it had not actually finished processing, a rebalance handed the same partition to another instance, and that instance dutifully reprocessed a batch the first one was still working through.

KafkaConsumers
Read