Pretend concurrency and crashes don't exist — and learn exactly which race conditions each isolation level lets through.
The database or its hardware can crash halfway through a write. The application can crash mid-operation. The network can drop. And several clients can write at the same time, overwriting each other or reading half-finished updates.
A transaction groups several reads and writes into one logical unit: either it all succeeds (commit) or it all fails (abort, rollback) — and if it fails, the application can safely retry.
Reach the last step for the post-mortem: five takeaways from this chapter.