High latency for geographically distributed database queries from Workers

6/10 Medium

When Workers execute multiple database queries, each request must traverse globally (e.g., Australia to Europe repeatedly), combined with per-request connection establishment, resulting in significant latency penalties.

Category
performance
Workaround
none
Stage
deploy
Freshness
persistent
Scope
single_lib
Recurring
Yes

Sources

Collection History

Query: “What are the most common pain points with Cloudflare for developers in 2025?4/8/2026

In short, it becomes quite slow — especially if you're executing multiple queries within a single request. That's because each query will need to go from say Australia to Europe every single time, and additionally, you'll need to connect to the database each time a Worker is spun up, which is quite often each time a new request comes in as Workers don't typically hang around for long.

Created: 4/8/2026Updated: 4/8/2026