Module 03 · Data Systems · Data in motion · about 17 min to read
Continue where you left off ×
Where Data Systems Are Heading
Where Data Systems Are Heading · Open board
The last board in the Data Systems track. It asks what holds a product’s several copies of the same facts together, and closes on what all that remembering is for.
Before you start. The previous lesson, Stream Processing , showed you the log: an add-only list of what happened, read from the start whenever you want to replay it. This lesson asks what happens when four different systems each want their own copy built from that same list, and what it costs when they don’t.
The idea in 30 seconds
Several stores holding the same fact must be kept in step, and updating each one separately, a dual write, can drift forever without ever throwing an error.
The fix is one add-only list, the log, treated as the source of truth. Every other store is a derived view: nothing but the log, replayed.
A derived view can always be deleted and rebuilt, because it was never more than a function of the log.
The same log, split by key, stops two people claiming the same name without a lock or a message between workers.
“Is this consistent” hides two questions: timeliness (has it caught up - it will) and integrity (is it even correct, nothing but the design fixes that).
The same rule, that only the two ends of a trip can confirm it happened, guards money outside databases too, and what a log is allowed to remember has real costs to real people.
Read the story
Lesson 22 of 24 in Data Systems
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 plans Already a member? Sign in
Or start free : a free account opens lessons 2 and 3 of every track.
In this lesson A customer updates one address, and four systems have to agree Two updates land in the wrong order, and nobody notices September 2014: an engineer just off two years inside the problem names the fix The same list solves a harder problem too: no two people get the same name The worry that turns out to be two different worries One more check, and only the two ends can make it What all this remembering is for Reflection (instead of “try it”) Terms it explains: dual write, log, source of truth, derived view, Timeliness, Integrity, unbundling the database, narrow waist, dataflow, end-to-end argument, algorithmic bias, auditing, consent, data integration, data minimization, derivation function, feedback loop, idempotency id, timeliness vs integrity.
Review Data Systems
Mark as read Saved in this browser, and to your account when you sign in.