Batching (செய்திகளை குழுவாக்குதல்) மற்றும் compression (தரவை சிக்க மாற்றுதல்) ஆகியவை Kafka throughput க்கான முக்கிய நுட்பங்கள் — செய்தி-ஒரு-சுமை மற்றும் நெட்வொர்க்/சேமிப்பு செலவுகளை குறைக்கின்றன. இவற்றைப் புரிந்துகொள்வது Kafka இன் உচ்च செயல்திறனை அடைய உதவுகிறது.
Batching — செய்திகளை குழுவாக்குதல்
BATCHING → the producer groups multiple messages into a single BATCH before sending:
→ fewer, larger requests instead of many tiny ones → much higher THROUGHPUT (less
per-request overhead, fewer network round-trips)
→ controlled by: batch.size (batch size limit) + linger.ms (wait time to accumulate a batch)
→ trade-off: slightly higher LATENCY (waiting to batch) for much higher throughput
→ batching is essential for high-throughput producing
