# Cloudflare Hyperdrive
[[Cloudflare]] Hyperdrive is a connection pooler and query accelerator for existing [[PostgreSQL]] and [[MySQL]] databases, sitting between [[Cloudflare Workers]] and a regional origin database. It solves the classic "Workers can't open thousands of Postgres connections" problem by maintaining a warm pool of connections to the origin and multiplexing Worker requests over them.
It also caches read queries at the edge (on by default, with a configurable TTL, and you can turn it off), so common SELECTs are served from cache rather than round-tripping to the origin.
## Why It Matters
Serverless + traditional Postgres has always been awkward: every Worker invocation could open a new TCP connection, exhausting the database's connection limit. Solutions like PgBouncer help, but you have to host them somewhere. Hyperdrive removes that operational concern — pool management is Cloudflare's problem, not yours.
## Common Use Cases
- **Connecting Workers to existing Postgres** (Neon, Supabase, RDS, self-hosted)
- **Reducing latency** for Workers reading from a regional database by caching at the edge
- **Migrating off serverless databases** without rewriting code — point Hyperdrive at any Postgres URL
- **MySQL** workloads with the same shape
## What changed in 2026
- **Private databases** (April 29): connect Hyperdrive to a database that isn't on the public Internet through a Workers VPC service, which rides on a [[Cloudflare Tunnel]]
- **PlanetScale from the dashboard** (June 18): create PlanetScale Postgres or MySQL databases from Cloudflare and pay for them on your Cloudflare bill
- **MySQL is GA** (August 7), at the same price as Postgres
- **Python Workers** can use Hyperdrive (September 16)
- **Pricing**: included in both Workers plans; Free caps you at 100,000 database queries per day, Paid has no query limit
## When to Use What
- **[[Cloudflare D1]]**: Cloudflare-native, SQLite, single primary, generous free tier
- **Hyperdrive**: existing Postgres/MySQL, regional origin, want Workers-native access
- **Direct Postgres from Workers**: small workloads, no scaling needs
## References
- Hyperdrive home: https://developers.cloudflare.com/hyperdrive/
- Supported databases: https://developers.cloudflare.com/hyperdrive/configuration/
- Pricing: https://developers.cloudflare.com/hyperdrive/platform/pricing/
- Changelog, private databases with Workers VPC (2026-04-29): https://developers.cloudflare.com/changelog/post/2026-04-29-hyperdrive-vpc-private-databases/
- Changelog, PlanetScale databases billed by Cloudflare (2026-06-18): https://developers.cloudflare.com/changelog/post/2026-06-18-planetscale-databases-cloudflare-billing/
- Changelog, MySQL GA (2026-08-07): https://developers.cloudflare.com/changelog/post/2026-08-07-hyperdrive-mysql-ga/
- Changelog, Python Workers support (2026-09-16): https://developers.cloudflare.com/changelog/post/2026-09-16-hyperdrive-python-workers/
- Query caching: https://developers.cloudflare.com/hyperdrive/concepts/query-caching/
## Related
- [[Cloudflare]]
- [[Cloudflare Workers]]
- [[Cloudflare D1]]
- [[Cloudflare Tunnel]]
- [[PostgreSQL]]
- [[Supabase]]
- [[Wrangler]]