Home›Design›Decisions
Decisions · eleven, each with a side picked

Decisions

Which database decisions are hard to undo?

You will learn: Eleven decisions, each with a side picked, a price named and what breaks when the choice is wrong.

Eleven decisions a database engineer has to make. Five have a page of their own that picks a side, names the price, and says what breaks when the choice is wrong. The others are covered by pages elsewhere on the site, linked below.

The list

All eleven decisions

  1. Decision 1, Commit path and durability. Covered across the site. Start here explains the log-first rule, and Engines side by side shows what each engine flushes on commit.
  2. Decision 2, Synchronous replication and failover. Read it. What a commit waits for before it returns, and what that choice costs when a server dies.
  3. Decision 3, Backup, PITR and restore time. Read it. Physical backups plus a log archive, the restore-time arithmetic, and the failures that only show up during a restore.
  4. Decision 4, Online schema change. Covered in the query coach, which flags locking DDL for each engine, and in the migration playbooks.
  5. Decision 5, Capacity planning and growth curves. Covered by the capacity calculator and the Estimate it and Scale it sections of every design doc.
  6. Decision 6, Multi-region and latency budgets. Covered in Decision 2: sync inside a region, async to a remote one.
  7. Decision 7, Multi-tenancy and the noisy neighbor. Covered in the multi-tenant SaaS design.
  8. Decision 8, Connection management and pooling. Read it. Pool sizes from the work, what a connection costs in each engine, and where a pooler fits.
  9. Decision 9, Observability. Covered by Something is slow or broken, with the commands for each symptom, and the reference on plans and logs.
  10. Decision 10, Cost model. Read it. Why the database bill is huge, how to find each cause with a query, and a safe order for cutting it.
  11. Decision 11, Major version upgrades. Read it. Upgrading beside the old version, rehearsed on a copy, with a way back.

Each decision page follows the same shape: what the choice is, why it matters, how each engine does it, when to use it, what breaks, the alternatives rejected, how to operate it, and the version notes. The numbers on a decision page are derived from stated assumptions until the Tested on box on that page says otherwise.

Part 3 of 4 · Design · 24 pagesAll pages

Which database does my application need? What kind of application data goes in which database, and why, as design docs, plus the anti-patterns and the decisions behind them.