Kafka 101
summary
Covers concrete Kafka tuning: how to push 100–200 MB/s per topic by increasing batch size, setting linger and buffer.size, and enabling compression (tested zstd/gzip) so network and MSK ingress limits (observed ~100 MB/s throttle) don’t block throughput. Recommends replication factor ≥2 (leader+1) to avoid data loss, notes max message sizes tested (10 MB typical, once tried 100 MB), and shows consumer scaling is bounded by partition count and CPU. Uses transactions and the inbox/outbox pattern to avoid duplicates; native async hacks proved risky in production.
AI-written summary · about
chapters (10)
- 0:00Introduction to Kafka basics
- 2:49Why Kafka and replication
- 7:54Producer configuration and limits
- 12:10Consumer groups and offsets
- 18:20Producer optimization techniques
- 21:54Consumer optimization and delivery
- 26:54Handling duplicates and transactions
- 30:51Code examples and common mistakes
- 37:22Inbox and Outbox patterns
- 40:35Q&A and final thoughts
