Skip to content
freetier.wiki

Type at least 2 letters.

Enter to open · Esc to close

Cloudflare Hyperdrive

Cloudflare Hyperdrive on the Workers Free plan allows 100,000 queries a day and fails further queries instead of billing, and you still need your own PostgreSQL or MySQL database.

Cloudflare Hyperdrive speeds up queries from Workers to a database you already host, with connection pooling and query caching. It works with PostgreSQL and MySQL databases and is for Cloudflare Workers developers.

By CloudflareDatabaseChecked ✓ 23 Nov 2026

Is it a fit?

Good fit

Use it when a Worker talks to a regional PostgreSQL or MySQL database and you want connection pooling and optional caching.

  • Workers apps with an existing database
  • global apps with a regional database

Not a fit

Skip it if you do not use Cloudflare Workers, or if you need a database itself, because Hyperdrive does not host data. Skip it if you need read- after-write results from cached reads without a second config.

  • You do not use Cloudflare Workers
  • You need Cloudflare to host the database

You set Hyperdrive up with the Wrangler CLI and a binding in your Worker, then use your usual database driver. It suits Workers developers who already have a database somewhere else.

What the free plan gives you

Hyperdrive is included in the Workers Free plan with 100,000 database queries per day. A query means any statement through Hyperdrive, including selects, inserts, updates, deletes, and schema changes. Cached and uncached queries count the same. Limits reset daily at 00:00 UTC.

Connection pooling and query caching are included at no extra charge. On the Free plan you can configure 10 databases per account, with about 20 connections to the origin database per configuration. A single query can run for 60 seconds, and cached responses can be up to 50 MB.

When you hit a limit

Once you pass the daily query limit, further operations of that type fail with an error. Nothing is billed on the Free plan, so you cannot run up a Hyperdrive bill by accident. Your own database provider still bills you under its own terms. The limits reset at 00:00 UTC, or you can move to the Workers Paid plan, where Cloudflare adjusts Hyperdrive limits for you and queries are unlimited.

Gotchas

  • Hyperdrive does not host data. You pay your database provider separately.
  • Cached reads are not invalidated when you write, so use a separate cache-disabled configuration for reads that must be fresh.
  • Hyperdrive limits origin connections, and long-running queries or transactions can exhaust the pool.

Alternatives in this atlas

  • Cloudflare D1: when you want a Cloudflare-hosted SQL database instead of connecting to an outside one.
  • Neon: when you need a hosted Postgres to put behind Hyperdrive.
  • Supabase: when you want Postgres with auth and storage to connect from Workers.

Questions people ask

Is Cloudflare Hyperdrive free?

Yes, on the Workers Free plan, up to 100,000 database queries per day. Pooling and caching add no charge.

What happens when I exceed the Hyperdrive free limit?

Further operations of that type fail with an error until the daily reset at 00:00 UTC. Upgrading to Workers Paid removes the daily cap.

Does Hyperdrive work with MySQL?

Yes. Hyperdrive works with PostgreSQL, MySQL, and many compatible databases, including CockroachDB and PlanetScale.

How to get started

  1. Sign up for a Cloudflare account, install Node.js, and run `npx wrangler login`.
  2. Create a Worker project with `npm create cloudflare@latest`.
  3. Have a publicly reachable PostgreSQL or MySQL database, or connect a private one through Workers VPC.
  4. Run `npx wrangler hyperdrive create <name> --connection-string=...` with your database connection string.
  5. Add the Hyperdrive binding to your Wrangler configuration and use your normal driver with the Hyperdrive connection string in the Worker.

Other free database options

Same category, safest first.

Google Cloud · Database
50,000 reads/day · 20,000 writes/day · 20,000 deletes/day
Billing risk: None
No card
Supabase · Database
500 MB database & 1 GB file storage · 50,000 monthly active users · 500,000 edge function invocations/month
Billing risk: None
No card
Supabase · Database
500 MB of database size per project · Shared CPU with 500 MB of RAM · 2 active projects
Billing risk: None
No card
Cloudflare · Database
5 GB total storage (500 MB max per database) · 5,000,000 rows read/day · 100,000 rows written/day
Billing risk: None
No card