A tenant can receive its own storefront subdomain automatically while its traffic still follows an older geographic routing decision. Provisioning the name and moving the requests run on different clocks. TL;DR: DNS can express a geographic placement preference, but cached answers prevent a record change from being a dependable deadline for traffic evacuation; use request-level routing when the cutover SLO requires control over each arriving request.
Consider a bounded planning exercise: an e-commerce platform provisions linen.shop.example, assigns it to a preferred region, and later needs to move that tenant during a regional incident. This is a hypothetical production scenario, not an incident report. The operational lesson is to keep provisioning completion, DNS visibility, and successful checkout delivery as separate states, because treating a successful DNS update as proof of evacuation hides both residual traffic and the capacity needed to serve it.
Is DNS the right layer for geographic routing during tenant cutovers?
DNS moves an answer.
It doesn't move an established connection, and an authoritative update doesn't invalidate every recursive resolver's cached answer. RFC 1034 describes caching and TTL behavior; RFC 1035 defines the TTL field. A TTL constrains ordinary reuse of a cached resource record, but it isn't an end-to-end application recovery promise. A client that already has a usable connection need not perform a new lookup before sending another request. HTTP connection persistence, described in RFC 9110, makes this distinction relevant to storefront traffic.
The two clocks in this note are the provisioning clock, from tenant creation to a usable hostname, and the evacuation clock, from the decision to leave a region to successful service elsewhere. These are operational measurements proposed here, not protocol fields. Automating the first doesn't establish a bound on the second.
Geographic selection has another qualification: a DNS query reaches an authoritative service through a resolver, so the resolver's network location may stand in for the shopper's location. EDNS Client Subnet can carry a portion of the client address to inform selection, with privacy and cache considerations described in RFC 7871. It's an optional extension, not a universal promise that geographic answers identify the shopper's actual location. A regional preference should therefore remain a preference unless the application separately enforces a stronger placement requirement.
For a storefront, the distinction matters at checkout. Reaching a healthy web endpoint is insufficient if that endpoint cannot access the tenant's required state or safely handle the operation. DNS standards don't establish application data readiness.
Reserve capacity before opening the evacuation gate
The expensive planning mistake is to size the receiving region for a quiet test and then use the DNS change as the signal that the transfer has finished. During a transition, old and new answers can direct requests to different destinations, while existing connections add another source of overlap; a capacity plan must account for that overlap and define what happens to requests that continue arriving at the old destination.
Use explicit planning inputs. Suppose linen.shop.example has a design load of 120 requests per second, and the receiving region is budgeted for 80 requests per second of additional traffic. Those are hypothetical inputs, not measurements or benchmarks. The proposed cutover exceeds the receiving budget by 40 requests per second before considering retries, bursts, or any other tenant being moved. Shortening the TTL doesn't create the missing capacity.
Capacity still matters.
The corrective action depends on the service objective: reserve more receiving capacity, move tenants in smaller groups, or apply a deliberately specified admission policy. A blanket retry policy deserves skepticism because attempted requests also consume resources, and checkout retries need application-level handling of duplicate operations. Budget the recovery workload, not merely the ordinary workload.
Measure the evacuation SLO from the routing decision to successful application requests, with the measurement population and observation window stated explicitly. Record authoritative publication time separately. Track failures and latency by tenant and serving region, receiving-region headroom, and traffic still reaching the previous destination; otherwise a healthy aggregate can conceal one storefront's failed transition. Define the acceptable residual traffic before the exercise. A record update alone cannot supply that definition.
Caching deserves its own test cases. RFC 2308 defines negative caching, so an early lookup for a not-yet-created tenant name can affect later visibility even after provisioning completes. RFC 8767 specifies serving stale DNS data under defined conditions, which is another reason to avoid interpreting a configured TTL as a universal evacuation deadline. Neither mechanism can be diagnosed reliably from the authoritative record alone.
Buy or build the control that owns the deadline
Compare operating responsibilities before comparing subscription costs. A managed DNS control plane may remove infrastructure work, but the application still needs a cutover policy and evidence that the receiving region is ready; owning authoritative infrastructure yourself adds another service to staff without changing recursive caching semantics. Conversely, request-level routing gives an application a place to make a routing decision on each arriving request, at the cost of keeping that routing layer available and sufficiently provisioned. Its own upstream discovery and connection behavior still need examination.
| Approach | Control it provides | Responsibility that remains |
|---|---|---|
| Buy authoritative DNS operations | Delegate operation of authoritative answers | Validate actual geographic policy, health inputs, and application recovery behavior |
| Build authoritative DNS operations | Own publication and authoritative service behavior | Operate that service and accommodate downstream caches |
| Buy request-routing operations | Delegate operation of an ingress routing service | Verify policy changes, capacity, failure behavior, and dependency boundaries |
| Build request-routing operations | Own application routing decisions and admission policy | Staff the routing service, test its failures, and provision its capacity |
These are responsibility categories, not claims about a particular service's features. Procurement needs evidence for the specific implementation. Ask how its configuration reaches the serving path, how it handles an unavailable destination, and what traffic continues using an old decision. An answer expressed only as a DNS TTL leaves the evacuation question unresolved.
Lock-in also lives in policy: health definitions, tenant placement rules, and deployment automation can become difficult to replace even when the emitted DNS records are standard. Keep the tenant-to-region decision and its readiness evidence inspectable outside the publication adapter. That gives the platform team something concrete to review during a migration.
Make the readiness check precede publication
A minimal preventative path should reject a planned tenant cutover before publication when application readiness or receiving capacity is missing. The following Go example defines a control-plane interface rather than inventing a DNS provider API. It assumes callers have already validated the tenant name, serialized placement changes, and reserved the capacity represented by the supplied budget. The numbers use the hypothetical workload above.
package cutover
import (
"context"
"fmt"
)
type Plan struct {
Hostname string
Destination string
DemandRPS int
ReservedBudgetRPS int
}
type Control interface {
CheckTenantReady(context.Context, string, string) error
PublishPlacement(context.Context, string, string) error
}
func Publish(ctx context.Context, c Control, p Plan) error {
if p.Hostname == "" || p.Destination == "" {
return fmt.Errorf("hostname and destination are required")
}
if p.DemandRPS <= 0 || p.ReservedBudgetRPS < p.DemandRPS {
return fmt.Errorf("receiving capacity is insufficient")
}
if err := c.CheckTenantReady(ctx, p.Hostname, p.Destination); err != nil {
return fmt.Errorf("tenant readiness: %w", err)
}
if err := c.PublishPlacement(ctx, p.Hostname, p.Destination); err != nil {
return fmt.Errorf("publish placement: %w", err)
}
return nil
}
var ExamplePlan = Plan{
Hostname: "linen.shop.example",
Destination: "region-b",
DemandRPS: 120,
ReservedBudgetRPS: 80,
}
This plan is rejected.
Publication success means only that the control-plane call succeeded. The caller must then observe application traffic and evaluate the evacuation SLO; neither a nil error nor an authoritative lookup proves that shoppers have left the previous region. The adapter also needs specified behavior for repeated requests and ambiguous publication outcomes, since a timeout doesn't tell the caller whether a remote write took effect. Keep an inspectable desired placement so reconciliation can resolve that ambiguity.
A readiness check can become stale immediately after it succeeds. The serving path must still tolerate a destination becoming unavailable, and capacity reservations must cover concurrent tenant moves rather than letting each controller count the same headroom. These are deliberate limitations of the small example.
Before deployment, exercise a lookup made before tenant creation, an answer cached before a placement change, a connection established before the change, and loss of the preferred destination while the alternate is near its reserved limit. Observe completed storefront operations, not just DNS responses. Rollback requires the same discipline: restoring an earlier record is another publication event with caching consequences.
When does DNS placement remain sufficient?
DNS is a reasonable placement layer when the platform accepts convergence over time and every destination that can still receive traffic can safely serve or explicitly handle it. It can also remain useful as the coarse entry point ahead of a request router. The need for faster application decisions doesn't eliminate the need to resolve the hostname.
For an e-commerce platform automatically assigning tenant subdomains, the decision rule is operational: if the cutover objective requires old and new arrivals to be handled correctly while cached answers coexist, provide that behavior in the serving path and reserve its capacity. If delayed convergence fits the objective, DNS placement may be sufficient, with less routing machinery to operate. Keep the provisioning clock and the evacuation clock visible in either design.
References
Sources:
- RFC 1034, Domain Names — Concepts and Facilities: https://datatracker.ietf.org/doc/html/rfc1034
- RFC 1035, Domain Names — Implementation and Specification: https://datatracker.ietf.org/doc/html/rfc1035
- RFC 2308, Negative Caching of DNS Queries: https://datatracker.ietf.org/doc/html/rfc2308
- RFC 7871, Client Subnet in DNS Queries: https://datatracker.ietf.org/doc/html/rfc7871
- RFC 8767, Serving Stale Data to Improve DNS Resiliency: https://datatracker.ietf.org/doc/html/rfc8767
- RFC 9110, HTTP Semantics: https://datatracker.ietf.org/doc/html/rfc9110
Top comments (0)