Running AI Across Borders: How Data-Residency Rules Shape Where Your Models Live
Data-residency rules decide where your AI runs and what data may travel. Here is how they shape the architecture of a multi-country deployment.

A company that runs AI in one country has one set of rules to follow. A company that runs it in six has six, and they rarely agree. Data-residency law is often treated as a compliance checkbox for the end of the project. In practice it settles some of the biggest design decisions: where your models run, what they are allowed to see, and how many copies of the system you end up maintaining.
You can make those decisions on purpose at the start, or have them forced on you halfway through.
Three questions that sound alike
Leaders often treat these as one issue. They are three, and each has different consequences.
Residency is where data is stored. Some countries require certain categories, such as health records, financial data and government contracts, to stay on servers inside their borders.
Transfer is whether data may leave at all, and on what terms. The EU's GDPR does not ban exports, but it requires a legal basis for them: an adequacy decision, standard contractual clauses, or similar safeguards. China's PIPL adds security assessments for many outbound transfers. Russia requires personal data on its citizens to be stored first on domestic servers.
Access is who can see the data, wherever it sits. A server in Frankfurt does not solve your problem if a support engineer in another jurisdiction can read its contents, or if the provider can be compelled to hand it over under foreign law.
A sound architecture answers all three for every country you operate in.
The model is not the only thing that moves
When people ask "where does the AI run," they usually mean where the model sits. Data in an AI system travels further than that. Follow a single customer email through a typical setup and it may touch:
- the inference endpoint that processes the request
- the logs and traces your team keeps for debugging and audit
- the vector database holding embeddings of your documents
- any fine-tuning or evaluation datasets built from real cases
- the provider's own abuse-monitoring or retention systems
- the support staff, yours or the vendor's, who can open any of the above
Each of these is a place where data resides and a route by which it can cross a border. Embeddings deserve particular care. They look like rows of numbers, but regulators increasingly treat them as derived personal data, because the original text can often be partly reconstructed from them.
Classify before you design
The most useful work happens before anyone draws an architecture diagram. Take the data your AI will handle and sort it, country by country, into three groups: data that may move freely, data that may move with safeguards, and data that must stay put.
Most organisations find the third group is smaller than they feared, and that its contents are predictable: health, payroll, national identifiers, regulated financial records, and anything covered by a public-sector contract. That group decides the shape of your system. Everything else can usually be handled with contracts and controls.
Three architectures, and what each costs
Once the data is classified, most multi-country deployments settle into one of three patterns.
Central with filtered inputs. One system runs in one region. Before data reaches it, sensitive fields are removed, masked or replaced with tokens locally. This is the cheapest to run and the easiest to improve, but it only works when the restricted data is not what the AI actually needs to read.
Regional instances. A separate deployment runs in each jurisdiction that requires one, with its own model endpoint, storage and logs. This is the most defensible option and the most expensive. You now operate several systems that drift apart unless you work to keep prompts, versions and evaluations in sync.
Hub and spoke. Shared, non-sensitive work such as product knowledge, templates and general reasoning runs centrally. Restricted data is processed only in local spokes, and only results or aggregates travel back. Most mature deployments end up here, because it puts the cost of residency where the law requires it and nowhere else.
Whichever pattern you choose, budget for what it changes. Regional instances can multiply hosting costs. Some model versions launch in the United States months before they reach other regions, so a local deployment can lag behind on capability. Audit work grows with every jurisdiction, because you have to show regulators where each piece of data went, not just assert it.
Where to start
Start with a map before you sign a contract with a model provider: the countries you serve, the data the AI will touch in each, and which of the three groups that data falls into. Then ask vendors specific questions. Where does inference run? Where are logs kept, and for how long? Who can access them? Can you choose the region for each workload?
The answers will rule out options quickly, which is useful. A design that fits the law from the start costs far less than one rebuilt after the first regulator asks for it. That mapping is the unglamorous part of a cross-border AI rollout, and it is the kind of work Hercules A takes on so the rest of the project can move.