Self-test
Check your understanding
Self-test11 questions
How does a key determine a partition, and why does that preserve per-key ordering?
What's a hot key, and why doesn't adding partitions fix it?
Why might a Python and a Java producer send the same key to different partitions?
How does the sticky partitioner work, and why can a burst land on a single partition?
Why did
linger.ms=20make the lab producer about 8x faster? What does it cost?What are three ways a producer can silently lose records in application code?
Compare
acks=0,1, andall. Why doesacks=allneedmin.insync.replicas?With RF 3 and
min.insync.replicas=2, what happens to writes when one broker is down? Two?How do producer ids and sequence numbers prevent duplicates and reordering?
Why doesn't idempotence protect against duplicates after an application restart?
- Design question
Configure producers and topics for (a) clickstream analytics and (b) payment events. Justify every setting that differs.