Products · Developer platform
Hyperdrive
Accelerate database queries to make databases fast globally
Pricing and limits
Pricing
As of Nov 3, 2026, from Cloudflare's docs, last updated there Jun 18, 2026. Licensed CC BY 4.0; navigation removed.
Hyperdrive is included in both the Free and Paid Workers plans.
| Free plan1 | Paid plan | |
|---|---|---|
| Database queries2 | 100,000 / day | Unlimited |
Footnotes
</summary>1: The Workers Free plan includes limited Hyperdrive usage. All limits reset daily at 00:00 UTC. If you exceed any one of these limits, further operations of that type will fail with an error.
2: Database queries refers to any database statement made via Hyperdrive, whether a query (SELECT), a modification (INSERT,UPDATE, or DELETE) or a schema change (CREATE, ALTER, DROP).
Footnotes
- The Workers Free plan includes limited Hyperdrive usage. All limits reset daily at 00:00 UTC. If you exceed any one of these limits, further operations of that type will fail with an error. ↩
- Database queries refers to any database statement made via Hyperdrive, whether a query (
SELECT), a modification (INSERT,UPDATE, orDELETE) or a schema change (CREATE,ALTER,DROP). ↩
Hyperdrive limits are automatically adjusted when subscribed to a Workers Paid plan. Hyperdrive's connection pooling and query caching are included in Workers Paid plan, so do not incur any additional charges.
PlanetScale Postgres & MySQL
You can create PlanetScale Postgres and MySQL databases from Cloudflare and bill PlanetScale database usage through your Cloudflare account as a pay-as-you-go customer.
PlanetScale database usage is separate from Hyperdrive usage. When you create a PlanetScale database from the Cloudflare dashboard, PlanetScale usage appears on your Cloudflare invoice each billing period as a dollar total at PlanetScale's standard pricing ↗︎.
You can view per-database billing usage in the PlanetScale dashboard ↗︎. To learn how PlanetScale databases work with Workers and Hyperdrive, refer to PlanetScale Postgres and MySQL with Hyperdrive.
Pricing FAQ
Does connection pooling or query caching incur additional charges?
No. Hyperdrive's built-in cache and connection pooling are included within the stated plans above. There are no hidden limits other than those published.
Are cached queries counted the same as uncached queries?
Yes, any query made through Hyperdrive, whether cached or uncached, whether query or mutation, is counted according to the limits above.
Does Hyperdrive charge for data transfer / egress?
No.
Note
For questions about pricing, refer to the pricing FAQs.
Limits
As of Nov 3, 2026, from Cloudflare's docs, last updated there Jun 9, 2026. Licensed CC BY 4.0; navigation removed.
The following limits apply to Hyperdrive configurations, connections, and queries made to your configured origin databases.
Configuration limits
These limits apply when creating or updating Hyperdrive configurations.
| Limit | Free | Paid |
|---|---|---|
| Maximum configured databases | 10 per account | 25 per account |
| Maximum username length 1 | 63 characters (bytes) | 63 characters (bytes) |
| Maximum database name length 1 | 63 characters (bytes) | 63 characters (bytes) |
Connection limits
These limits apply to connections between Hyperdrive and your origin database.
| Limit | Free | Paid |
|---|---|---|
| Initial connection timeout | 15 seconds | 15 seconds |
| Idle connection timeout | 10 minutes | 10 minutes |
| Maximum origin database connections (per configuration) 2 | ~20 connections | ~100 connections |
Hyperdrive does not limit the number of concurrent client connections from your Workers. However, Hyperdrive limits connections to your origin database because most hosted databases have connection limits.
Connection errors
When Hyperdrive cannot acquire a connection to your origin database, you may see one of the following errors:
| Error message | Cause |
|---|---|
Failed to acquire a connection from the pool. |
The connection pool is exhausted because connections are held open too long. Long-running queries or transactions are a common cause. |
Server connection attempt failed: connection_refused |
Your origin database is rejecting connections. This can occur when a firewall blocks Hyperdrive, or when your database provider's connection limit is exceeded. |
For a complete list of error codes, refer to Troubleshoot and debug.
Query limits
These limits apply to queries sent through Hyperdrive.
| Limit | Free | Paid |
|---|---|---|
| Maximum query (statement) duration | 60 seconds | 60 seconds |
| Maximum cached query response size | 50 MB | 50 MB |
Queries exceeding the maximum duration are terminated. Query responses larger than 50 MB are not cached but are still returned to your Worker.
Request a limit increase
You can request adjustments to limits that conflict with your project goals by contacting Cloudflare. Not all limits can be increased.
To request an increase, submit a Limit Increase Request form ↗︎. You can also ask questions in the Hyperdrive channel on Cloudflare's Discord community ↗︎.
Footnotes
- This is a limit enforced by PostgreSQL. Some database providers may enforce smaller limits. ↩ ↩2
- Hyperdrive is a distributed system, so a client may be unable to reach an existing pool. In this scenario, a new pool is established with its own connection allocation. This prioritizes availability over strict limit enforcement, which means connection counts may occasionally exceed the listed limits. ↩
Timeline
September 2026
- Hyperdrive support for Python Workers
Python Workers can now connect to PostgreSQL and MySQL through Hyperdrive. For setup, code examples, and limitations, refer to Use Hyperdrive from Python Workers.
August 2026
- MySQL support in Hyperdrive is now generally available
Support for MySQL in Hyperdrive is now generally available. You can connect to any MySQL database from your Workers using Hyperdrive. Hyperdrive makes your regional, MySQL databases fast when connecting from Cloudflare Workers. It eliminates unnecessary network roundtrips during connection setup, pools database connections globally, and can cache query results to provide the fastest possible resp…
- Restart a Hyperdrive configuration from the dashboard
You can now restart a Hyperdrive configuration from the Cloudflare dashboard. Restarting drains the connection pool and forces Hyperdrive to establish new connections to your origin database. Restarting is a break-glass action. Hyperdrive automatically detects and recovers from most database failovers. Use a manual restart only when you need to force the pool to drain immediately. To restart, sel…
June 2026
- Create PlanetScale Postgres and MySQL databases, billed to your Cloudflare account
You can create PlanetScale Postgres and MySQL databases from Cloudflare and bill PlanetScale database usage through your Cloudflare account as a pay-as-you-go customer. Cloudflare contract customers will be able to add PlanetScale usage to their contract in July so reach out to your Cloudflare account team if interested. Create a PlanetScale database from the Cloudflare dashboard to check out glo…
May 2026
- Hyperdrive exposes database connection pool size metrics
You can now view the size of your Hyperdrive database connection pools, giving you the ability to self-diagnose connection issues. Using the Cloudflare dashboard or the hyperdrivePoolSizesAdaptiveGroups dataset in the GraphQL Analytics API, you can see waitingClients, currentPoolSize, availablePoolSlots, and maxPoolSize for each of your configurations. A new Pool connections chart has been added…
April 2026
- Hyperdrive support for private databases with Workers VPC
You can now connect Hyperdrive to a private database through a Workers VPC service. This is the recommended way to connect Hyperdrive to a private database that is not exposed to the public Internet. When creating a Hyperdrive configuration in the Cloudflare dashboard, choose Connect to private database and then Workers VPC. From there, you can select an existing VPC service or create a new one i…
March 2026
- Hyperdrive now supports custom TLS/SSL certificates for MySQL
Hyperdrive now supports custom TLS/SSL certificates for MySQL databases, bringing the same certificate options previously available for PostgreSQL to MySQL connections. You can now configure: Server certificate verification with VERIFY_CA or VERIFY_IDENTITY SSL modes to verify that your MySQL database server's certificate is signed by the expected certificate authority (CA). Client certificates (…
February 2026
- Hyperdrive no longer caches queries using STABLE PostgreSQL functions
Hyperdrive now treats queries containing PostgreSQL STABLE functions as uncacheable, in addition to VOLATILE functions. Previously, only functions that PostgreSQL categorizes ↗︎ as VOLATILE (for example, RANDOM(), LASTVAL()) were detected as uncacheable. STABLE functions (for example, NOW(), CURRENT_TIMESTAMP, CURRENT_DATE) were incorrectly allowed to be cached. Because STABLE functions can retur…
December 2025
- Connect to remote databases during local development with wrangler dev
You can now connect directly to remote databases and databases requiring TLS with wrangler dev. This lets you run your Worker code locally while connecting to remote databases, without needing to use wrangler dev --remote. The localConnectionString field and CLOUDFLARE_HYPERDRIVE_LOCAL_CONNECTION_STRING_<BINDING_NAME> environment variable can be used to configure the connection string used by wra…
July 2025
- Hyperdrive now supports configuring the amount of database connections
You can now specify the number of connections your Hyperdrive configuration uses to connect to your origin database. All configurations have a minimum of 5 connections. The maximum connection count for a Hyperdrive configuration depends on the Hyperdrive limits of your Workers plan. This feature allows you to right-size your connection pool based on your database capacity and application requirem…
May 2025
- Hyperdrive achieves FedRAMP Moderate-Impact Authorization
Hyperdrive has been approved for FedRAMP Authorization and is now available in the FedRAMP Marketplace ↗︎. FedRAMP is a U.S. government program that provides standardized assessment and authorization for cloud products and services. As a result of this product update, Hyperdrive has been approved as an authorized service to be used by U.S. federal agencies at the Moderate Impact level. For detail…
April 2025
- Hyperdrive now supports custom TLS/SSL certificates
Hyperdrive now supports more SSL/TLS security options for your database connections: Configure Hyperdrive to verify server certificates with verify-ca or verify-full SSL modes and protect against man-in-the-middle attacks Configure Hyperdrive to provide client certificates to the database server to authenticate itself (mTLS) for stronger security beyond username and password Use the new wrangler…
- Hyperdrive Free plan makes fast, global database access available to all
Hyperdrive is now available on the Free plan of Cloudflare Workers, enabling you to build Workers that connect to PostgreSQL or MySQL databases without compromise. Low-latency access to SQL databases is critical to building full-stack Workers applications. We want you to be able to build on fast, global apps on Workers, regardless of the tools you use. So we made Hyperdrive available for all, to…
- Hyperdrive introduces support for MySQL and MySQL-compatible databases
Hyperdrive now supports connecting to MySQL and MySQL-compatible databases, including Amazon RDS and Aurora MySQL, Google Cloud SQL for MySQL, Azure Database for MySQL, PlanetScale and MariaDB. Hyperdrive makes your regional, MySQL databases fast when connecting from Cloudflare Workers. It eliminates unnecessary network roundtrips during connection setup, pools database connections globally, and…
March 2025
- Hyperdrive reduces query latency by up to 90% and now supports IP access control lists
Hyperdrive now pools database connections in one or more regions close to your database. This means that your uncached queries and new database connections have up to 90% less latency as measured from connection pools. By improving placement of Hyperdrive database connection pools, Workers' Smart Placement is now more effective when used with Hyperdrive, ensuring that your Worker can be placed as…
January 2025
- Automatic configuration for private databases on Hyperdrive
Hyperdrive now automatically configures your Cloudflare Tunnel to connect to your private database. When creating a Hyperdrive configuration for a private database, you only need to provide your database credentials and set up a Cloudflare Tunnel within the private network where your database is accessible. Hyperdrive will automatically create the Cloudflare Access, Service Token, and Policies ne…
December 2024
- Up to 10x faster cached queries for Hyperdrive
Hyperdrive now caches queries in all Cloudflare locations, decreasing cache hit latency by up to 90%. When you make a query to your database and Hyperdrive has cached the query results, Hyperdrive will now return the results from the nearest cache. By caching data closer to your users, the latency for cache hits reduces by up to 90%. This reduction in cache hit latency is reflected in a reduction…