When Everything Went Kafka 2: Accelerating Producers
summary
A deep dive into Kafka Producer internals for Java applications, examining which Kafka producer settings affect performance and how the producer actually works. Covers performance metrics, methods for finding bottlenecks, and how to tune producer parameters to meet external requirements like latency, throughput, and reliability.
AI-written summary · about
chapters (20)
- 0:00Kafka producers intro
- 1:26High-load Kafka cluster
- 2:28Producer internals deep dive
- 6:48Record accumulator & batching
- 11:45Sender thread operation
- 13:55Kafka producer metrics
- 20:19Experimental setup & first test
- 24:15Buffer pool bottleneck
- 27:28Maximizing request rate
- 30:16Batch size tuning impact
- 35:21Partition count increase
- 41:15Sender latency components
- 44:54Worker thread contention
- 47:02Callback performance impact
- 48:47Broker-side bottlenecks
- 51:17Network & disk limits
- 53:45Broker resource usage
- 57:17Data replication
- 59:24Summary & recommendations
- 1:05:24Q&A
