Picture an e-commerce store running on Postgres. The primary handles checkout, inventory decrements, and order writes. Three read replicas sit behind a connection proxy and serve product page views, search, and the recommendation feed. On a normal day the primary handles maybe 2,000 writes per second while the replicas collectively serve 50,000 reads per second.
During a flash sale, read traffic spikes. The team spins up two more replicas in minutes and the proxy starts routing reads to them. The primary is untouched, so checkout stays fast. When a replica falls 5 seconds behind because of a replication hiccup, the proxy temporarily stops sending it traffic until it catches up.
One night the primary's disk fails. Patroni detects it within a few seconds, promotes the most caught-up replica to primary, and updates the DNS or proxy config. Writes resume after roughly 10 to 30 seconds of downtime, and because they ran synchronous replication to one replica, no committed order was lost.