Recipe

Cross-region data replication plan

A step-by-step blueprint for deploying Meridian workloads across multiple geographic regions with sub-second write propagation and automatic failover.

01

Topology selection

Choose active-active for latency-sensitive reads or active-passive for write-heavy workloads. Meridian supports both via a single config toggle in the cluster manifest.

02

Write-ahead log shipping

Every mutation is durably committed to a local WAL before fan-out. The replication stream uses compressed binary frames over mTLS, keeping cross-region bandwidth under 12 MB/s per 10k ops.

03

Conflict resolution

Last-writer-wins with hybrid logical clocks is the default. For CRDT semantics, enable the causal consistency module — it ships vector clocks alongside each payload and merges deterministically.

04

Health probing

Regional health endpoints are polled every 500 ms. If a region exceeds a 2-second p99 latency threshold for three consecutive probes, the control plane drains connections and promotes a standby.

05

Failback procedure

Once the primary region recovers, Meridian replays the delta log from the standby. After catch-up, traffic shifts back gradually over a 60-second weighted round-robin window to avoid thundering herd.

Estimated latency matrix

Region pairP50 writeP99 writeP50 read
us-east → eu-west68 ms112 ms4 ms
us-east → ap-southeast142 ms198 ms6 ms
eu-west → ap-southeast118 ms164 ms5 ms