PLAT-1842[!IMPORTANT] This RFC proposes moving event ingestion from a single-region synchronous HTTP service to a dual-region edge-buffered pipeline. Target availability increases from 99.9% to 99.99% with p99 write latency under 45 ms.
Our current single-region ingestion API (us-east-1) processes 42,000 events/sec at peak. During regional network brownouts or downstream warehouse maintenance, producer retries amplify load by 4x–6x and trigger cascading timeouts.
Producers attach an Idempotency-Key header (UUIDv7). The ingestion service checks a regional Redis bloom/set cache before writing to the partitioned log.
| Option | Write p99 | Failover RPO | Monthly Infra Cost | Operational Complexity | Decision |
|---|---|---|---|---|---|
| A. Dual-region Kafka + Async Mirror | 38 ms | ~0s (per-region ack) | $14,200 | Medium | Recommended |
| B. Global Spanner / CockroachDB | 115 ms | 0s (synchronous) | $31,800 | Low | Rejected (latency + cost) |
| C. Single-region + Client Disk Spool | 22 ms | Unbounded (client loss) | $6,400 | Low | Rejected (SDK burden) |
| D. Managed Kinesis + Cross-Region Lambda | 65 ms | < 5s | $19,500 | Low | Fallback if Kafka ops slip |
| Failure Scenario | Blast Radius | Detection Signal | Automated Mitigation |
|---|---|---|---|
| Primary region broker quorum loss | us-east-1 writes |
produce_error_rate > 1% for 30s |
Edge health check shifts 100% traffic to eu-west-1 |
| Dedupe cache eviction / restart | Temporary duplicate writes | redis_evictions_total spike |
Downstream compactor deduplicates by event_id on merge |
| Poison-pill schema payload | Single partition lag | consumer_lag_seconds > 120 |
Route invalid records to DLQ after 3 retries |
85,000 events/sec) with chaos broker kills/v1/events