System Design Patterns: From Fundamentals to Real Systems
0% completed
Write-Ahead Log
When checkout writes an order to shard 3 and the shard answers "saved," the answer carries three promises:
- The order survives a crash. If the machine loses power one millisecond later, the order is there after the restart.
- The order is complete or absent. The order row and its item rows are all saved, or none of them are. No restart can leave half an order.
- Every later read sees it. A query on the primary after the answer returns the new order.
The same answer does not make three other promises
.....
.....
.....
Like the course? Get enrolled and start learning!
Reading Progress
0%