Cloudflare's Hyperdrive is a globally distributed connection pooler and caching service that significantly reduces latency for serverless applications using Neon Postgres on Cloudflare Workers. It works by maintaining pre-warmed connection pools across Cloudflare's global network, caching read query results at the edge, and reducing network round-trips from ~6 to just 1. Testing showed ~9x faster queries with Hyperdrive enabled. Key clarifications: Hyperdrive should not be combined with Neon's built-in PgBouncer pooler (redundant), and it is incompatible with the Neon serverless driver since Hyperdrive requires TCP while the serverless driver uses WebSockets/HTTP.
Table of contents
What is Hyperdrive?Should I use Hyperdrive with Neon?How does Hyperdrive overlap with Neon’s pooler?So, should I use Hyperdrive together with Neon’s pooling?Should I combine Hyperdrive and the Neon serverless driver?Getting started1 Impression