โ Back to Amazon RDS and Aurora
๐๏ธ Amazon RDS and Aurora: cheat sheet
๐จ The analogyKeeping your records at a council-run records office that fixes the building, copies the files and keeps a twin office.
๐ The regular explanationRelational databases that AWS runs for you. RDS handles patching, backups and failover to a synchronous standby; Aurora adds storage shared by all instances and spread across three Availability Zones. You still own the schema, the queries and how your app connects.
- The council fixes a weak lock on the records office, at a quiet hour Bea picked. Bea doesn't lift a finger.
- Each night the council photographs every cabinet, and it writes every single filing in a logbook as it happens.
- Bea does her own part. She writes the index cards that help the clerk find her orders fast, and she decides what to ask for.
- Bea asks the clerk to throw away the wrong drawer at 3:15. The council sets up a fresh office with the cabinets exactly as they were at 3:14.
- The signpost points at the main office, so Bea's form goes there.
- The clerk files the form in the twin office too, and only then tells Bea "done". The twin keeps its doors shut to visitors.
- The main office floods. Bea's next form can't get in.
- The council opens the twin office and turns the signpost to point at it.
- Bea follows the signpost again, ends up at the twin office, and every form she was told "done" about is there.
- Bea changes a price at the main office, and the clerk says "done" straight away. The reading rooms haven't heard yet.
- A moment later, the courier brings a copy of the change to each reading room.
- The accountant and the delivery driver look things up in the reading rooms, so the main office stays free for forms.
- Someone tries to hand in a form at a reading room. It's turned away; forms only go to the main office.
- Bea follows the main signpost to the main counter. The counter puts her form on the vault's shelves in all three districts.
- Once four of the six copies are on the shelves, the form counts as filed, and Bea hears "done".
- Readers follow the reading signpost to a reading counter. Each counter looks in the very same vault, so it's barely behind.
- The main counter closes suddenly. Bea's next form can't get through.
- Reading counter 1 just starts taking forms, and the main signpost turns to it. No files had to move; they were in the vault all along.
- Two of Bea's helpers each grab a big batch of service windows, then mostly stand there. Every window is taken.
- A third helper arrives and is turned away at the door, even though the clerks are mostly idle.
- The council puts a doorman at the entrance. Every helper talks to the doorman, and the doorman keeps just a few windows open.
- The doorman passes each helper's form through whichever window is free. Many helpers now share a few windows.
- The helper's address card names the signpost. The signpost points at counter A, and the form goes there.
- Counter A shuts in the middle of an errand. The half-finished errand doesn't count, so nothing was half-done.
- Counter B takes over, and the signpost turns to it. The helper lets go of the old window and reads the signpost again.
- The helper tries the whole errand once more, from the start, and this time it's done.
๐งฉ Key questions
- Bea asks the clerk for every order ever, sorted by colour, and it takes ages. Whose job is it to fix?
- Bea's: she writes the index cards and decides what to ask for. The council looks after the building, the photos and the twin office. How the files are organised is up to Bea.
- The main office floods. Why doesn't Bea lose any form she was told was done?
- Every form was filed in the twin office before the clerk said done. The twin office already has everything, so the council just turns the signpost to it.
- In the newest offices, why can a reading counter take over from the main counter so quickly?
- The files sit in a shared vault, so there's nothing to move or catch up on. Six copies of every page sit in three districts. The counters are just ways in.
- Bea's helpers keep getting turned away at the door, although the clerks are mostly idle. What helps?
- A doorman who keeps a few windows open and shares them between helpers. Most helpers stand at their window doing nothing. Sharing windows lets many helpers use a few.
- Counter A shuts in the middle of the helper's errand. What should the helper do?
- Let go of the old window, read the signpost again and redo the whole errand once. A half-finished errand never counts, so redoing it from the start is safe, as long as doing it twice wouldn't hurt.