The overall architecture
Which process creates L-17?
External notifications begin after the business transaction commits.
Starting point Follow the business transaction.
Assumptions for the example case
Illustrative design: 10,000 searches and 1,000 new requests per day, averaging five offers per request; a peak of 25 searches/s; and 20 concurrent award attempts against the same request. Payment, service delivery and warranty are outside the scope.
Runtime architecture
Runtime view · API, worker, data store, and external boundary
CustomerOrder, processing and status
Service marketplace
API processRequest management · Offer management · Award coordination
Relational datastoreRequest A-17 · Offers O-17/O-18 · Order L-17 · Command K-17
Worker processNotification outbox · Backlog check
Provision of servicesReceives L-17 after award; service delivery and billing are outside the scope
API and Worker share the professional stock. External effects begin only after a local commit.
API and worker modules
Boundaries
- API-Commit
- A-17, offers, L-17 and outbox change atomically.
- Worker-Commit
- Track delivery attempts and evidence of acceptance separately.
Terms in this step
- Outbox
- A stored follow-up job that can be delivered repeatedly after commit.
Try it yourself
Place the award and notification work relative to the commit.
A hint for your attempt
External delivery may fail.
Compare with a possible solution
- API
- Commits the award and outbox.
- Worker
- Retries delivery and records evidence.
Apply to your project
Draw the same boundary for a reservation confirmation.