Hands On Kafka

Hands On Kafka

Kafka Mastery: Building StreamSocial - Java & Spring Boot Edition

Day 16: Batching & Throughput Optimization

Kafka Mastery: Building StreamSocial — Java & Spring Boot Edition, Module 2: Producer Reliability & Performance (Days 11–20)

Oct 01, 2026
∙ Paid

What we’ll build today

  • batch.size, linger.ms, buffer.memory: made explicit, tuned toward StreamSocial’s 50M req/s peak-traffic target

  • A precise, non-obvious explanation of why linger.ms=10 costs far less than it looks like it should

  • BatchingThroughputBenchmark: a real, concurrent sweep finding the actual throughput/latency knee

User's avatar

Continue reading this post for free, courtesy of Kafka.

Or purchase a paid subscription.
© 2026 SystemDR · Privacy ∙ Terms ∙ Collection notice
Start your SubstackGet the app
Substack is the home for great culture