System Design Atlas

Telecommunications incidents and service restoration

10 / 10Worked example

Final design

Validation includes fault recurrence. Which conditions ensure the outcome?

The happy path misses premature closure.

Starting point Closure remains blocked until missing data arrives.

Assumptions for the example case

Fictitious regional access network. The application correlates events and documents incident resolution; it does not automatically change network configuration. All quantities, thresholds and operational objectives in this design are illustrative assumptions.

Incident resolution architecture with tests

Ingestion and correlation

Network monitoringFault + healthy
Alarm adapterDeduplicated ingestion
Alarm logIndividual events
Relational ticket storeMarker + T-46
Correlation workerConnecting alarms
Incident APIIncident resolution + validation
Impact read modelConnections + Ticket
Connection inventoryExternally versioned
Network operations interfaceValidation
Field service interfaceRepair
Customer service interfaceEffects
Network monitoring → Alarm adapterAlarm event
Alarm adapter → Alarm logImmutable record
Alarm adapter → Relational ticket storeIngestion marker
Alarm log → Correlation workerIngested events
Connection inventory → Correlation workerInventory version
Correlation worker → Relational ticket storeT-46
Network operations interface → Incident APIValidation + closure
Field service interface → Incident APIRepair report
Customer service interface → Incident APIRead impact
Incident API → Relational ticket storeTicket update
Relational ticket store → Impact read modelTicket state
Connection inventory → Impact read modelInventory version

The alarm adapter commits the event and ingestion marker; correlation preserves provenance; the API manages incident resolution and closure validation.

Topology from 6 with replay at ingestion, a boundary fault at validation and a watermark gap; links back to 4, 5, 9.

Test plan with expected outcomes

Input and initial stateExpected resultReturn to an earlier step
T-46 version 4 under observation → closure and a new fault in both commit ordersA fault observed within the window prevents final closure; revise closure and reopen active handling when needed.Step 5/7
A-46 stored → identical replay, then change kindOne event; the changed replay conflicts.Step 4
healthySince=0 → fault at 299,999/300,000/300,001 msThe first two prevent closure; the last is a new fault after the window and opens a follow-up ticket if the original ticket is already closed.Step 2
Source sequences 10, 12 present → Attempt completion, then deliver 11The gap blocks closure; validation can succeed once watermark coverage is complete.Step 9

T-46 version 4 under observation → closure and a new fault in both commit orders

Expected result
A fault observed within the window prevents final closure; revise closure and reopen active handling when needed.
Return to an earlier step
Step 5/7

A-46 stored → identical replay, then change kind

Expected result
One event; the changed replay conflicts.
Return to an earlier step
Step 4

healthySince=0 → fault at 299,999/300,000/300,001 ms

Expected result
The first two prevent closure; the last is a new fault after the window and opens a follow-up ticket if the original ticket is already closed.
Return to an earlier step
Step 2

Source sequences 10, 12 present → Attempt completion, then deliver 11

Expected result
The gap blocks closure; validation can succeed once watermark coverage is complete.
Return to an earlier step
Step 9

End-to-end test and unresolved agreements

First end-to-end path
Deduplicate an alarm storm, create tickets, document repairs and test closure against a boundary fault and a missing source sequence.
Clarify before real use
Agree the correlation topology, inventory freshness, real stability periods and partner contracts before production use.

The test includes the fault returning.

The test includes the fault returning.

The end-to-end test includes a fault at the boundary and a sequence gap.

The happy path misses premature closure.

The adapter deduplicates; failures return to 4. Validation prevents or revises closure; failures return to 2 and 5.

Alternative considered
A repair report alone is insufficient.
Trade-off
Tests must allow controlled time and event order.
Reassess
Add further network types after validating this design.

Try it yourself

Map replay and window failures to earlier design steps.

A hint for your attempt

The happy path misses premature closure.

Compare with a possible solution
Replay
The adapter deduplicates; failures return to 4.
Window
Validation prevents or revises closure; failures return to 2 and 5.

Apply to your project

How does this principle apply in your project: validation includes fault recurrence?

Transfer the decisions and their counterexamples to the editable design template.

Start your own design

Choose a small case from your project. The template collects the ten design tasks and leaves space for your sketches, decisions, and open assumptions. You can edit it in your text editor or note-taking app.

Download design template (.md)
Compare the ten tasks with the example case
  1. Purpose and boundary

    How does this principle apply in your project: alarms and incidents are different entities?

    In the example: The ticket links evidence without deleting it.

  2. Requirements

    How does this principle apply in your project: the observation window includes its endpoint?

    In the example: Closure requires a completed, fault-free observation window.

  3. Scale estimates

    How does this principle apply in your project: alarm storms concentrate load on a hotspot?

    In the example: Test alarm storms and evenly distributed load separately.

  4. Interfaces

    How does this principle apply in your project: acknowledgement follows durable ingestion?

    In the example: Commit the ingestion marker and event before acknowledgement.

  5. Data and states

    How does this principle apply in your project: closure requires complete evidence?

    In the example: Closure binds the source watermark and observation window.

  6. Overall architecture

    How does this principle apply in your project: correlation follows ingestion?

    In the example: The adapter persists; the worker correlates later.

  7. Critical flow

    How does this principle apply in your project: a fault at the boundary prevents premature closure?

    In the example: Check window evidence even after closure.

  8. Bottlenecks and trade-offs

    How does this principle apply in your project: delays arise at different stages?

    In the example: Measure backlog and inventory age separately.

  9. Operations and security

    How does this principle apply in your project: event gaps affect closure?

    In the example: Closure remains blocked until missing data arrives.

  10. Final design

    How does this principle apply in your project: validation includes fault recurrence?

    In the example: The end-to-end test includes a fault at the boundary and a sequence gap.