MLOpsModel Deployment & CI/CD Automation

How do you design cross-region routing for production ML inference to handle regional outages and capacity shortfalls while preserving data residency, model consistency, and predictable latency?

Question 147 of 164 · Updated

On this page

Cross-region inference routing is a policy-controlled decision about where each prediction may execute, not simply a DNS failover rule. A robust design keeps eligible model-serving destinations ready in multiple regions, routes locally while local capacity and health are acceptable, shifts only permitted requests when a region is degraded or saturated, protects receiving regions from overflow, and returns traffic gradually after recovery. It must preserve model and feature compatibility, data-residency boundaries, tenant authorization, request deadlines, idempotency, and observable evidence of every routing decision.

A second region is not automatically a working failover region. It may have the wrong model digest, stale features, no GPU quota, insufficient concurrency, cold model weights, different preprocessing, or no permission to process the request. The routing layer must treat those as eligibility failures rather than sending traffic there because a health check is green.

Curriculum boundary: Q129 covers the broader high-availability and disaster-recovery program: RTO/RPO, backup/restore, pilot light, warm standby, active-active, and regional recovery readiness. Q147 narrows the scope to the runtime routing control plane: destination eligibility, health and capacity signals, cross-region overflow, residency-aware routing, failover/failback behavior, and per-request observability. Q134 covers endpoint and tenant security; Q137 covers inference API and prediction-contract compatibility; Q141 covers request deadlines and cancellation; Q142 covers idempotency; Q146 covers worker-level LLM KV-cache-aware routing within an inference fleet. This lesson is about regional destination selection, not GPU-worker selection or a replacement for the full DR plan.

1. Start with a concrete production scenario#

A fraud-scoring service receives 1,000 requests per second in Region A. It has a matching deployment in Region B, but Region B also serves its own customers.

Assume load testing established that each healthy instance can sustainably process 100 requests/second while meeting the latency SLO. Region A has 12 instances, so its tested capacity is approximately 1,200 requests/second. Region B has 10 instances, or 1,000 requests/second. The service reserves 20% of Region B's measured capacity for cross-region requests.

  • Region A normally handles its local 1,000 requests/second.
  • Region B handles 800 local requests/second.
  • Its remaining 200 requests/second are the planned overflow allowance.
  • If Region A fails, sending all 1,000 requests/second to Region B would exceed the reserved allowance by 800 requests/second and could degrade both regions.

The lesson is that having a healthy endpoint in another region does not prove it has safe spare capacity. Capacity must be measured with the actual model, payload distribution, hardware, feature lookups, batching policy, and concurrency limits.

2. Define the routing contract before choosing a product#

Write down the routing invariants in plain language. They become design constraints, tests, and incident runbook steps.

  • Local preference: Serve in the caller's home region when an eligible local destination can meet the service's health and capacity policy.
  • Explicit eligibility: A destination is eligible only if it has the approved model/runtime/feature-contract identity, enough capacity, valid credentials, and permission to process this request's data class.
  • Residency boundary: Requests classified as region-restricted must never cross the approved geography boundary, even during an outage.
  • Bounded overflow: Remote traffic must not consume capacity reserved for that region's local users or critical workloads.
  • No unsafe retry: Retry remotely only when evidence shows the original destination did not execute the model or commit a side effect. A timeout is ambiguous.
  • Controlled failback: Do not send all traffic back immediately when a recovering region first becomes healthy. Require sustained health and gradually restore load.
  • Traceability: Every request must record the selected region, destination, routing reason, model release, policy version, and any retry/failover decision.
  • Graceful no-route behavior: If no eligible destination exists, reject, queue, or use an explicitly approved degraded decision. Never silently violate residency or model-compatibility rules to return a prediction.

These invariants are more important than the particular load balancer or cloud service.

3. Separate routing control plane from inference data plane#

The data plane receives and executes prediction requests. It includes the API gateway, regional router or proxy, feature retrieval, model server, and response path.

The control plane maintains the desired destination inventory and routing policy. It knows which model releases are approved in each region, which destinations are healthy, their capacity budgets, residency labels, and rollout state.

A practical architecture:

  1. A caller authenticates and supplies a request with a trusted tenant and data-class identity.
  2. A global or regional entry point resolves the caller's home region and permitted processing geography.
  3. A routing policy filters destinations by residency, model release, API/feature contract, security policy, and operational state.
  4. The router prefers a healthy local destination with available capacity.
  5. If local service is degraded or overloaded, it selects an eligible remote destination with reserved overflow capacity.
  6. The destination runs inference and returns the response plus destination identity and routing metadata.
  7. Telemetry records the decision, latency, retry state, model identity, and region transition.

