@@ -8,13 +8,6 @@ Otávio Santana
88
99== C4Context – REST Payment Integration
1010
11- [source, mermaid]
12- ----
13-
14- ----
15-
16- == C4Container – REST Payment Integration
17-
1811[source, mermaid]
1912----
2013C4Context
@@ -36,7 +29,30 @@ Rel(backend, stock_service, "gRPC checkAvailability", "gRPC/protobuf")
3629Rel(stock_service, stock_db, "Reads/Writes stock data", "JDBC/SQL")
3730
3831UpdateLayoutConfig($c4ShapeInRow="2", $c4BoundaryInRow="1")
32+ ----
33+
34+ == C4Container – REST Payment Integration
35+
36+ [source, mermaid]
37+ ----
38+ C4Container
39+ title Container Diagram – Java Backend ↔ Stock Service (gRPC)
40+
41+ Person(customer, "🧑 Customer", "End user placing orders via web or mobile")
42+
43+ Container_Boundary(app, "Company Backend System") {
44+ Container(client_app, "Client App", "React / Web", "Interface for placing orders")
45+ Container(backend, "Java Backend", "Java + Spring Boot", "Handles business logic and gRPC calls")
46+ Container(stock_service, "Stock Service", "Java + gRPC", "Processes stock availability checks and updates")
47+ ContainerDb(inventory_db, "Inventory DB", "PostgreSQL", "Stores product stock levels")
48+ }
49+
50+ Rel(customer, client_app, "Uses", "HTTPS")
51+ Rel(client_app, backend, "Places order", "HTTPS/JSON")
52+ Rel(backend, stock_service, "checkAvailability()", "gRPC")
53+ Rel(stock_service, inventory_db, "Reads/Writes", "JDBC/SQL")
3954
55+ UpdateLayoutConfig($c4ShapeInRow="3", $c4BoundaryInRow="1")
4056----
4157
4258== Sequence Diagram: Inventory Check via gRPC
0 commit comments