Vercel Edge Functions + Database Latency

Observe the latency querying different data services from varying compute locations. We built this playground to demonstrate different data access patterns and how they can impact latency through sequential data requests (i.e. waterfalls).

Learn more about Vercel Edge Functions or deploy a template.

Data service

Location

Vercel Edge Functions support multiple regions. By default they're global, but it's possible to express a region preference via the region setting.

Waterfall

Executing complex API routes globally can be slow when the database is single-region, due to having multiple roundtrips to a single server that's distant from the user.