Keep control-plane configuration changes out of the synchronous request path where possible. Cache a signed, versioned routing policy locally with a bounded staleness window, but define what happens when policy freshness expires. A router must not keep using an old policy indefinitely if a region has been removed for legal or security reasons.

DNS-based failover can redirect clients to another regional entry point, but DNS alone does not know model compatibility, live inference capacity, per-tenant residency, or whether a particular request was already executed. Use DNS or global load balancing as an entry-point mechanism, not as the complete ML inference routing policy.

4. Model destination eligibility as a hard filter#

Do not combine every concern into one weighted score. Some conditions are non-negotiable and must be evaluated before ranking destinations.

A destination is eligible only when all required checks pass:

  • The region is allowed for this tenant, data class, and request purpose.
  • The endpoint is authorized to accept traffic from the caller/router.
  • The expected model artifact digest and serving image digest are present.
  • The model version, tokenizer/preprocessor, feature schema, and response contract are compatible.
  • Required feature stores, secrets, reference data, and policy services are reachable.
  • The destination has enough tested capacity under its current load.
  • The deployment is approved and not draining, quarantined, or in an unsafe rollout stage.
  • The endpoint's health signal is recent enough to trust.

Only after this filtering should the router compare eligible destinations by locality, latency, load, cost, or other soft preferences.

For example, if Region B is 15 ms farther away but is the only permitted region with the approved model and fresh features, it may be the correct destination. If Region C is closer but prohibited for a regulated tenant's data, its low latency is irrelevant.

Treat unknown eligibility as ineligible for sensitive traffic. Fail closed for residency and authorization; consider a controlled fail-open only for non-security telemetry or other explicitly non-critical signals.

5. Use health and capacity signals that reflect model-serving behavior#

A Kubernetes Pod being ready does not prove that an inference endpoint is healthy. A model server can be alive while it is unable to load weights, retrieve features, allocate GPU memory, or meet its latency objective.

Use several signal classes:

  • Infrastructure health: endpoint availability, process health, instance count, GPU availability, network reachability, and dependency health.
  • Serving health: successful invocation rate, throttling, server errors, model-load failures, queue depth, and active requests.
  • Latency health: p50, p95, and p99 end-to-end latency, plus regional network overhead and feature-retrieval time.
  • Capacity health: tested sustainable RPS, active concurrency, queue wait, GPU utilization/memory pressure, batch formation, and autoscaling headroom.
  • Prediction health: schema validity, finite values, expected output range, model-version identity, and feature freshness.
  • Business health: invalid-decision rate, fallback rate, fraud loss or other domain outcome, and protected cohort performance.

Use separate thresholds for healthy, overloaded, and degraded. An overloaded region may still serve a fraction of traffic; a degraded region may need most new traffic diverted. Avoid a binary up/down signal when the service can be partially healthy.

Do not use latency alone without understanding the failure mode. A latency spike may be a warning of saturation, but it can also be caused by a slow feature store or network path. A routing controller should distinguish failures that remote routing can fix from failures shared by all regions.

6. Calculate overflow capacity rather than guessing#

Suppose Region B has 10 instances. A representative load test shows 100 RPS per instance at the required p99 latency. Its nominal tested capacity is:

10 × 100 = 1,000 RPS.

If 20% is reserved for cross-region requests:

1,000 × 0.20 = 200 RPS.

If local traffic is already 800 RPS, the 200 RPS overflow allowance exactly fills the tested capacity. It is not safe to send another 300 RPS just because the endpoint reports healthy.

A more conservative calculation includes headroom:

  • Tested sustainable capacity: 1,000 RPS.
  • Planned local peak: 700 RPS.
  • Safety headroom: 15% of capacity, or 150 RPS.
  • Remaining cross-region budget: 1,000 − 700 − 150 = 150 RPS.

This budget must be recalculated as instance count changes and must reflect the actual workload mix. One request with a large image or long LLM prompt may consume far more compute than a short tabular prediction. For variable-cost workloads, use weighted concurrency or token/compute budgets rather than request count alone.

Capacity rule: The receiving region must be sized for its own peak demand plus the overflow it is contractually expected to accept, with an explicit safety margin. If it cannot absorb the full failed-region load, document the maximum service level that remains available and the behavior for excess requests.

