Skip to content
diagrams.mbt
DocsArticlesGalleryAPIGitHub

Gallery / sequence

Parallel checkout checks

Family: sequence. Status: Implemented.

Nested alternatives and parallel stock and payment calls.

Scope: Implemented Mermaid sequence syntax and illustrative playback. Calls are not executed.

Preview

Parallel checkout checks preview
Parallel checkout checks preview (dark)

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

Download source: sequence-parallel-checkout.mmd

Download SVG Download dark SVG Open offline player

diagrams.mbt · Diagramming for MoonBit.