Skip to content

Commit e66f10b

Browse files
committed
docs: update documentation to sequence diagram
Signed-off-by: Otavio Santana <otaviopolianasantana@gmail.com>
1 parent c685a32 commit e66f10b

File tree

1 file changed

+9
-13
lines changed

1 file changed

+9
-13
lines changed

intro.adoc

Lines changed: 9 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -10,20 +10,16 @@ Otávio Santana
1010
[source, mermaid]
1111
----
1212
sequenceDiagram
13-
participant 👤 Client
14-
participant 🌐 API Gateway
15-
participant 📦 User Service
16-
participant 🧠 Auth Service
17-
participant 🗃️ Database
13+
participant 🟦 App A
14+
participant 🟧 App B
15+
participant 🗄️ DB B
16+
participant 🗃️ DB A
1817
19-
👤 Client->>🌐 API Gateway: REST Request (GET /users/123)
20-
🌐 API Gateway->>🧠 Auth Service: gRPC ValidateToken(token)
21-
🧠 Auth Service-->>🌐 API Gateway: OK
22-
🌐 API Gateway->>📦 User Service: REST GET /users/123
23-
📦 User Service->>🗃️ Database: SQL Query (user by ID)
24-
🗃️ Database-->>📦 User Service: Result
25-
📦 User Service-->>🌐 API Gateway: JSON user data
26-
🌐 API Gateway-->>👤 Client: 200 OK + user JSON
18+
🟦 App A->>🟧 App B: Request info (e.g., user ID)
19+
🟧 App B->>🗄️ DB B: SELECT user info
20+
🗄️ DB B-->>🟧 App B: user data
21+
🟧 App B-->>🟦 App A: user data
22+
🟦 App A->>🗃️ DB A: INSERT user data
2723
----
2824

2925
This diagram illustrates a typical hybrid architecture:

0 commit comments

Comments
 (0)