You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
title: Hyperdrive reduces query latency by up to 90%, uses Cloudflare's IP addresses for egress
3
+
description: Hyperdrive now pools database connections closer to your database to reduce latency and connects using Cloudflare's IP address ranges.
4
+
products:
5
+
- hyperdrive
6
+
date: 2025-03-06T18:00:00Z
7
+
---
8
+
9
+
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.
10
+
11
+

12
+
13
+
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 close to your database as possible.
14
+
15
+
With this update, Hyperdrive also uses [Cloudflare's standard IP address ranges](https://www.cloudflare.com/ips/) to connect to your database. This enables you to configure the firewall policies of your database to allow access to this limited IP address range.
16
+
17
+
Refer to [documentation on how Hyperdrive makes connecting to regional databases from Cloudflare Workers fast](/hyperdrive/configuration/how-hyperdrive-works/).
18
+
19
+
This improvement is enabled on all Hyperdrive configurations.
Hyperdrive uses the [Cloudflare IP address ranges](https://www.cloudflare.com/ips/) to connect to your database. Only the IP address ranges listed in this reference need to be allow-listed in your database's firewall and networking configurations.
10
+
Hyperdrive uses the [Cloudflare IP address ranges](https://www.cloudflare.com/ips/) to connect to your database. If you decide to restrict the IP addresses that can access your database with firewall rules, the IP address ranges listed in this reference need to be allow-listed in your database's firewall and networking configurations.
11
11
12
12
You can connect to your database from Hyperdrive using any of the 3 following networking configurations:
Copy file name to clipboardExpand all lines: src/content/docs/hyperdrive/configuration/how-hyperdrive-works.mdx
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -17,9 +17,9 @@ Hyperdrive solves these challenges by managing the number of global connections
17
17
18
18
## Edge connection setup
19
19
20
-
When a database driver connects to a database from a Cloudflare Worker, illustrated above on the right half of the diagram in **Direct (without Hyperdrive)**, it will first go through the connection setup. This may require multiple round trips to the database in order to verify and establish a secure connection.
20
+
When a database driver connects to a database from a Cloudflare Worker (illustrated above on the right half of the diagram in **Direct (without Hyperdrive)**) it will first go through the connection setup. This may require multiple round trips to the database in order to verify and establish a secure connection. This can incur additional network latency due to the distance between your Cloudflare Worker and your database.
21
21
22
-
**With Hyperdrive** (on the left half of the above diagram), this connection setup occurs between your Cloudflare Worker and Hyperdrive on the edge, as close to your Worker as possible. This incurs significantly less latency since the roundtrips are done within the same region.
22
+
**With Hyperdrive** (on the left half of the above diagram), this connection setup occurs between your Cloudflare Worker and Hyperdrive on the edge, as close to your Worker as possible. This incurs significantly less latency since the connection setup is completed within the same location.
title: Hyperdrive egresses using Cloudflare's IP address ranges
8
+
- publish_date: "2025-03-06"
9
+
title: Hyperdrive connects to your database using Cloudflare's IP address ranges
10
10
description: |-
11
-
Hyperdrive now connects to your databases using [Cloudflare's IP address ranges]((https://www.cloudflare.com/ips/).
11
+
Hyperdrive now uses [Cloudflare's IP address ranges]((https://www.cloudflare.com/ips/) for egress.
12
12
13
13
This enables you to configure the firewall policies on your database to allow access to this limited IP address range.
14
14
15
-
Refer to the [full list of Cloudflare IP ranges](https://www.cloudflare.com/ips/) that Hyperdrive uses.
16
-
- publish_date: "2025-02-25"
17
-
title: Hyperdrive improves connection pool placement decreasing query latency by up to 50%
15
+
Learn more about [configuring your database networking for Hyperdrive](/hyperdrive/configuration/firewall-and-networking-configuration/).
16
+
- publish_date: "2025-03-06"
17
+
title: Hyperdrive improves connection pool placement decreasing query latency by up to 90%
18
18
description: |-
19
-
Hyperdrive now pools all database connections in one or more regions as close to your database as possible. This means that you uncached queries resolve faster by up to 50%.
19
+
Hyperdrive now pools all database connections in one or more regions as close to your database as possible. This means that your uncached queries and new database connections have up to 90% less latency as measured from Hyperdrive connection pools.
20
20
21
-
In aggregate, we observed a decrease on average of \<ENTER NUMBER\>.
21
+
With improved placement for Hyperdrive connection pools, Workers smart placement is more effective by ensuring that your Worker and Hyperdrive database connection pool are placed as close to your database as possible.
22
22
23
-
Refer to [documentation on how Hyperdrive caches query results](/hyperdrive/configuration/how-hyperdrive-works/#query-caching).
23
+
See [the announcement](/changelog/2025-03-04-hyperdrive-pooling-near-database-and-ip-range-egress/) for more details.
24
24
- publish_date: "2025-01-28"
25
25
title: Hyperdrive automatically configures your Cloudflare Tunnel to connect to your private database.
0 commit comments