System Design Atlas

Telecommunications incidents and service restoration

04 / 10Worked example

Interfaces

Acknowledgement follows durable ingestion. Which conditions ensure the outcome?

A crash before persistence would lose acknowledged alarms.

Starting point Test alarm storms and evenly distributed load separately.

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.

Durable ingestion before acknowledgement

Durable ingestion before acknowledgement

Network monitoringsourceId + eventId
Netzüberwachung → AlarmadapterA-46
Alarm adapterAuthenticated input
Alarmadapter → AlarmprotokollCommit the record
Alarm logImmutable event record
Alarmprotokoll → NetzüberwachungAcknowledgement or identical replay

The alarm adapter persists the event and ingestion marker before responding; replay reads the same result.

Source → adapter → commit → acknowledgement; distinguish identical replay from changed content.

Proposed domain contracts

  1. POST/alarme

    Durably ingest an alarm.

    Input
    source, eventId=A-46, node=N-46, sourceSequence, observedAt, kind=fault|healthy
    Result
    Durably accepted or content conflict.
    Retry behaviour
    The same ID and content take effect once; different content conflicts; acknowledge after commit.
  2. POST/tickets/T-46/abschluesse

    Confirm stable restoration.

    Input
    commandKey, expectedVersion, observationWatermark, healthySince, reviewer
    Result
    Closed or not yet stable.
    Retry behaviour
    An identical closure takes effect once; reject an outdated watermark.

Acknowledge only after durable ingestion.

Acknowledge only after durable ingestion.

Commit the ingestion marker and event before acknowledgement.

A crash before persistence would lose acknowledged alarms.

No acknowledgement is sent; the source may retry. Replay finds the event and takes effect once; changed content conflicts.

Alternative considered
An early acknowledgement makes the source unlikely to retry.
Trade-off
Acknowledgement waits for persistence.
Reassess
Other sources require an explicit retry contract.

Try it yourself

Compare crash before and after commit.

A hint for your attempt

A crash before persistence would lose acknowledged alarms.

Compare with a possible solution
Before commit
No acknowledgement is sent; the source may retry.
After commit
Replay finds the event and takes effect once; changed content conflicts.

Apply to your project

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

Step 5: Closure requires complete evidence. Which conditions ensure the outcome?