2.10. UML Sequence Diagram

2.10.1. Connections

  • -> - Solid line without arrow

  • --> - Dotted line without arrow

  • ->> - Solid line with arrowhead

  • -->> - Dotted line with arrowhead

  • -x - Solid line with a cross at the end (async)

  • --x - Dotted line with a cross at the end (async)

2.10.2. Sync

../../_images/uml-sequencediagram-sync.png
@startuml

autonumber

actor User
participant Server
database Database

activate User
User -> Server: HTTP Request

activate Server
Server -> Database: SQL Query

activate Database
Database --> Server: SQL Result
deactivate Database

Server --> User: HTTP Response
deactivate Server

deactivate User

@enduml

2.10.3. Async

../../_images/uml-sequencediagram-async.png
@startuml

autonumber

actor User
participant Server

activate User

User -x Server: HTTP Request
activate Server
User -x Server: HTTP Request
Server --x User: HTTP Response

User -x Server: HTTP Request
Server --x User: HTTP Response
Server --x User: HTTP Response
deactivate Server

deactivate User

@enduml