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 12 · System Design · The questions that keep coming up · about 18 min to read

Watch: Event-driven architecture: the ledger everyone reads
▶ VideoPlay it as a journeyTutor comes with a plan

Delete means delete (a user asks to be forgotten, and the data is in six places)

The Ledger Everyone Reads
The Ledger Everyone Reads · Open board

One book on the counter, and several people each keeping their own copy of it: this lesson asks what “erase this page” means once the page has been copied to every one of them.

Before you start. The Ledger Everyone Reads (event-driven & the log) gave you one log that many readers each keep a copy of, which is exactly why a delete is hard here. The copy clerks (database replication) gave you the replica, a second database that repeats every change. Backups and the day you need them (RPO, RTO, and the restore nobody tested) gave you the backup, a copy that deliberately stops following, and it is one of the six places this lesson chases. Data About People told the short version of erasure, and this lesson is the design that makes the promise keepable.

Lesson 71 of 115 in System Design

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

  • January 2017: Dropbox, and the files that were never deleted
  • 2014 and 2018: the law asks for the letter back, an erasure request
  • Six places a deleted row survives: the retention window
  • Tombstone: a strike through the name, not a torn page
  • Crypto-shredding: lock each person’s letters in their own box, then burn the key
  • Audit trail: proving you forgot, without remembering who
  • Step 1, requirements
  • Step 2, out of scope
  • Step 3, targets
  • Step 4, estimates that change the design
  • Step 5, entities and API
  • Step 6, storage, with the trade said plainly
  • Step 7, the design, one requirement at a time
  • Step 8, deep dives
  • What each level adds
  • The follow-up: payments must be kept for years

Terms it explains: erasure request, retention window, tombstone, soft delete, hard delete, crypto-shredding, audit trail, Common mistakes.

Lab

The same answer is correct under one promise and a violation under another. Which promise did you make?

Drag Moments the boards run behind the ledger to 3, press Play next moment through the evening, and watch promises broken.

Open The ledger everyone reads

Every sale goes in the register and must also reach the warehouse. The app crashes now and then. Which design lets the two disagree?

Drag How often the app crashes, then switch the tab to Write once, copy from the diary, and watch Do the two agree.

Open The write that happened twice

Related papers

Review System Design