ReadingResearchRadarInvestment framework
Sign in / Sign up
← Back to reading
NewsTopic · Datadog PG ProxyQuick take2 min readDisconfirmAI Editorial

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.

2026-12-01 08:00 GMT+8

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.

Sign in / Sign up
ReadingResearchRadarInvestment framework

Sources

  • datadoghq.comDatadog↗
Topic

Datadog PG Proxy

Datadog has open-sourced PG Proxy, a production-ready PostgreSQL proxy written in Go designed to consolidate connection …

3 steps1 piecesUpdated 2026-12-02 01:38

How it got here

  1. 2023-01-012023: Datadog's PostgreSQL Platform team began building PG Proxy after encountering limitations with existing tools like PgBouncer, specifically regarding multi-core scaling and prepared statement support in transaction pooling.datadoghq.dev ↗
  2. 2023-10-01October 2023: Competitor PgBouncer released version 1.21.0, adding support for protocol-level named prepared statements with transaction pooling, a feature Datadog had previously built into their custom proxy.datadoghq.com ↗
  3. 2026-12-01December 1, 2026: Datadog officially open-sourced PG Proxy, publishing the Go library and binary along with documentation on how to deploy it for self-managed and cloud-hosted PostgreSQL databases.datadoghq.com ↗

What is still unsettled

  • When will the open-source release include the internal load-shedding and autoscaling systems currently used at Datadog?
  • How does the performance of PG Proxy compare to other modern poolers like Odyssey or PgDog under high-concurrency workloads?
  • Will the integration with Datadog's Database Monitoring service be available for all users or restricted to specific plans?
Read the full topic →
Continue researching →