All Questions
Kafka medium

For 'Keyless' messages, modern Kafka Producers utilize the 'Sticky Partitioner' instead of pure Round-Robin. What is the performance driver for this change?

  1. A It ensures that all messages for the whole day go to Partition 0 to save disk space.
  2. B Batch Efficiency: By sticking to one partition until a batch is full (or timed out), the producer can significantly reduce network requests and improve compression ratios compared to spreading small, individual messages across all partitions.
  3. C It encrypts the partition ID to prevent eavesdropping.
  4. D It forces the broker to use SSD storage for that specific batch.

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

Get the app

Related questions