Coding Blocks

Designing Data-Intensive Applications – Transactions

5 snips
Jan 23, 2023
Ask episode
AI Snips
Chapters
Transcript
Episode notes
ADVICE

Decide Transactions By Failure Impact

  • Ask what breaks if an operation doesn't complete to decide whether to use a transaction.
  • Prefer transactions when you update multiple objects or systems together to avoid inconsistent state.
ADVICE

Duplicate Data For Different Use Cases

  • Duplicate data across systems when each system serves a distinct purpose like search or analytics.
  • Use a single authoritative system of record and copy data to specialized stores as required.
INSIGHT

ACID Is A Useful But Fuzzy Guarantee

  • ACID definitions are decades old and vary across systems, so the acronym gives only a rough guarantee.
  • Different databases and configs implement each letter differently in practice.
Get the Snipd Podcast app to discover more snips from this episode
Get the app