Kafka 04: Partitions

From Scratch: Kafka. Follows Kafka 03: Segments and the Offset Index, which made one log survive a crash and search fast, and hands off to Kafka 05: Consumer Groups.
Before you start. You need to know that Kafka keeps every message it’s given in one long, append-only file - a log - and that each message gets a number called an offset marking its place in that file, counting up from zero. The last lesson cut that file into numbered, throwaway-able chunks so it could survive a crash and be searched fast; this lesson is about the file itself running out of room to go any faster.