apps/www/_blog/2025-04-04-data-api-nearest-read-replica.mdx
Today we’re releasing Data API requests routing to the nearest Read Replica by extending our API load balancer to handle geo-routing.
It’s an impactful improvement that will minimize request latency for your globally distributed applications. It’s available by default when using a load balancer endpoint.
Geo-routing automatically directs your Data API requests to the geographically closest read replica of your database, reducing latency and improving response times for your users around the world.
Previously, if you had read replicas in Frankfurt, Singapore, and Virginia, a user located in Europe may experience dramatically different latencies because they could be making requests to any of the replicas.
Our new geo-routing automatically connects users to the nearest read replica so the same user would only make requests to the read replica in the Frankfurt region.
Our geo-routing system uses geospatial algorithms to determine the optimal read replica for each request:
cf.colo property, which provides the IATA airport code of the datacenter that received the request).The entire process is completely seamless to your application and users, requiring no changes to your code or configuration besides updating your project URL (<project_ref>-all.supabase.co) today.
To get the most from geo-routing, deploy read replicas in regions where your users are concentrated. The more strategically you place your read replicas, the more your users will benefit from reduced latency and improved response times.
As an initial release, geo-routing is available with the following limitations:
If you're already using our API load balancer there's nothing you need to do; geo-routing is automatically applied to your Data API requests.
Otherwise, you can enable this feature by ensuring your project is using the API load balancer endpoint (<project_ref>-all.supabase.co)
We're actively working on expanding geo-routing support to other Supabase products, such as Auth, Storage, and Realtime. Stay tuned for updates.
As always, we welcome your feedback, let us know what you think!