7. Choose the right regional topology#

There is no universally best topology.

  • Active-passive / cold standby: The secondary region has artifacts and recovery automation but little or no serving capacity. Lowest steady-state cost; highest recovery delay. Suitable only when the business accepts a longer RTO and the region can obtain compute and quotas during an incident.
  • Pilot light: Core configuration, data replication, and minimal critical resources exist in the secondary region. Scale out after failure. Faster than cold restore, but model loading, GPU quota, autoscaling, and dependency warmup remain in the recovery path.
  • Warm standby: A smaller but functional model-serving fleet is already running. It can take traffic faster, but costs more and still needs a tested scale-up and overflow plan.
  • Active-active: Multiple regions serve live traffic. It reduces dependence on a single region and can support locality, but requires consistent releases, routing, feature/data strategy, duplicated capacity, and clear ownership of cross-region behavior.
  • Capacity overflow: Regions normally serve their own users but can lend a bounded amount of spare capacity to another region. This can improve utilization, but requires strict capacity caps so simultaneous regional peaks do not overload every destination.

Choose the topology from business RTO/RPO, traffic shape, data-residency obligations, accelerator availability, and cost—not from a preference for a fashionable architecture.

8. Preserve model and feature consistency across regions#

A router should not treat two endpoints as equivalent merely because they share a friendly model name.

For each destination, verify an immutable release manifest containing:

  • Model artifact digest and registry version.
  • Container image digest, runtime version, and inference engine configuration.
  • Tokenizer, preprocessing, postprocessing, and feature-contract versions.
  • Feature definitions and transformation code.
  • Calibration, threshold, and business-rule versions.
  • Required reference data and its freshness watermark.
  • API request/response contract and compatibility range.
  • Security policy, approved data classes, and region eligibility.

A release can be marked routable only after the regional deployment passes smoke tests and representative inference tests. Do not let a mutable registry alias such as production resolve independently in each region at request time; pin each destination to the exact approved digest.

For online features, define whether a remote region reads from a replicated local feature store or calls a shared cross-region store. The first reduces latency but introduces replication lag; the second may increase latency and create a dependency on cross-region connectivity. Track feature event-time watermarks and enforce a maximum staleness budget.

Example: a fraud model expects a balance feature no older than 60 seconds. Region B's replicated feature store is 4 minutes behind. Its endpoint may be healthy at the infrastructure level, but it is not eligible for this decision unless the product has an explicitly approved stale-feature fallback.

9. Enforce data residency and tenant-specific routing#

Residency is a hard policy, not a preference score.

Derive tenant identity from authenticated claims or a trusted server-side mapping. Do not trust a region, tenant_id, or data_residency field supplied by an untrusted client without authorization checks.

For each request, classify:

  • Tenant and data controller.
  • Data sensitivity and allowed processing geography.
  • Whether raw inputs, derived features, prompts, outputs, and logs have the same residency restriction.
  • Whether cross-region transfer is allowed for inference, telemetry, debugging, or backup.
  • Whether a provider subprocessor or cross-account destination is approved.

A tenant may permit inference in two regions but require logs to remain in one geography. Another may permit metadata routing globally while prohibiting raw payload transfer. The routing layer and observability pipeline must enforce these separately.

Use separate routing pools or policies for different legal boundaries. If no eligible destination exists within the permitted geography, return a clear capacity or policy error, queue the request where appropriate, or invoke a documented in-region degraded mode. Never silently route to an unapproved region to maintain availability.

Test negative cases explicitly: a request from a restricted tenant must remain blocked even when the only healthy endpoint is outside its permitted geography.

10. Design failover as a state machine#

Avoid a router that flips regions on a single error. Transient failures can cause oscillation, duplicate work, and unnecessary cross-region traffic.

A simple state machine can include:

  • LOCAL_HEALTHY: local region serves normally.
  • LOCAL_OVERLOADED: local region continues serving within its budget; eligible overflow is diverted.
  • LOCAL_DEGRADED: most new traffic is sent to approved remote destinations.
  • LOCAL_RECOVERING: local health has improved, but traffic remains partly remote during a stabilization window.
  • REMOTE_LIMITED: all eligible remote capacity is at its cap; apply backpressure, queueing, or explicit rejection.
  • NO_ELIGIBLE_DESTINATION: no destination passes hard eligibility checks; invoke the documented safe failure policy.

