Data Locality
On this page
Data Locality Is Latency and Cost Control
Data locality means keeping data close to where it is used. It reduces latency and network egress cost. Poor locality creates slow user experiences and expensive cross-region traffic.
Locality Patterns
- Regional ownership: tenant or user data lives in a home region
- Read replicas near users: improve read latency with acceptable staleness
- Edge caching: cache read-mostly content close to the client
Cross-Region Queries Are a Smell
If a request regularly needs data from multiple regions, you will pay in tail latency. Production-first design minimizes cross-region dependencies on hot paths by denormalizing, caching, or changing product requirements (for example, showing partial results).
Production-First Takeaway
Locality is a first-class architecture constraint. Design ownership boundaries and read strategies so the majority of requests stay local, then handle unavoidable cross-region needs off the critical path.