Back to flowchart examples
Mapfable
Read-only flowchart
Use this example
Light
View
All flow
Before this step
After this step
Show route
From
Choose a step
To
Choose a step
Show route
Motion
Animate connections
Visual connection guide only. It does not run the system.
JavaScript is disabled. The complete diagram is visible below; interactive viewing requires JavaScript.
Order Processing Workflow
From checkout to delivery: verify the payment, commit once, and fulfill through a durable outbox.
{"title":"Order Processing Workflow","description":"From checkout to delivery: verify the payment, commit once, and fulfill through a durable outbox.","graph":{"direction":"LR","nodes":[{"id":"checkout","type":"io","label":"Checkout","description":"The customer reviews the basket and submits an order request with a stable checkout key. No payment result is trusted from the browser.","group":"","basis":"unknown","category":"frontend","groupId":"commerce","position":{"x":80,"y":180},"sources":[{"repository":"","path":"","revision":"","note":"Authored reference design for explaining system behavior. It describes a possible implementation, not production telemetry or an observed incident."}]},{"id":"order_api","type":"process","label":"Create order","description":"Resolve the stable checkout key and create or return the same pending order. Server-side prices and inventory rules determine the order total.","group":"","basis":"unknown","category":"backend","groupId":"commerce","position":{"x":420,"y":180},"sources":[]},{"id":"order_ledger","type":"datastore","label":"Order ledger","description":"Persist the pending order before opening a hosted payment session. The stored order ID links the later payment event to this record.","group":"","basis":"unknown","category":"database","groupId":"commerce","position":{"x":420,"y":500},"sources":[]},{"id":"customer_update","type":"terminal","label":"Order confirmed","description":"The customer sees the current durable order status. The worker may also send a confirmation; a delayed notification does not undo an accepted order.","group":"","basis":"unknown","category":"frontend","groupId":"commerce","position":{"x":80,"y":780},"sources":[]},{"id":"hosted_payment","type":"process","label":"Hosted payment","description":"The payment provider handles card entry and payment authorization. A browser redirect is presentation only; the signed provider event is the payment signal.","group":"","basis":"unknown","category":"external","groupId":"payments","position":{"x":800,"y":180},"sources":[]},{"id":"verify_event","type":"process","label":"Verify webhook","description":"Check the signature against the exact request body, validate the event type and amount, and resolve the stored order. Invalid messages stop here with an appropriate error response.","group":"","basis":"unknown","category":"backend","groupId":"payments","position":{"x":800,"y":500},"sources":[]},{"id":"seen_event","type":"decision","label":"Event already seen?","description":"Look up the provider event ID. This read is only an optimization: the subsequent transaction enforces a unique event ID so simultaneous deliveries cannot duplicate the order transition.","group":"","basis":"unknown","category":"backend","groupId":"payments","position":{"x":1160,"y":458},"sources":[]},{"id":"acknowledge","type":"terminal","label":"Acknowledge","description":"Return a successful HTTP response after an existing event is recognized or after the new order transaction commits. Do not wait for fulfillment to finish.","group":"","basis":"unknown","category":"backend","groupId":"payments","position":{"x":1160,"y":790},"sources":[]},{"id":"commit_order","type":"process","label":"Commit paid order","description":"Atomically insert the unique event receipt, transition the order to paid, and insert its outbox message. If another delivery already won, acknowledge that existing result.","group":"","basis":"unknown","category":"backend","groupId":"delivery","position":{"x":1580,"y":180},"sources":[]},{"id":"outbox","type":"datastore","label":"Order outbox","description":"Durable work created in the same transaction as the paid order. The worker claims an item, records attempts and retains it until processing succeeds.","group":"","basis":"unknown","category":"database","groupId":"delivery","position":{"x":1580,"y":500},"sources":[]},{"id":"worker","type":"process","label":"Fulfill order","description":"Process the outbox item using the order ID as an idempotency key. Retry transient failures; record completed fulfillment before sending the customer update.","group":"","basis":"unknown","category":"backend","groupId":"delivery","position":{"x":1580,"y":790},"sources":[]}],"edges":[{"id":"checkout_request","source":"checkout","target":"order_api","label":"Order request","description":"","basis":"unknown","sourceHandle":"right","targetHandle":"left","sources":[]},{"id":"persist_pending","source":"order_api","target":"order_ledger","label":"Pending","description":"","basis":"unknown","sourceHandle":"bottom","targetHandle":"top","sources":[]},{"id":"open_checkout","source":"order_ledger","target":"hosted_payment","label":"Open checkout","description":"","basis":"unknown","sourceHandle":"right","targetHandle":"left","sources":[]},{"id":"payment_event","source":"hosted_payment","target":"verify_event","label":"Signed event","description":"","basis":"unknown","sourceHandle":"bottom","targetHandle":"top","sources":[]},{"id":"verified_event","source":"verify_event","target":"seen_event","label":"Valid event","description":"","basis":"unknown","sourceHandle":"right","targetHandle":"left","sources":[]},{"id":"known_event","source":"seen_event","target":"acknowledge","label":"Yes","description":"","basis":"unknown","sourceHandle":"bottom","targetHandle":"top","sources":[]},{"id":"new_event","source":"seen_event","target":"commit_order","label":"No","description":"","basis":"unknown","sourceHandle":"right","targetHandle":"left","sources":[]},{"id":"durable_outbox","source":"commit_order","target":"outbox","label":"Same transaction","description":"","basis":"unknown","sourceHandle":"bottom","targetHandle":"top","sources":[]},{"id":"ack_commit","source":"outbox","target":"acknowledge","label":"Committed","description":"","basis":"unknown","sourceHandle":"left","targetHandle":"right","sources":[]},{"id":"claim_work","source":"outbox","target":"worker","label":"Claim job","description":"","basis":"unknown","sourceHandle":"bottom","targetHandle":"top","sources":[]},{"id":"retry_work","source":"worker","target":"outbox","label":"Retry","description":"A failed delivery attempt is retained and retried with backoff; the worker does not create a second paid order.","basis":"unknown","sourceHandle":"right","targetHandle":"right","sources":[]},{"id":"notify_customer","source":"worker","target":"customer_update","label":"Customer update","description":"","basis":"unknown","sourceHandle":"bottom","targetHandle":"bottom","sources":[]}],"groups":[{"id":"commerce","label":"Commerce","description":"The customer journey and durable pending order."},{"id":"payments","label":"Payment boundary","description":"Treat signed payment events as untrusted input until verified; acknowledge duplicate delivery without repeating work."},{"id":"delivery","label":"Order delivery","description":"Record the paid state and an outbox message together, then fulfill idempotently."}]},"investigation":null}
MAPFABLE · FLOWCHART
Order Processing Workflow
From checkout to delivery: verify the payment, commit once, and fulfill through a durable outbox.
Frontend
Backend service
Database & storage
External service
Commerce
Commerce
4 steps
Payment boundary
Payment boundary
4 steps
Order delivery
Order delivery
3 steps
Order request
Pending
Open checkout
Signed event
Valid event
Yes
No
Same transaction
Committed
Claim job
Retry
Customer update
Checkout
Frontend
Checkout
Create order
Backend service
Create order
Order ledger
Database & storage
Order ledger
Order confirmed
Frontend
Order confirmed
Hosted payment
External service
Hosted payment
Verify webhook
Backend service
Verify webhook
Event already seen?
Backend service
Event already
seen?
Acknowledge
Backend service
Acknowledge
Commit paid order
Backend service
Commit paid order
Order outbox
Database & storage
Order outbox
Fulfill order
Backend service
Fulfill order
Order request
Pending
Open checkout
Signed event
Valid event
Yes
No
Same transaction
Committed
Claim job
Retry
Customer update
Read-only snapshot · Status reflects the included evidence, not live monitoring.
−
+
Fit whole diagram
All flow