Enterprise requirements never arrive as architecture. They arrive as clauses in a DPA, lines in a security questionnaire, and a sentence in an order form that a salesperson agreed to on the last day of the quarter. Each looks small. What hurts is that residency, dedicated deployments, upgrade windows and uptime credits land on the same few customers, they interact, and every one you satisfy by exception adds a permanent line to someone’s runbook. This chapter treats them as constraints on the fleet: what each really requires, which mechanism satisfies it at scale, what it costs, and how to keep a mixed fleet from becoming a consulting business. It closes the track by assembling the seven chapters into one operating model.
The engineering organisation usually meets an enterprise requirement after signature, as a ticket: Acme needs EU hosting by Q3. By then the architecture decision has already been made, by whoever wrote the clause. Every clause you will see can be satisfied in one of four ways. It can be a placement attribute (where the tenant’s resources live), a fleet policy (when and how the tenant’s software changes), a contract parameter (what you owe when something fails), or a fork (behaviour that exists for one customer). The first three are rows in the tenant catalog from chapter 01, reconciled by controllers you already run. The fourth is paid for in people.
Placement attributes and fleet policies are rows in the tenant catalog that controllers reconcile. Contract parameters are priced risk. Forks scale with people, and they cluster on the same few largest tenants.
The trap is not any single option. It is the way options are distributed. Suppose you sell eight binary enterprise options. That is 256 possible configurations, and you will test perhaps a dozen of them properly. Options cluster on the largest tenants, because those are the tenants whose procurement teams ask for everything. The EU bank on a dedicated cell with HYOK and a 90-day deferred ring is one tenant, and it runs a combination nobody else runs. Your least-tested configurations therefore carry your most revenue. A residency-bound HYOK tenant moving between EU regions (chapter 04) needs the key re-wrap, the customer’s grant in the new region, the egress-IP change and the staging-copy residency check to work together, a combination the mover has probably never run.
So the architect’s job starts before the ticket, at the deal desk or in a rate card it cannot get around: not to say no, but to steer every ask into the first three columns and give the fourth a price, an owner and an expiry date.
Pitfall · clauses about process
Putting the primary database in Frankfurt is the easy 10% of residency. The rest is every system that ever holds a copy or a derivative of customer data: replicas and backups, the search index, logs and traces (which carry payloads whatever the logging policy says), the error tracker that captures request bodies in stack frames, the analytics warehouse fed by nightly CDC, the support console, and every subprocessor from the email provider to the LLM API behind a summarisation feature. A residency commitment is a claim about all of them, and the audit will walk the data-flow diagram, not the database config.
Shrink the global control plane until it holds nothing personal. The tenant directory from chapter 04 can stay global if it maps tenant_id to region, tier and cell and nothing else. The hard case is login. An email-first login screen needs to find the user’s region before it knows who they are, which means a global email-to-region index, and that index is personal data. Hashing the email does not change that. Under GDPR, pseudonymised data remains personal data for a controller that can link it back, which a login service by definition can, and an unsalted hash of an email address can be reversed by anyone holding a list of candidate addresses. Three options hold up. Use region-scoped hostnames (the user or their bookmark picks eu.). Use tenant-scoped login URLs. Or do discovery by email domain for SSO tenants: a map from a corporate domain like acme.com to a tenant is not personal data, so it can stay global, and it covers exactly the enterprise tenants who care about residency. Keep a region picker as the fallback for everyone else.
People are a byte path too. European regulators generally treat remote access to data from a third country as a transfer, so a follow-the-sun support engineer in another jurisdiction opening a tenant’s records is a transfer, whatever region the disk is in. This is the part of residency that shows up in headcount, not in infrastructure. If a residency SKU promises in-region operational access, you need an in-region, 24/7 on-call rota with production access. The common rule of thumb (Google’s SRE book argues for a minimum of eight engineers for a single-site rotation) is six to eight people per sustainable 24/7 rota. That rota costs more than the servers, and it is the real fixed cost of opening a jurisdiction. Route all human data access through an in-region support console with just-in-time grants, logged to the tenant-visible audit trail from chapter 05.
Residency trades against disaster recovery. The DR copy has to stay inside the boundary too. In the EU, with several hyperscaler regions, that costs little. In a country with a single hyperscaler region, a country-level residency promise means either single-region DR (zone-level redundancy only, with a regional outage taking you down) or a second provider in the same country, which doubles your platform surface. Write the recovery objectives into the residency SKU, or sales will sell both as if they were compatible.
6–8
people per 24/7 in-region rota (rule of thumb)
1 region
some countries: DR vs residency conflict
~10%
of residency is the primary DB
0 PII
target for the global control plane
The economics are driven by the floor. A new jurisdiction is a new stack floor from chapter 01 plus a share of a rota. As an illustration, if a region costs $60k a month all-in and enterprise ACV is $120k, the region’s own cost is covered only at six customers, before a dollar of their revenue pays for anything else. The first customer in a new region almost always loses money, which is why the first-in-region deal should carry a premium or wait for a cohort. Residency drift is the operational failure mode. It is the feature, eighteen months later, that adds a global pipeline, such as a product-analytics SDK or an embeddings call to a US endpoint. Treat residency like isolation in chapter 02, as a tested property: deny-by-default egress from regional VPCs to anything not on an allowlist, data-classification tags on streams checked in CI when a new sink appears, and a synthetic tenant in every region whose canary records are searched for, daily, in every global system.
Contribution per customer = $10k monthly revenue − $2k variable cost. The same region is a 7-customer business if an existing in-jurisdiction team can hold the pager, and a 19-customer business if the promise forces a new in-country rota. Decide which one the SKU promises before sales quotes it.
The way drift actually unfolds is worth rehearsing, because nothing pages. A product team adds a client-side analytics SDK behind a flag. It sends page URLs, and page URLs carry record IDs and, on one search screen, the query string. Egress rules do not catch it, because the browser sends the data, not your VPC. Nine months later a customer’s DPO runs their own network capture during an annual audit, finds requests to a US endpoint, and asks for the transfer impact assessment you do not have. The remediation is contractual (notification, possibly a breach assessment) before it is technical, and the technical part now includes purging a third party’s retained data, which you do not control. Two controls catch this class early. The first is a Content-Security-Policy connect-src allowlist per regional hostname, which makes the browser the enforcement point for client-side paths. The second is a subprocessor diff in CI: any new outbound hostname in server config or client bundles fails the build until someone classifies it. The second is cheap and catches the LLM-endpoint case, which is an increasingly common source of new drift.
Architect's note · residency vs sovereignty
“Dedicated” covers a spectrum, from a tenant-owned database inside your pool to a tarball running in an air-gapped data centre. The line that matters is who holds the deploy button. While you hold it, a dedicated cell is just a cell whose tenant count is one (chapter 01). You pay the stack floor and the per-stack operational tax, and the fleet controller treats it like any other cell. Once the customer holds it, whether through BYOC under their change management or on-prem, you are running a software-distribution business. You have versions in the field you cannot upgrade, configurations you cannot observe, and incidents you debug over someone else’s screen share.
Ask which failure the customer is buying protection from. “Dedicated” is almost always a proxy for one of four concerns, and each has a cheaper mechanism. Noise from other tenants is handled by reservations and fair queuing (chapter 03). “No commingling” for auditors is usually satisfied by a dedicated database plus per-tenant keys (chapter 05), which auditors accept far more often than sales assumes. Network control is handled by private connectivity and fixed egress. Control over change is handled by a deferred ring (7.4). Plenty of dedicated-cell requests shrink to a dedicated database, a customer-managed key and PrivateLink once someone asks the question. That puts the tenant in the bridge model, where the marginal cost is one database rather than a full stack floor.
BYOC is a distributed transaction across accounts you do not own. The standard shape is a vendor control plane plus a data plane in the customer’s cloud account, driven by an outbound-only agent and a cross-account role. Databricks’ classic compute plane and the BYOC offerings of several streaming vendors work this way. The mechanism is sound. What changes is your per-stack failure probability. In your own accounts, a release fails on a stack because of your bugs. In the customer’s accounts, it also fails because their organisation-level policies deny an API the upgrade needs, their service quotas are lower than your templates assume, their automation reverted a security group, or their security team rotated the role you assume. By chapter 01’s convergence arithmetic, a release lands everywhere untouched with probability roughly e−pN. With 100 BYOC stacks at an illustrative p of 2%, a release converges cleanly about 13% of the time. Every release becomes a campaign, and the straggler queue becomes a permanent team.
Build for it on purpose. Run a preflight that checks the role’s effective permissions and quotas against the next release’s requirements days before the window. Detect drift continuously and report it to the customer as their finding. Put a support contract clause that makes a customer-caused block a paused SLA clock rather than your incident. And set a hard version floor below which the deployment is out of support, because BYOC customers who control their change board will otherwise sit on a release until it is two years old.
Expected stragglers per release is simply pN. Once pN is above about 1, a clean release is the exception, and each release adds stragglers faster than a fixed team can clear them if the release interval is shorter than the time to clear one.
The failure that kills BYOC programmes is not a bad release. It is the straggler queue compounding. Take the illustrative numbers: 100 stacks, p = 2%, weekly releases, so two stuck stacks a week. If clearing one takes a day of elapsed time, mostly waiting on the customer’s cloud team to approve a policy change, the queue stays small. If it takes three weeks, which is typical when the fix needs their change board, then at steady state about six stacks are stuck at any moment, each on a different old version. A stack that misses two releases now needs a skip-version upgrade path, and those are the paths you test least. Meanwhile its failure odds on the next release rise, because the drift that blocked it is still there. By Little’s law the stuck count is arrival rate × clear time, so this is the argument for a slower cadence on the BYOC ring than on the SaaS fleet. Dropping from weekly to monthly releases for the BYOC ring cuts straggler events per year by roughly 4× for the same p, at the cost of the version skew covered in 7.4.
Decision thresholds follow directly. Keep pN below about 0.5 per release on the customer-held ring (by capping stacks, lowering p with preflight checks, or releasing less often). Staff the straggler team from measured clear-time × pN × releases per year, not from stack count. And stop selling BYOC to a customer whose preflight fails before signature. A failing preflight on day one predicts a p well above your fleet average for the life of the contract.
Pitfall · pricing dedicated off the pool
Enterprise customers who ask to control upgrades are almost never afraid of binaries. They are afraid of behaviour change: retraining 20,000 staff after a UI rearrangement, an integration built three years ago, their own change board. You already separate deploy from release for rollout safety. The move here is to make release a contractual, per-tenant schedule and keep deploy entirely yours.
The mechanism is a small number of release channels: current, deferred by 30 days, and deferred by 90. Each is a tenant attribute in the catalog, and each maps to a set of behaviour flags. Binaries ship to every cell on the normal cadence, dedicated cells included, so security fixes, performance work and schema expansions reach everyone. User-visible changes turn on per channel, on the customer’s schedule, with release notes timed to the channel rather than the build. Keep it to two or three channels: the test matrix is channels × live flags, and a per-customer channel is a fork.
If you must let customers pin binaries, and some regulated buyers will insist, understand what you are paying for. With weekly releases and a 90-day maximum lag, thirteen or fourteen versions are live at once. Each must interoperate with the shared control plane, the directory protocol, the chapter 06 metering pipeline, and each other’s data formats.
Versions live ≈ max lag ÷ release interval + 1. Every expand/contract pair, API deprecation and data-format change now takes at least the max lag, and every flag lives at least that long.
The less obvious cost is that max lag becomes the minimum duration of every schema change. An expand/contract rename cannot drop the old column until the slowest ring has passed the release that stopped reading it. With a 90-day ring, every rename, every API field removal and every data-format migration takes at least a quarter, and the code carries both paths for all of it. Flags live at least as long as the lag, so flag debt grows in proportion. The Large-Scale Migrations track covers expand/contract mechanics. The point here is that the enterprise ring sets its clock speed.
13–14
versions live · weekly, 90-day lag
≥ 90 days
every contract phase
2–3
release channels, not per-customer
0 days
deferral for security fixes
Three contract rules make windows survivable. First, windows defer features, never security fixes. Define an emergency-change class in the MSA, with the vendor’s right to apply it outside the window and notice given afterwards. A customer who can veto a critical patch owns the resulting risk, and the contract should say so. Second, a hard maximum lag: past it, the controller upgrades the tenant at the next window, full stop. Without a ceiling, pinned tenants drift past the oldest upgrade path you test, and the eventual upgrade becomes a multi-hop migration on your largest customer. Third, for operations that genuinely need a window, such as a major database version upgrade with a failover, index rebuilds with degraded search, or anything with downtime on a dedicated cell, the orchestrator has to solve a scheduling problem. That means hundreds of cells, each with its own weekly window in its own timezone, and operations whose duration you know only roughly. Duration is heavy-tailed, driven by the tenant’s data shape rather than its size. Illustratively, if a major-version upgrade has a median of 40 minutes and a 1% chance of exceeding a four-hour window, a 300-cell campaign should expect about three overruns, and they land on the whales, whose windows were the hardest to negotiate. Scheduling at the median fails; scheduling everything at the p99 stretches the campaign past the next release. The answer is to make any operation that can overrun pausable and resumable at a safe checkpoint, have the orchestrator preempt at window close rather than at completion, and size the campaign on the number of windows each cell needs, not the number of cells. An online migration that cannot stop at the end of its window turns a maintenance event into an SLA breach.
Two details decide whether the pausable design holds in production. First, the checkpoint has to be safe for the application, not only for the migration tool. Halfway through a table rewrite, the application is serving from the old table while triggers or CDC keep a shadow copy in step. Pausing for a week means that dual-write path runs for a week under real load, so its overhead and its failure modes (a trigger that errors and rolls back user writes, CDC lag that grows until the cutover check can never pass) are now production concerns, not migration details. Second, abort must be cheaper than finish. The orchestrator needs a pre-computed decision at window close minus the rollback time: if the remaining work does not fit, stop and roll back to the last checkpoint rather than push on. That rule turns a 1% overrun into an extra window, which the contract tolerates, instead of unplanned downtime, which it does not.
Design review · upgrade windows
Architect's note · the notice period is the real SLA
The SRE / Reliability track argues that per-tenant attainment, reported as a distribution, is what predicts churn. The SLA is where that distribution becomes money. An enterprise SLA is measured per tenant, usually monthly, with a step-function credit schedule. So the quantity to model is not fleet availability. It is how many tenants cross each step in a bad month, and that depends far more on the shape of incidents than on their total size.
A and C destroy the same number of tenant-minutes; the credit bill differs by 8×. Step-function credits price breadth, while churn follows depth: the 100 tenants in C had a ten-hour outage, and none of them will remember the $2,500 credit.
The consequence is counter-intuitive. Credit schedules price breadth, not depth. A fleet-wide 30-minute outage breaches every enterprise tenant at once. The same tenant-minutes concentrated in one cell for ten hours cost an eighth as much in credits, even though a ten-hour outage is the kind that ends renewals. Cells (chapter 04) cut your credit exposure sharply, and that is a genuine financial argument for them. Do not let the credit schedule become your loss function, though. Credits are usually capped at a fraction of the monthly fee, while a lost renewal costs the whole contract. The number to minimise is expected revenue lost to churn and credits combined, and churn is driven by the deep incidents that cells concentrate.
The definition of “down” decides your exposure more than the target does. Many enterprise SLAs count a minute (or a five-minute interval) as unavailable if the tenant’s error rate exceeds a threshold during that minute. Row B above shows the effect: a 50% partial degradation costs exactly as much in credits as a full outage, so for SLA purposes graceful degradation is worth nothing unless the threshold is set above the degradation you engineer for. Negotiate the definition along with the number. Measure it per tenant at the edge, retain it for the claim window, and publish each tenant’s attainment monthly: a customer who sees your number every month argues far less than one who first meets it in a dispute.
Exclusions have to match the architecture. Customer-caused unavailability, such as a revoked BYOK grant (chapter 05) or a BYOC permission change, should stop the clock, and the system has to detect it as such rather than log it as your outage. Enterprise buyers often strike the scheduled-maintenance exclusion. If you cannot do maintenance without downtime, that single edit turns your maintenance windows into credits, so the engineering answer and the contract answer have to be settled together.
A higher tier needs a different architecture, or it is just insurance. Selling 99.99% to the enterprise tier on the same pooled infrastructure that serves 99.9% changes nothing about outcomes. It changes who pays when things fail. Price it the way an insurer would: the premium has to exceed the expected credit payout, plus a loading for correlation. SLA risk is catastrophe risk, because one bad fleet-wide deploy triggers every policy at once. Run the arithmetic on the budget first. A 30-day month at 99.95% allows 21.6 minutes; at 99.99% it allows 4.3. Detection, a human decision and a rollback rarely fit in four minutes, so on a pooled fleet every bad deploy that reaches all tenants becomes a fleet-wide credit event. Illustratively, if one month in six has such an incident and the credit is 10%, expected payout is about 1.7% of tier revenue with no diversification, because every tenant claims in the same month. A 99.99% premium below that, plus the capital to absorb the bad month, is selling insurance at a loss. A genuine tier difference comes from placement: its own cells with smaller blast radius, a slower and more conservative ring, reserved capacity, and priority in load shedding (chapter 03), ordered by SLA exposure during recovery.
Per-tenant recovery time is the SLA dimension nobody drills. In April 2022, Atlassian ran a maintenance script that deleted the cloud sites of several hundred customers. Some were not fully restored for about two weeks. Atlassian’s post-incident review attributed much of that to restore tooling built for large-scale recovery, not for restoring a subset of tenants into a live multi-tenant environment. Fleet DR drills test the case where everything is lost. The case that actually happens is these 400 tenants, now, while everyone else keeps running. A tenant-granular restore is the chapter 04 mover with a backup as its source: the same copy, verify, fence and cut over. If the mover runs daily, restore is a tested path. If it does not, your per-tenant RTO is unknown, and the SLA probably promises one.
Design review · SLA tiers
No one decides to become a consulting business. It happens through an asymmetry of visibility. The revenue from a special is concentrated, immediate and attributed to a named deal. Its cost is spread thinly across six teams, it arrives over years, and nobody attributes it to anything: an extra step in the release runbook, a branch in the mover, a customer name in the on-call handbook, a flag nobody may delete. Every individual yes is rational on the numbers the deal desk can see.
The model behind the curve is simple. Operational cost scales with distinct configurations, not with tenants. A productised option (EU residency, dedicated DB, deferred channel) is a catalog value that ten or a hundred tenants share. It costs roughly the same to run for the hundredth customer as for the tenth, so the menu curve is nearly flat. A per-customer special adds a constant chunk each. Specials that interact add cost proportional to the number of pairs, because each new special has to be checked against the existing ones in the mover, the release pipeline and the incident runbooks. That is the quadratic term, and it stays hidden until it isn’t, usually during a migration, a region launch or a major incident on the largest customer.
Make the drift measurable. Five numbers, reviewed quarterly next to revenue concentration:
The governance that works has two parts. A rate card makes the productised options cheap to buy and quick to provision, so sales has no reason to go off-menu. An exception register gives every off-menu commitment a named owner, a cost estimate, an expiry date and a renewal-time re-price, with the product owner’s signature. Draw the professional-services boundary just as firmly. Custom work is built on the product’s public APIs, webhooks and extension points, by a team outside the core. If the services team needs private access to build something, that is evidence of a missing API. The fix goes on the roadmap, not in a side door into production.
Pitfall · the one-customer flag
Put the seven chapters side by side and one design emerges. Its spine is the tenant record. It carries the tenant’s tenancy model and cell (chapter 01), its tenant ID as a credential propagated through every hop (02), its fairness weights and reservations (03), its placement, region and movability state (04), its key mode and identity integrations (05), its entitlements and metering plan (06), and its residency boundary, release channel and SLA class (this chapter). Each attribute is consumed by a controller or a data-path check that reads the catalog. No code branches on who the tenant is. The most enterprise-heavy tenant in the fleet should differ from the smallest free-tier tenant only in its catalog row.
On the menu?
region, dedicated DB/cell, ring, key mode, SLA class, private link
Expressible as a catalog attribute a controller reconciles, with a second buyer in 12 months?
the ask generalises; nobody needs to remember it
Contract value over term > build + run cost over term, with owner and sunset date?
a genuine one-off that pays for itself
None of the above
the customer is asking you to be their vendor for something else
“No” at each step falls through to the next. The distribution to aim for: most asks end at step 1, a few per year at step 2, a handful at step 3 with expiry dates you actually enforce.
The second half of the design is that every property this track has asked for is a continuously tested invariant, not a launch checklist. Tenants are isolated (the cross-tenant probes from 02), fair (the noise detectors from 03), movable (the daily canary moves from 04), shreddable (the key-destruction drills from 05), metered exactly once (the reconciliation from 06), resident (the canary-record searches from 7.2) and upgradable within the maximum lag (7.4). Run them against synthetic tenants that cover the option combinations you have actually sold, weighted by the revenue on each. Option combinations cluster on the biggest customers, so pairwise coverage over the catalog’s real tuples finds more than exhaustive coverage over the menu’s theoretical ones.
The last point is organisational, and it is the one architects most often leave to others. The shape of the fleet is decided by the deal desk far more than by design reviews. An architect who is not in the room when clauses are negotiated ends up implementing the architecture someone else signed. Being in the room means bringing prices, not objections: what a new jurisdiction costs, what a 90-day channel does to every schema change, and what a 99.99% tier really exposes in credits.
1
catalog row decides everything
2–3
release channels
8×
credit gap: breadth vs depth
e^(−pN)
clean-release odds, N stacks
Track wrap-up