All Questions
Kafka medium

In a high-throughput producer, what is the trade-off of increasing `linger.ms` (e.g., from 0ms to 20ms)?

  1. A It increases per-message latency, but significantly improves overall cluster throughput by allowing the producer to batch more messages into a single network packet and disk write.
  2. B It decreases both latency and throughput by forcing the CPU to work harder on encryption.
  3. C It increases the risk of data loss, as messages are stored in volatile RAM for longer periods without being acknowledged.
  4. D It disables the use of Kafka's internal compression algorithms (Snappy/Gzip).

One system design question a day, with spaced repetition so the ones you miss come back.

Get the app

Related questions