Distributed Failure, Chaos & Disaster Recovery
Live chaos injection matrix, bounded retry validation, dead letter queue (DLQ) inspection, deterministic projection replay, and runbook operations.
Controlled Chaos Injection Matrix (16 Vectors)
Simulates distributed failure modes locally; verifies recovery timing and invariant preservation.
Network drops mid-sync; queues in local AES-256-GCM outbox
Abrupt local WebRTC sever; aborts peer transfer cleanly
Proposal TTL expires; subsequent intervention triggers 409 LEASE_EXPIRED
Resubmission deduplicated via natural event idempotency key
Sequence gap detected; held safely preventing projection corruption
Background worker killed; transactional atomicity rolls back
Crash after DB write before NATS; outbox retry preserves message
Message bus down; exponential backoff caps at 10 and routes to DLQ
Database connection reset; returns 503 and reconnects cleanly
Cloud lag reconciled; deletes non-public projection records
AI rate exhaustion; graceful fallback to local deterministic rule engine
JSON contract violation; strictly rejected with HTTP 422
Operator role revoked; cached permission invalidated (HTTP 403)
Device timestamp drift rejected with HTTP 400 CLOCK_SKEW_EXCESSIVE
Tab reloaded mid-scenario; restored from IndexedDB outbox vault
QuotaExceededError handled; emergency memory buffer engaged
Dead Letter Queue (DLQ) & Poison Event Quarantine (0 Items)
Events that exceeded 10 bounded retries or encountered poison payloads are held safely here.
| Event ID | Target Asset | Attempts | Last Error Code | Status | Runbook Actions |
|---|
Disaster Recovery Runbook Operations
Execute verified disaster recovery runbook procedures for projection reconciliation, task requeue, key rotation, and scratch restoration.
1. Deterministic Projection Replay
Replays the entire canonical event history for tenant demo-nexus to verify eventual projection convergence.
2. Bounded Task Requeue
Requeues an allowed background task. Enforces max retry bound (5 attempts) to prevent retry storms.
3. Device Identity Key Rotation
Rotates cryptographic identity keypair for compromised or scheduled mobile node. Provides 5-minute grace period.
4. Scratch Backup Restoration
Restores latest point-in-time snapshot onto an isolated scratch schema for forensic analysis.