# Data API Routes to Nearest Read Replica

DevFeed: [Data API Routes to Nearest Read Replica](<https://devfeed.tech/articles/data-api-routes-to-nearest-read-replica-352.md>)

Original publisher: [Read original article](<https://supabase.com/blog/data-api-nearest-read-replica>)

Author: José Ledesma

Published: 2025-04-04T07:00:00Z

Content type: article

Language: en

Sources: [Supabase Blog](<https://devfeed.tech/sources/supabase-blog.md>)

Topics: [API](<https://devfeed.tech/topics/api.md>), [Latency](<https://devfeed.tech/topics/latency.md>), [Database](<https://devfeed.tech/topics/database.md>), [Algorithms, Complexity](<https://devfeed.tech/topics/algorithms-complexity.md>), [networking](<https://devfeed.tech/topics/networking.md>)

Tags: [algorithms](<https://devfeed.tech/tags/algorithms.md>), [api](<https://devfeed.tech/tags/api.md>), [data](<https://devfeed.tech/tags/data.md>), [geospatial](<https://devfeed.tech/tags/geospatial.md>), [latency](<https://devfeed.tech/tags/latency.md>), [load-balancer](<https://devfeed.tech/tags/load-balancer.md>), [mapping](<https://devfeed.tech/tags/mapping.md>), [network](<https://devfeed.tech/tags/network.md>), [read-replica](<https://devfeed.tech/tags/read-replica.md>), [round-robin](<https://devfeed.tech/tags/round-robin.md>)

## AI overview

Supabase is releasing geo-routing for Data API requests, directing each request to the geographically nearest read replica. The feature uses network-edge geolocation, regional coordinate mapping, distance calculations with the Haversine formula, and round-robin distribution when multiple databases share a region. It is available by default through a load balancer endpoint and requires only a project URL update.

## Source excerpt

Route your Data API (PostgREST) requests to the nearest Read Replica