System Design Patterns: From Fundamentals to Real Systems
Vote

0% completed

​

Write-Ahead Log

1. The Incident

Tuesday, 3:07 AM: a power failure shuts down the rack holding shard 2. The machine reboots ninety seconds later; now one of two bad mornings begins.

Bad morning A: the database refuses to start; it reports "Data files corrupted." Here is how that happens. A single UPDATE is not one disk operation; changing an order's status touches the table row and two indexes; that is three separate places on disk. The power died after the first write and before the other two. Now the files disagree with each other: an index points at a row that says something else

.....

.....

.....

Like the course? Get enrolled and start learning!

Reading Progress

0%


Vote for new content