# Data residency and cross-border transfers for multi-tenant apps
A procurement email lands on a Tuesday: "Our data must remain within the EU at all times, including backups." The SaaS vendor's architecture, a single US-hosted Postgres cluster serving all tenants, backed up nightly to Virginia, cannot honor that sentence as written. Sales wants to close the deal. Engineering has to figure out what "in the EU" actually means for sharding, backups, logs, and every subprocessor touching that data. This is the residency problem, and it hits every multi-tenant SaaS company the moment it lands its first serious European (or Indian, or Saudi, or Brazilian) enterprise logo.
Data residency is a requirement (contractual, or sometimes legal) that data belonging to a customer stays stored within a specific geographic or jurisdictional boundary.
Data sovereignty is a stronger, related idea: data is subject to the laws of the country it sits in, regardless of where the company owning it is headquartered. A French hospital's data stored on a US-owned cloud server, even one physically in Frankfurt, can in theory be reachable by US law enforcement under the CLOUD Act (2018), which lets US authorities compel US-based providers to hand over data they control, wherever it's stored. This is precisely why EU regulators have pushed "sovereign cloud" options.
Cross-border data transfer is the act of moving personal data from one jurisdiction to another, distinct from residency but closely linked, since a residency promise is really a promise to control transfers.
These three terms get used interchangeably in sales conversations. They are not the same thing, and conflating them is how engineering teams over- or under-build.
The GDPR (General Data Protection Regulation, EU, enforced since 2018) is the reference point. It does not require EU data to physically stay in the EU. Instead, Chapter V restricts *transfers* of personal data to countries outside the EU/EEA unless one of these applies:
The EU-US framework matters because it replaced two earlier arrangements the Court of Justice of the EU struck down: Safe Harbor (invalidated 2015) and Privacy Shield (invalidated 2020, the "Schrems II" ruling, after Austrian privacy activist Max Schrems challenged Facebook's transfer mechanism). Each invalidation forced thousands of SaaS vendors to scramble for new legal cover almost overnight. This history is why enterprise buyers now ask about transfer mechanisms explicitly in security questionnaires, not just as a checkbox.
Other regimes to know by name:
For primary text, the EDPB (European Data Protection Board) guidance on transfer tools is the free authoritative source rather than any vendor blog.
Sales can promise residency; only architecture can deliver it. Four concrete changes ripple through the stack.
1. Sharding by region. Multi-tenant SaaS apps typically store all tenants in shared infrastructure for cost efficiency. Residency demands per-region shards: an EU shard (say, AWS eu-central-1, Frankfurt) that holds only EU tenant data, with application logic that routes each tenant's reads and writes to the correct shard. This is a real engineering project, not a config flag, especially for apps built on a single global database from day one.
2. Backups and disaster recovery. A backup replicated cross-region for resilience becomes a compliance violation if it lands outside the promised boundary. Vendors must either restrict backup replication to in-region facilities (accepting lower disaster-recovery robustness) or use encryption schemes where only in-region keys can decrypt, satisfying auditors that the data is *effectively* inaccessible elsewhere even if bytes transiently cross a border.
3. Logs, metrics, and support tooling. This is where teams get caught out. Application logs, error traces (e.g., Sentry), customer support tickets (e.g., Zendesk), and analytics pipelines often quietly ship customer data to US-based SaaS tools. A residency commitment that doesn't audit these secondary flows is not a real commitment.
4. Subprocessor contracts. Under GDPR, a subprocessor is any third party the vendor (the "processor") uses to handle personal data on behalf of the customer (the "controller"). Cloud hosting providers, email delivery services, customer support platforms, even AI model APIs, are subprocessors. GDPR Article 28 requires processors to flow down equivalent data protection obligations to every subprocessor, and to disclose the subprocessor list to customers. Enterprise contracts now commonly include a right to object to new subprocessors and a required notice period (typically 30 days, as an estimate of common market practice) before adding one.
A practical illustration of the chain: a SaaS vendor adds OpenAI's APIAPIApplication Programming Interface: a standardised interface that lets applications communicate and exchange data without knowing each other's internal workings.View full definition → for an AI feature. OpenAI becomes a subprocessor. If OpenAI's data processing happens on US infrastructure, every EU customer contract promising EU-only residency is now technically broken unless the vendor uses OpenAI's EU data residency options or an EU-hosted alternative model.
Region-aware routing usually starts with a tenant-to-region lookup table, checked before any query touches customer data:
-- tenant_region_map: one row per tenant, set at signup
SELECT region_endpoint
FROM tenant_region_map
WHERE tenant_id = :current_tenant;
-- application layer then connects to the
-- region-specific database cluster, e.g.:
-- eu-central-1.db.internal OR us-east-1.db.internalThe hard part is never this lookup. It's making sure *every* service (search index, cache, message queue, log shipper) respects the same routing decision.
Knowledge check
1. A customer states their data must remain in the EU. What is the most accurate way to interpret this requirement before making any architectural changes?
2. Why can data physically stored in an EU data center still be subject to US legal reach under the CLOUD Act?
3. A multi-tenant SaaS company runs a single US-hosted Postgres cluster with nightly backups to Virginia. A European customer requires all their data, including backups, to stay within the EU. What does this scenario primarily illustrate?
4. Select ALL correct answers that accurately distinguish 'data residency' from 'data sovereignty'.
Select all the correct answers.
5. Select ALL correct answers describing why sales and engineering teams often talk past each other on data residency commitments.
Select all the correct answers.
For a governance team assessing residency claims (their own company's, or a vendor's), a working checklist:
🎬 [VIDEO: "GDPR Data Transfers Explained" - youtube.com - a walkthrough of SCCs, adequacy decisions, and the Schrems II aftermath aimed at practitioners, not lawyers]