ION Docsarchitecturev3
Graceful degradation guidelines
Classify behavior
- Classify each operation as critical, deferred, or sheddable.
- Define required dependencies, acceptable staleness, queue limits, timeout
budget, and user response for each operation.
- Never keep an optional feature alive by risking authoritative event or command
correctness.
Contain dependencies
- Set explicit connection and operation timeouts.
- Retry only transient failures and only when the operation is idempotent or
protected by an idempotency key.
- Use exponential backoff with jitter and a bounded attempt count.
- Open circuit breakers before an unhealthy dependency exhausts threads,
connections, or gateway capacity.
- Isolate high-cost background work from interactive and ingestion capacity.
Shed and recover safely
- Register sheddable behavior with the platform degraded-mode control.
- Return
202 only after durable acceptance; otherwise return a documented
503 with Retry-After.
- Pause consumers when continuing would corrupt ordering or overwhelm a
recovering store.
- Drain backlogs under rate control and preserve dead-letter evidence.
- Remove degraded mode only after required dependencies, error rates, and
backlog trends are healthy.
Test the behavior
- Inject dependency timeouts, throttling, unavailable responses, and queue
saturation in non-production.
- Verify critical capacity remains available and user responses match the
documented contract.
- Measure recovery and backlog-drain time, not only fault detection.