Index

Free, with Google

Keep going, free.

A free account opens lessons 2 and 3 of every track, 33 more lessons, and keeps your progress and review cards on every device.

Start free with Google

A chalk plan

Open everything on chalk.

Every lesson, board, video, lab and paper, and the full review decks. Yearly is $39/year.

See plansStart free instead

Module 04 · From Scratch · Kafka · with code: Go · about 21 min to read

Play it as a journeyTutor comes with a plan

Kafka: Replication and Durability

Replication and Durability
Replication and Durability · Open board

The toy’s three filing cabinets holding copies of the same partition, and the line marking what every one of them is guaranteed to hold. Follows Kafka 05: Consumer Groups, which split the reading work across many programs, and hands off to Kafka 07: Exactly Once.

Before you start. This series builds a small copy of Kafka, a program that other programs send records to, in order, and read back later in that same order. So far your toy can: write records one after another into a file that only ever grows (the log). Cut that file into numbered pieces so old ones can be thrown away (segments). Split one topic’s traffic across several of those logs at once, so more than one machine can share the writing (partitions). And let a group of reader programs split up the reading between them (consumer groups). Every one of those logs, so far, has lived on exactly one machine. This lesson is about the day that machine is gone.

Lesson 29 of 117 in From Scratch

The rest of this lesson is part of a plan.

A plan opens every lesson, board, video, lab and paper on chalk. Yearly is $39/year.

See plansAlready a member? Sign in

Or start free: a free account opens lessons 2 and 3 of every track.

In this lesson

  • 2013: the man who breaks databases points his rig at Kafka
  • Copies on other machines: the leader who writes, the followers who wait
  • The roster: an in-sync set that can shrink to one
  • The bookmark: a page number no reader may pass
  • acks: how many cabinets the sender waits for
  • The floor under acks, and the choice Kingsbury forced

Terms it explains: replication factor, leader, followers, in-sync replica set, ISR, high-water mark, acks, min.insync.replicas, The, HWM, unclean election.

Related papers

Review From Scratch