~/talk

Follow my Leader connecting Postgres client applications after server failover

Talkat Percona Live 2026 Bay Area · 2026-05-27..05-29· [databases]
links:none on file
slides:none on file

Explains concrete options for reconnecting Postgres clients after failover: use driver multi-host URLs (many drivers and Go lack full support), provide a stable address via network load balancer, or move a virtual IP that follows leader with keepalived or PostgreSQL Virtual IP Manager. Recommends PG Bouncer/PGPool/ProxySQL for pooling and to turn downtime into latency because PG Bouncer can pause connections; cites a bank project that fronted a Go app with PG Bouncer and it worked, and suggests Patroni+service discovery for automation.

AI-written summary · about

  1. 0:00Client reconnection after failovers
  2. 1:06Evolution of DB connections
  3. 3:35Components in application and database architecture
  4. 4:39Managing failover connections
  5. 5:20Finding the leader in PostgreSQL
  6. 7:07Stable addresses for failover
  7. 8:33Distributing connections
  8. 10:38Connection pooling benefits
  9. 11:40Proxies protecting the server
  10. 13:05Proxies reducing downtime
  11. 14:27Routing by read/write type
  12. 16:55Proxy complexity in PostgreSQL
  13. 17:16Team roles in failover
  14. 18:21Client reconnection options
  15. 20:51Network load balancer challenges
  16. 21:12VM solution limitations
  17. 22:16Server-side stable address
  18. 23:17Failover with service discovery
  19. 24:20Future protocol improvements
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.