RANIARANIA Academy

Replication, Scaling & High Availability

Learn to run PostgreSQL in production — configure streaming replication and read replicas, choose between synchronous and asynchronous commit, plan failover, pool connections with PgBouncer, partition large tables, and monitor the metrics that keep a cluster healthy. You finish able to design and operate a resilient, scalable PostgreSQL deployment.

Watch the free preview

How PostgreSQL replication works — WAL and standbys — free to watch, no account needed.

PostgreSQL ADVANCED · 150 min · Certificate on completion · 3 CPD points

What you'll learn

  • Run PostgreSQL in production with replication, pooling, partitioning and monitoring in place
  • Configure physical streaming replication and read replicas from a primary
  • Choose between synchronous and asynchronous replication for a given durability requirement
  • Plan and execute a controlled failover, and pool connections with PgBouncer
  • Partition large tables and monitor replication lag and other key cluster metrics

Syllabus

Streaming Replication Fundamentals
How PostgreSQL replication works — WAL and standbysFree preview15 min
Building a streaming standby and read replicas15 min
Durability and Failover
Synchronous versus asynchronous replication15 min
Failover, promotion and high availability15 min
Pooling and Partitioning
Connection pooling with PgBouncer15 min
Partitioning large tables15 min
Scaling and Monitoring
Vertical versus horizontal scaling15 min
Monitoring the metrics that matter15 min
Lab — 10 Exercises & Solutions
Exercises 1–515 min
Exercises 6–1015 min