Use consecutive failures, rolling error windows, health-score hysteresis, minimum dwell times, and recovery windows to prevent flapping. Thresholds should be calibrated from load tests and incident history, not copied blindly from a vendor example.

Failover should normally affect new requests. Do not assume an in-flight request can be safely moved after execution begins. A request that timed out may have completed on the original region. Apply Q142's idempotency rules and Q141's deadline propagation before retrying.

11. Make retries safe and bounded#

Classify errors by whether model execution may have occurred:

  • Known pre-execution rejection: for example, a destination explicitly rejected the request before invoking the model because it was throttled or unavailable. A single retry to another eligible destination may be safe.
  • Ambiguous timeout or connection loss: the model may have executed and the response may have been lost. Do not blindly replay non-idempotent work.
  • Model/application error: invalid input, deterministic model error, or a business-rule rejection is unlikely to be fixed by another region. Return or handle it according to the API contract.
  • Regional control-plane failure: the router itself may be unavailable. The client needs a bounded alternate entry-point strategy, not unlimited recursive retries.

Set a maximum attempt count, total deadline, and retry budget. Use exponential backoff with jitter for retryable operations. Avoid retrying at every layer: if the client, gateway, router, and model SDK each retry three times, one logical request can multiply into many executions.

Propagate the same idempotency key across regional attempts. Record the attempt number, original region, destination region, and execution status. Ensure deduplication state is available where retries can land, or explicitly constrain the retry path to a region where the idempotency record can be checked.

12. Control failback and avoid recovery storms#

A recovering region may have lost warm model weights, autoscaling capacity, feature connections, or cache state. Sending 100% of traffic back immediately can create a second outage.

A safe failback sequence:

  1. Confirm regional infrastructure and model dependencies are healthy.
  2. Verify the expected release and feature watermarks.
  3. Run synthetic and representative inference probes.
  4. Restore a small fraction of traffic.
  5. Observe error rate, queue depth, p95/p99, feature freshness, and prediction validity.
  6. Increase traffic in bounded steps after each bake interval.
  7. Stop or reverse the process if an alarm trips.
  8. Remove temporary overflow only after the region is stable and capacity is sufficient.

Use a longer or more conservative failback window than the initial failover if recovery signals are noisy. Keep the old region's capacity until the new routing distribution has been observed and confirmed.

13. Monitor the routing system, not just endpoints#

Every prediction should be traceable through a regional routing decision. Emit structured telemetry with:

  • Logical request ID and idempotency key hash (never raw secrets).
  • Tenant and data-class labels at a privacy-safe level.
  • Caller/home region and actual serving region.
  • Destination endpoint or inference-component identity.
  • Model, container, feature-contract, and routing-policy versions.
  • Routing reason: local, capacity overflow, health failover, manual override, or recovery.
  • Attempt count, retry classification, and whether execution was confirmed.
  • End-to-end latency and regional network overhead.
  • Destination health/capacity state at selection time.
  • Feature freshness and model-load/warmup state.

Key metrics:

  • Requests and error rate by source region and serving region.
  • Cross-region traffic share and bytes transferred.
  • Capacity budget consumed by remote traffic.
  • Per-destination queue depth, throttles, active requests, and p95/p99.
  • Failover detection time, traffic-convergence time, and failback duration.
  • Requests rejected because of residency, compatibility, or capacity rules.
  • Model digest mismatch and feature freshness violations.
  • Retry count, duplicate execution rate, and ambiguous timeout count.
  • Router availability and policy age.
  • Cost per 1,000 predictions by serving region.

Alert on unexpected cross-region traffic, a destination at its overflow cap, a rise in remote p99, stale routing policy, mismatched model identity, and any residency-policy rejection spike. A regional failover that succeeds technically but doubles cost or silently changes model behavior is still an operational event that needs visibility.

14. Failure scenarios and debugging#

Scenario A: Local region fails but remote endpoint is not receiving traffic

  • Check destination registration, authorization, eligibility filters, and router health.
  • Verify the remote model has ready instances and the correct release digest.
  • Inspect whether the health policy detects the actual failure class.
  • Confirm that the request's residency policy permits the remote region.
  • Do not loosen residency or compatibility checks as an emergency shortcut.

Scenario B: Remote endpoint becomes overloaded after failover

  • Compare remote local RPS plus overflow RPS with its tested capacity budget.
  • Inspect cross-region caps, autoscaling delay, queue depth, and active concurrency.
  • Apply admission control or shed low-priority work before p99 collapses.
  • Restore additional capacity or route to another eligible region if available.
  • If capacity is exhausted everywhere, return a bounded overload response rather than amplifying retries.

