In this lesson · topic 7 of 7
Topic 7
Owners, order and commits: three checks
3 min read
Predict first
Predict first
Predict first
Take away
- A partitioned log keeps order per key and shares the load across consumers by giving each partition one owner.
- Parallelism is capped by the partition count. A hot key is capped by a single partition.
- Offsets are addresses. Commits save progress, and a restart or rebalance repeats the work since the last commit.
- A log can be replayed, within retention. Order across keys is not guaranteed.
Sources
- Jay Kreps, Neha Narkhede and Jun Rao, Kafka: a distributed messaging system for log processing, NetDB, 2011.
- Martin Kleppmann, Designing Data-Intensive Applications, O’Reilly, 2017. The chapter on stream processing covers partitioned logs, offsets and replay.
- Tyler Akidau and others, The Dataflow Model, Proceedings of the VLDB Endowment, 2015.