Datadog Open-Sources PG Proxy to Unify PostgreSQL Pooling and Routing
Datadog has open-sourced PG Proxy, a PostgreSQL proxy and transaction-level connection pooler in Go. This tool enables platform teams to manage connection pooling, routing, and destinations in one unified solution, rather than relying on separate tools. PG Proxy operates in front of thousands of PostgreSQL hosts and hundreds of logical clusters. By Robert Krzaczyński
Datadog has open-sourced PG Proxy, a PostgreSQL proxy and transaction-level connection pooler written in Go. This tool aims to unify PostgreSQL pooling and routing, allowing platform teams to manage connection pooling, routing, and destinations using a single solution. Prior to the open-source release, Datadog applications connected to PostgreSQL through a mix of direct connections, PgBouncer for pooling, HAProxy for load balancing, and Envoy for discovery and health checks.
PG Proxy consolidates these functionalities into a single access layer, enabling clients to maintain the same proxy endpoint and database name even when destinations change. The tool uses transaction pooling, allowing long-lived client sessions to share a smaller pool of backend connections, and maintains support for named prepared statements across reassignments.
Brief written by urgent.news; may contain errors — check the original. How we use AI.
Source: infoq.com