Phase 2Intermediate3 of 18 in Apache Kafka
Producers
Inside the producer: serializers, partitioner, record accumulator and sender thread; batching and compression; acks and durability; retries, timeouts, the idempotent producer and in-flight requests.
Most data loss and duplication in Kafka systems is decided at the producer: which acks setting, what happens on a timeout, whether retries can duplicate or reorder records. Most throughput problems are also decided here, by batching and compression.
Since Kafka 3.0 the defaults are safe (acks=all, idempotence on). This phase explains what those defaults do, when they're not enough, and how to tune for throughput without giving up safety.
0/4 · 0%
4 topics ~33 min 8 code blocks & diagrams