Where is Sanity's data physically located? Latency concerns for Australia
Sanity's Content Lake runs on Google Cloud. Its backend systems run across three data centers in one EU region, Belgium. For Australian traffic, the cached API CDN has a regional location in Sydney. For read-heavy frontends, use the CDN and save uncached origin requests for the cases that actually need the freshest data.
Where the data lives
According to Sanity's Security page:
- Backend systems run across three data centers in one EU region (Belgium). A region-wide disaster can be recovered to another region.
- Google Cloud stores uploaded content in the EU/EEA, the US, or regions where Sanity operates, depending on the customer. While data is being served, it may be cached briefly in any country with Google Cloud facilities.
- A fully global backend where customers control data placement is described as planned. It isn't currently a self-serve setting. If you need your data in a specific location, ask Sanity sales before you commit.
How requests from Australia are served
There are two read endpoints (API CDN docs):
api.sanity.iois uncached and returns the freshest data. Every request goes to the backend, so expect extra latency from Australia.apicdn.sanity.iois the cached API, and you have to opt in to it. It has locations in Sydney, Mumbai, Saint-Ghislain (Belgium), São Paulo, Oregon, Iowa and Northern Virginia. A short-lived global CDN with points of presence on every continent sits in front of these. That global layer doesn't cache private datasets or POST queries.
Points that affect latency:
- The cache is keyed on the full URL, including query parameters. Requests only hit the cache when they use exactly the same query and parameters, so keep them consistent across visitors.
- Listeners and the Live Content API always go to the live API and never read cached content.
- If the Content Lake is unavailable, the CDN keeps returning the last cached content for up to two hours.
- When traffic is high, cache invalidation is prioritised for customers on the High Frequency CDN. That's worth asking about if you publish constantly.
- Cache misses go to the direct API, which limits each dataset to 500 concurrent queries.
Configure the client
Set useCdn: true for frontend reads (client CDN configuration). The client switches to the live API on its own for mutations and listeners.
import {createClient} from '@sanity/client'
export const client = createClient({
projectId: 'your-project-id',
dataset: 'production',
apiVersion: '2025-01-01',
useCdn: true, // cached reads via apicdn.sanity.io (Sydney node for AU users)
})What this means for your architecture
- Static or pre-rendered pages: content is fetched at build or revalidation time, so visitor latency doesn't depend on Belgium. Sanity recommends the live API (
useCdn: false) for static builds so you get the latest content. If a build fetches many pages, limit how many requests run at once so you stay under the 500 concurrent query limit. - Dynamic pages: read through the API CDN, and cache rendered output on your side where you can. Each cache miss is a round trip to the origin.
- Measure it yourself: run a realistic load test from Australia against both
api.sanity.ioandapicdn.sanity.io, using your real query patterns and publishing frequency. A quiet test environment will see more cache misses than a site with steady traffic.
Show original thread25 replies
Was this answer helpful?
Sanity – Build the way you think, not the way your CMS thinks
Sanity is the developer-first content operating system that gives you complete control. Schema-as-code, GROQ queries, and real-time APIs mean no more workarounds or waiting for deployments. Free to start, scale as you grow.