Email verification sequence diagram
After sign-up a verification mail goes out asynchronously, so the sign-up reply does not wait for it; the user then clicks the link.
The diagram
Reading it step by step
- 1. 'User' sends a request to 'Sign-up server': 'Sign up'.
- 2. 'Sign-up server' notifies 'Mail server': 'Queue verification mail'.
- 3. 'Sign-up server' replies to 'User': 'Check your inbox'.
- 4. 'Mail server' notifies 'User': 'Verification mail'.
- 5. 'User' sends a request to 'Sign-up server': 'Open link'.
- 6. 'Sign-up server' replies to 'User': 'Verified'.
Shape by shape
| Shape | Symbol | Connections |
|---|---|---|
| User | Actor | → Sign-up server(Sign up), Sign-up server(Open link) · ← Sign-up server, Mail server, Sign-up server |
| Sign-up server | Participant and lifeline | → Mail server(Queue verification mail), User(Check your inbox), User(Verified) · ← User, User |
| Mail server | Participant and lifeline | → User(Verification mail) · ← Sign-up server |
Symbols used here
| Symbol | Meaning |
|---|---|
| Participant and lifeline | A box on top and a dashed line below. |
| Actor | A human participant; a stick figure. |
| Synchronous message | A call that waits; solid line, filled head. |
| Reply | The answer; dashed line, open head. |
| Asynchronous message | Sent without waiting; solid line, open head. |
Diagram text
Paste this text into the editor to get the same picture, then change the names to fit your own work.
# Email verification sequence diagram
sequenceDiagram
actor U as User
participant S as Sign-up server
participant M as Mail server
U->>S: Sign up
S-)M: Queue verification mail
S-->>U: Check your inbox
M-)U: Verification mail
U->>S: Open link
S-->>U: Verified