Skip to content

Commit 07e2f83

Browse files
committed
use mermaid
1 parent 614d8cf commit 07e2f83

1 file changed

Lines changed: 12 additions & 5 deletions

File tree

docs/guide/en/messages-and-handlers.md

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,18 @@ This separation is intentional and important. Understanding it will save you fro
1111

1212
A *producer* creates messages and pushes them onto the queue. A *consumer* (worker) pulls messages from the queue and invokes the matching handler.
1313

14-
```
15-
Producer side Consumer side
16-
────────────────────────────── ──────────────────────────────────
17-
new SendEmailMessage(…) →→→ Worker resolves handler → handles
18-
(payload only) (logic only)
14+
```mermaid
15+
flowchart LR
16+
subgraph Producer["Producer side"]
17+
Message["new SendEmailMessage(...)\n(payload only)"]
18+
end
19+
20+
subgraph Consumer["Consumer side"]
21+
Worker["Worker resolves handler"]
22+
Handler["Handler handles\n(logic only)"]
23+
end
24+
25+
Message --> Worker --> Handler
1926
```
2027

2128
The producer only needs to know the message type and its data. It does not need to know anything about how the message will be processed, or even in which application.

0 commit comments

Comments
 (0)