Scenario C: Failover succeeds but prediction quality changes

  • Compare exact model, tokenizer, feature, calibration, and policy digests.
  • Inspect feature freshness and regional replication lag.
  • Replay a safe golden request set against both destinations.
  • Quarantine a mismatched destination until parity is restored.

Scenario D: Traffic oscillates between regions

  • Inspect health-window duration, thresholds, hysteresis, and failback dwell time.
  • Check whether a single noisy dependency is incorrectly marking the whole region unhealthy.
  • Separate overload from hard failure and avoid immediate all-or-nothing switches.
  • Add a minimum stable interval before failback.

Scenario E: Duplicate inference occurs during retry

  • Inspect attempt traces and whether the original execution status was ambiguous.
  • Check idempotency-key propagation and deduplication-store consistency.
  • Ensure a timeout is not classified as proof that the model did not run.
  • Add a test where the server completes inference but the response is dropped.

Scenario F: Restricted tenant data crosses a boundary

  • Treat as a security incident, stop the prohibited route, preserve audit evidence, and follow the applicable incident process.
  • Verify tenant identity derivation, policy version, routing cache freshness, and destination allowlists.
  • Test the same request against every possible failover path.
  • Do not rely on dashboards alone; inspect per-request destination evidence.

Scenario G: Router or global entry point fails

  • Verify whether the router is regional and whether a second independent entry point exists.
  • Ensure the alternate entry point has the same signed policy and destination eligibility data.
  • Test failover without depending on the failed region's control plane or DNS.
  • Avoid a single global router becoming a new single point of failure.

15. Numerical example: estimate the effect of a regional outage#

Assume:

  • Region A receives 900 RPS and has a tested capacity of 1,100 RPS.
  • Region B receives 500 RPS and has a tested capacity of 900 RPS.
  • Region B reserves 20% of tested capacity for cross-region traffic.
  • The safety margin is 10% of tested capacity.

Region B's nominal overflow cap is 900 × 20% = 180 RPS. Its safety margin is 900 × 10% = 90 RPS. Its planned local load plus maximum overflow is 500 + 180 = 680 RPS, leaving 220 RPS of tested capacity beyond the planned local-plus-overflow load.

If Region A fails, Region B can accept only 180 RPS under this policy, not all 900 RPS. The remaining 720 RPS must be handled by another approved region, a queue, a lower-priority shedding policy, or a documented unavailable response. The service should not pretend that all traffic is recoverable merely because the second endpoint is healthy.

If a third region can safely accept 300 RPS, the system can route 180 RPS to B and 300 RPS to C. The remaining 420 RPS is still beyond capacity and needs an explicit business policy. This arithmetic should be part of capacity reviews and game-day exercises.

16. Production trade-offs#

  • Availability vs residency: More eligible regions improve resilience, but some tenants may legally restrict processing to one geography. Availability objectives must be designed around those constraints.
  • Active-active vs warm standby: Active-active reduces activation delay and can share load, but costs more and makes consistency, capacity ownership, and regional observability harder.
  • Locality vs spare capacity: The nearest region is not always the safest region. Prefer local service while healthy, but route to a farther region when it is the only eligible destination with capacity.
  • Aggressive failover vs false positives: Fast thresholds reduce time spent on a failing region but can cause flapping and cross-region cost spikes. Hysteresis and failure classification reduce noise.
  • Autoscaling vs pre-provisioning: Autoscaling can reduce steady-state cost, but GPU quota, image pulls, model loading, and warmup may make scale-out too slow for a tight RTO.
  • Shared feature store vs regional replicas: Shared storage can improve consistency but increase latency and cross-region dependency. Replicas reduce latency but need freshness and reconciliation guarantees.
  • Centralized router vs regional routers: A centralized decision point can simplify policy but become a latency or availability dependency. Regional routers improve locality but require consistent policy distribution and independent failure testing.
  • Fail-closed vs degraded operation: Refusing to route outside residency or model-compatibility limits protects users and compliance. A safe degraded response may preserve business continuity, but only if the business has explicitly approved it.

