Skip to content

Commit c321a13

Browse files
authored
Add mermaid for clarity (#6)
1 parent 7184291 commit c321a13

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

README.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,31 @@
22

33
Strongly typed background tasks with FastAPI and Google CloudTasks.
44

5+
```mermaid
6+
sequenceDiagram
7+
autonumber
8+
actor User
9+
participant Service
10+
participant CloudTasks
11+
participant Worker
12+
13+
14+
User ->>+ Service: /trigger
15+
16+
17+
rect rgb(100,130,180)
18+
note right of Service: hello.delay()
19+
Service -->>+ CloudTasks: Create task
20+
CloudTasks -->>- Service: Accepted
21+
end
22+
23+
Service ->>- User: Hello task triggered
24+
note right of CloudTasks: Async
25+
CloudTasks -->>+ Worker: /hello
26+
Worker -->>- CloudTasks: 200
27+
28+
```
29+
530
## Installation
631

732
```

0 commit comments

Comments
 (0)