A receipt is not the same as a result.
An HTTP response confirms part of a conversation. The business operation may still be waiting, incomplete or in need of reconciliation.
Discuss the architecture01The design question
Delivery and effect need separate records.
An event can be delivered twice. A destination can accept a job before processing it. A delayed update can arrive after a newer one. The contract has to explain which acknowledgment means received, which means applied, and where to check the final outcome.
Reference design. Reusable NAV infrastructure is under development.
02Key decisions
Make the boundary observable.
Validate the sender and the payload
Authentication, schema validation and authorization answer different questions. Keep each check at the boundary where it matters.
Recognize the same operation
Stable identifiers help consumers handle repeated delivery without creating repeated effects. The destination’s semantics determine what is safe.
Compare intended and actual state
A reconciliation job can identify operations that were accepted but never confirmed at the destination.
03In practice
APIs & Connectivity in practice
A shared contract
Define fields, versions, units, timestamps, errors, and ownership at each boundary. Reject unexpected inputs deliberately and avoid passing arbitrary metadata into operational records.
Delivery is a separate concern
Events may arrive twice or out of order. Consumers need stable identifiers, duplicate handling, and a rule for applying older updates. A scheduled reconciliation can find discrepancies that event delivery alone misses.
Operate the connection
Expose delivery status, failure reason, retry count, and the destination's acknowledgment. Give operators a way to inspect an event, resolve a discrepancy, and retry with the same stable identifier.
04Scope
Areas of work
- API contracts
- Webhooks
- Event validation
- Authentication
- Reconciliation
- Failure and retry visibility
05A common question
Why not retry every failed API call?
Because a missing response does not establish that an operation failed. Reads and writes need different recovery rules, especially when the destination may already have changed.