Datadog Open-Sources PG Proxy: A Go-Based PostgreSQL Proxy Handling 4 Trillion Queries Monthly
Datadog has open-sourced PG Proxy, a production-ready Go-based PostgreSQL proxy that consolidates connection pooling, dynamic routing, and observability integrations to handle massive scale.
Datadog announced on December 1, 2026, the open-source release of PG Proxy, a production-ready PostgreSQL proxy written in Go. The tool is designed to consolidate connection pooling, traffic management, authentication, and telemetry into a single access layer for database infrastructure.
Before PG Proxy, Datadog relied on a mix of PgBouncer for connection pooling, HAProxy for load balancing, and Envoy for discovery. This fragmented setup made it difficult to coordinate database migrations and maintain consistent visibility across components. PG Proxy addresses this by combining transaction pooling with support for named prepared statements, allowing clients to reuse parameterized queries while sharing backend connections efficiently.
The proxy also introduces dynamic routing capabilities, automatically sending eligible read-only transactions to replicas while directing writes to the primary database. This feature aims to reduce stress on the primary instance without compromising query results. Additionally, PG Proxy integrates with identity systems and tracing tools, enabling platform teams to tie database access to specific service identities and monitor request flows through the proxy.
According to Datadog's engineering blog, the company currently operates PG Proxy in front of thousands of PostgreSQL hosts and hundreds of logical clusters. The reported scale includes 4 trillion messages proxied per month, more than 1,000 messages per second per core, over 200 million authentications per day, and more than 600,000 open client connections. These metrics highlight the proxy's capacity to handle high-throughput environments typical of large-scale cloud platforms.