17. Common mistakes#

  • Treating DNS health checks as a complete inference routing strategy.
  • Assuming a second region automatically has GPU quota, warm weights, and sufficient throughput.
  • Sending all failed-region traffic to a region that is already serving its own peak.
  • Ranking destinations before applying residency and security constraints.
  • Checking only endpoint liveness instead of inference success, feature freshness, and tail latency.
  • Deploying the same model name but different model, tokenizer, preprocessing, or calibration artifacts.
  • Retrying after an ambiguous timeout without idempotency protection.
  • Failing back immediately when a health check turns green.
  • Allowing a regional router or global control plane to become a single point of failure.
  • Forgetting that logs, prompts, embeddings, derived features, and outputs may have different residency requirements.
  • Treating a successful routing switch as proof that the business prediction remains correct.
  • Measuring capacity in requests/second when request cost varies dramatically by payload, sequence length, or model path.

18. CI/CD, load tests, and game-day validation#

Make routing safety a release requirement, not a manual checklist.

Build and policy tests

  • Validate the signed destination inventory and immutable model/runtime/feature digests.
  • Reject destinations outside each tenant's allowed geography.
  • Verify every destination has explicit authorization and an approved data-processing purpose.
  • Test missing, stale, or malformed routing-policy versions.
  • Confirm that no mutable model alias is resolved differently at runtime.

Functional integration tests

  • Verify local preference when the local region is healthy.
  • Simulate local overload and confirm only the configured overflow fraction moves.
  • Simulate hard regional failure and verify only eligible destinations receive requests.
  • Verify no eligible destination returns the documented safe response.
  • Verify failback occurs gradually and stops when a safety alarm trips.
  • Verify per-request routing reason and destination identity are present.

Inference correctness tests

  • Run the same golden fixtures against every region and compare schema, numerical tolerances, class ordering, calibration, and business decisions.
  • Validate feature freshness and event-time watermarks.
  • Confirm model and container digests match the approved manifest.
  • Test representative large and small payloads, including worst-case token or image sizes.

Resilience and capacity tests

  • Load test each destination with its local peak plus planned overflow.
  • Test simultaneous regional peaks and the loss of the largest region.
  • Verify cross-region caps, queue limits, admission control, and backpressure.
  • Inject throttling, 5xx responses, timeouts, network partitions, stale health signals, and router failure.
  • Drop the response after model execution to test ambiguous retry and idempotency behavior.
  • Measure detection time, traffic shift, p95/p99, error rate, and recovery time.
  • Test failback while the recovered region is cold and while its autoscaler is still scaling.

Security and governance tests

  • Attempt prohibited cross-region routing for restricted tenants.
  • Verify logs and traces do not leak raw prompts, features, secrets, or personal data.
  • Confirm cross-account endpoint authorization is limited to the intended router.
  • Retain an auditable record of policy version, destination, model digest, and routing reason.
  • Verify policy revocation takes effect within the documented maximum staleness window.

Release gates

  • Block promotion on model digest mismatch, residency violation, feature-staleness breach, invalid output, or missing routing evidence.
  • Require a named owner and rollback/runbook for every routing policy change.
  • Use a canary for the router or policy itself, not only for the model.
  • Run a periodic regional game day and verify the measured RTO against the target.
  • Keep test evidence with the release so an operator can prove the exact policy and destination behavior that was validated.

19. Practical implementation sequence#

  1. Classify tenants, data, and allowed processing regions.
  2. Establish immutable release manifests and regional parity checks.
  3. Load-test each region to establish sustainable capacity and overflow budgets.
  4. Deploy regional inference destinations and verify dependencies, feature freshness, and model identity.
  5. Add a routing layer with hard eligibility filters and local preference.
  6. Add health classification, overflow caps, retry budgets, and failback hysteresis.
  7. Emit per-request destination and policy evidence.
  8. Test region failure, saturation, policy revocation, ambiguous timeout, and router failure.
  9. Start with a small, explicitly permitted traffic slice and increase only after observing the SLOs.
  10. Rehearse the runbook and update capacity, residency, and recovery assumptions as traffic changes.

20. Final takeaway#

Cross-region inference is safe only when the destination is permitted, compatible, healthy, and has measured spare capacity. Route locally by default, shift traffic according to bounded and observable health/capacity policies, preserve model and feature identity across regions, and never bypass residency or idempotency rules to make an availability dashboard look green. A complete design includes failover, failback, capacity reservation, per-request traceability, and repeatable CI/CD/game-day evidence.

The core operational question is not “Is another region up?” It is: “Can this exact request be safely and correctly served by this exact destination, under this tenant's policy, within the remaining deadline and capacity budget?”

Related questions

Explore other topics:Machine LearningRetrieval-Augmented GenerationAI Agents