Design a geo-replicated database with defined RPO/RTO, conflict resolution, and traffic steering. Support active-active reads and carefully scoped writes with data sovereignty constraints.
Functional requirements
- Replicate data across regions with async, semi-sync, or quorum options
- Global routing of requests to nearest healthy region
- Conflict handling: LWW, CRDTs, or application merge hooks
- Backup, PITR, and regional evacuation runbooks
- Tenant policies pinning data to allowed jurisdictions
Non-functional requirements
- Explicit RPO/RTO per consistency mode
- Latency-aware routing for interactive workloads
- Containment of regional failures without global outage
- Observable replication lag and divergent write detection