Parallel checkout checks
Nested alternatives and parallel stock and payment calls.
Scope: Implemented Mermaid sequence syntax and illustrative playback. Calls are not executed.
Preview
Source
sequence-parallel-checkout.mmd
text/plain
sequenceDiagram
actor Buyer
participant Shop
participant Stock
participant Bank
Buyer->>Shop: Checkout
par Inventory
Shop->>Stock: Reserve
Stock-->>Shop: Available
and Payment
Shop->>Bank: Authorise
Bank-->>Shop: Accepted
end
alt ready
Shop-->>Buyer: Confirmed
else unavailable
Shop-->>Buyer: Retry later
end