What are the challenges of a multi-data center architecture?
Running across multiple data centers (or regions) eliminates single points of geographic failure and reduces latency by serving users from the nearest location. However, it introduces a set of non-trivial challenges:
**Data consistency and replication lag**: writes to one data center must propagate to others. During the replication window, reads from a secondary region may return stale data. Systems must choose a consistency model: strong consistency (synchronous replication — high latency), eventual consistency (async replication — stale reads possible), or causal consistency (partial ordering guarantees).
**Traffic routing and DNS failover**: GeoDNS routes users to the nearest healthy data center. DNS TTLs are typically 60–300 seconds, so failover is not instantaneous. Applications must handle the window between a data center going down and DNS propagating the change — connection pooling, retries, and circuit breakers reduce user impact.
**Failover automation**: detecting a failed data center reliably is harder than it sounds. Split-brain scenarios occur when a data center is isolated (network partition) but not down — two regions both believe they are primary and accept writes. Solving this requires a quorum-based consensus mechanism (Raft, Paxos) or explicit tie-breaking logic.
**Data residency and compliance**: GDPR and similar regulations may prohibit replicating EU user data to US data centers. This creates partitioned data tiers where not all data can be multi-region.
**Deployment complexity**: deploying a new version across regions requires coordination — deploy to one region, validate, then proceed. Schema migrations must be backward-compatible with both old and new application versions simultaneously (expand/contract pattern).
**Cost**: cross-region data transfer is expensive. Minimizing cross-region traffic through caching, read replicas, and careful routing is essential.
The canonical pattern: active-active for stateless web/cache tiers, active-passive or quorum-based for the write path to the primary database. Global load balancing (Route 53 health checks, Cloudflare) handles traffic steering.
Names replication lag, DNS failover delay, and split-brain as the three core challenges with coherent explanations.
Covers data residency compliance, expand/contract schema migrations, active-active vs active-passive distinction, and cross-region traffic cost.
Reading the answer is step one. Explaining it unprompted — under interview pressure — is what actually matters. Get AI-graded feedback on your answer with follow-up probes on your weak points.
Get Graded — Free Assessment