Sequence diagram
Overviewβ
A sequence diagram shows how different processes interact with each other and in what order these interactions happen.
Codeβ
sequenceDiagram
Alice->>John: Hello John, how are you?
John-->>Alice: Great!
Alice-)John: See you later!
Exampleβ
Atlassian Use Casesβ
In Jira: Attach sequence diagrams to feature issues or bug reports to illustrate API call flows, authentication sequences, or service interactions.
In Confluence: Use sequence diagrams in technical design documents, API documentation, or architecture decision records (ADRs).
Example: User login flowβ
sequenceDiagram
User->>Frontend: Submit credentials
Frontend->>Auth Service: POST /login
Auth Service-->>Frontend: JWT token
Frontend-->>User: Redirect to dashboard
Full Syntax Referenceβ
For the complete Mermaid sequence diagram syntax, see the official Mermaid documentation.