File tree Expand file tree Collapse file tree 1 file changed +9
-13
lines changed
Expand file tree Collapse file tree 1 file changed +9
-13
lines changed Original file line number Diff line number Diff line change @@ -10,20 +10,16 @@ Otávio Santana
1010[source, mermaid]
1111----
1212sequenceDiagram
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
2925This diagram illustrates a typical hybrid architecture:
You can’t perform that action at this time.
0 commit comments