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
The alarm adapter persists the event and ingestion marker before responding; replay reads the same result.
Proposed domain contracts
- POST
/alarmeDurably 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.
- POST
/tickets/T-46/abschluesseConfirm 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.
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?