sticky partitioning
A strategy for unkeyed records that keeps sending to one partition until the current batch is full, then moves on to another.
In more detail
Filling one batch at a time gives bigger batches and fewer requests than spreading every record separately. The Java client uses it by default for records without a key.
Related terms
- partitioner — The producer component that chooses which partition each record is sent to.
- record batch — A group of records sent to the broker together in one request, instead of one request per record.
- round robin — A way of spreading work by taking turns in a fixed order, giving the next item to the next recipient in the list.
Taught in
- Where A Record Lands — Confluent Apache Kafka Certifications (CCDAK and CCAAK) Exam Prep
- Keys And Ordering Per Partition — Apache Kafka & Event Streaming