Level 2: Self-preservation
Level 2 keeps the system working through failures that last longer than a retry. Microsoft describes the goal as self-preservation plus a basic recovery plan. See Level 2 in the Microsoft model.
Strategies
| Strategy | Status | Detail |
|---|---|---|
| Evaluate the current state of resiliency | Met | Assessment |
| Add technical capabilities in your monitoring system | Met | Assessment |
| Extend your failure mitigation playbook | Partial | Below |
| Develop a basic recovery plan | Met | Assessment |
| Create test plans | Partial | Below |
| Assess the impact of scaling operations on reliability | Partial | Below |
Extend the failure mitigation playbook
Today. The
application failure catalogue
records failures in code and deployment, such as poison messages, duplicate
delivery, swallowed exceptions, and faulty releases. It covers
boundedctx-incidents, Pigeon, and Phoenix, checked against their code. The
failure mode analysis walks every T0 flow, but
the services on it other than those three are not assessed yet.
Exit criteria. The strategy is met when:
- every T0 and T1 service on the T0 path and its T1 neighbours has been assessed against the ION standard, following applying the standard to other services;
- each assessed service has rows in the failure catalogue, with severity, likelihood, and mitigation;
- each new gap is added to the
RESregister with an owner.
Requirements served: REL-2, REL-3, REL-4.
Create test plans
Today. Reliability testing sets a prioritized test plan with pass criteria, and the drill calendar is defined. The hub regression suite tests Front Door and Application Gateway after every deployment. The graceful degradation guidelines say how to test degraded behavior. No fault-injection test of a retry or degradation path has run, and coverage is below the MNT-2 target.
Exit criteria. The strategy is met when:
- every HIGH-severity row in the failure catalogue has a pass or fail test.
Examples are a mocked
429for retry policies, a poison message that must dead-letter, and a duplicate message that must not double-apply; - the degraded-mode flag has been tested in
gma, with the expected shed and recovery behavior recorded; - the first PITR restore drill and the Front Door bypass drill have run in
gma, following the restore rehearsal; - each T0 service has a test-coverage baseline, with a plan towards MNT-2.
Requirements served: MNT-2, MNT-3, REL-2, REL-3.
Assess the impact of scaling operations
Today. The capacity model defines the planning envelope, the service targets, and a capacity-test matrix. Functions, Container Apps, and Application Gateway autoscale, and Application Gateway keeps at least two instances. Scaling and headroom records zone-loss headroom, scale limits, cold starts, and service limits for the T0 tiers. No load test has been run against the matrix.
Exit criteria. The strategy is met when:
- the observed-baseline, reference-average, and sustained 5× peak scenarios have run against the T0 path in a production-like environment;
- the results name the first bottleneck on the T0 path, such as Cosmos DB RU, Azure SQL DTU, or APIM capacity, and its headroom;
- scale limits for each T0 resource are set and recorded, so that scaling is bounded rather than unlimited.
Requirements served: PERF-1 to PERF-8.
Gaps that weaken met strategies
These gaps do not block Level 2 on their own, but they undermine the self-preservation the met strategies describe. They SHOULD be closed alongside the exit criteria above.
| Gap | Severity | Weakens |
|---|---|---|
| RES-01, RES-02: exceptions swallowed and work completed | HIGH | Transient-fault recovery, background tasks |
| RES-03: no retry on Pigeon Graph calls | HIGH | Transient-fault recovery |
| RES-04, RES-05: missing duplicate detection | HIGH | Self-preservation under redelivery |
| RES-06: incomplete dead-letter alerts | HIGH | Monitoring |
| RES-07: health paths that do not match | MEDIUM | Monitoring |
| DR-01 to DR-04: event store backup, APIM and SQL zone gaps | HIGH | Evaluate the current state of resiliency |