Connection Pooling: PgBouncer, RDS Proxy, and the Serverless Postgres Problem


The same query: 2ms or 3,000ms — the difference is one B-tree. How database indexes actually work, composite column order, covering indexes, and when the planner says no.
A production-grade deep-dive into the ambassador pattern — covering outbound proxy architecture with Envoy, per-dependency retry policies, connection pooling, circuit breaking, protocol translation, and the decision framework for choosing between ambassadors, sidecars, and service meshes.
Dirty reads, lost updates, and write skew: the bugs each isolation level permits, what Postgres and MySQL actually default to, and the cheapest weapon per write path.
Partitioning makes one box manageable; sharding makes many boxes act as one database. The decision table, shard-key design, and the scaling ladder to exhaust first.
Advertise and partner
Reach engineering leaders and CTOs reading about AI, mobile and cloud architecture.
Sponsored mentions and co-authored articles or technical deep-dives. Relevant products only, always disclosed.