Fun with Postgres High Availability Poker
summary
Live demos use playing cards to model WAL, Heap and checkpoints and show that a standalone yields RPO zero but long RTO when recovering from the last checkpoint. Asynchronous replicas confirm commits immediately and risk losing recent transactions; the demo shows missing diamonds when a primary fails. Synchronous commit prevents data loss but doubles latency and requires at least three copies to avoid blocking. The hands‑on build exposes WAL transport, synchronous commit, replica apply lag and network as real failure modes and it works.
AI-written summary · about
chapters (6)
- 0:00Introduction
- 2:21Core database concepts
- 9:29Standalone database model
- 9:46Asynchronous replication
- 17:30Synchronous replication
- 24:35Conclusions and Q&A
related talks
22mSecuring Postgres with streaming replication
55mHigh Availability with PostgreSQL and Pacemaker
02h 26mTutorial
26mMyths and Truths about Synchronous Replication in PostgreSQL
48mReplication Refresh
42mPostgreSQL Replication Conflicts: Avoiding Pitfalls
36mDesigning Layered High‑Availability Architectures for PostgreSQL on a Budget
47mPostgreSQL High Availability: The Considerations and the Candidates
