File tree Expand file tree Collapse file tree 3 files changed +31
-14
lines changed
microservices-client-side-ui-composition Expand file tree Collapse file tree 3 files changed +31
-14
lines changed Original file line number Diff line number Diff line change 1-
21# Client-Side UI Composition Pattern: Assembling Modular UIs in Microservices Architecture
32
43### ** shortTitle** : Client-Side UI Composition
Original file line number Diff line number Diff line change 1+ @startuml client_side_ui_composition_updated
2+ skinparam classAttributeIconSize 0
3+
4+ class ApiGateway {
5+ + registerRoute(path: String, component: FrontendComponent)
6+ + handleRequest(path: String, params: Map<String, String>): String
7+ }
8+
9+ class FrontendComponent {
10+ + fetchData(params: Map<String, String>): String
11+ # getData(params: Map<String, String>): String
12+ }
13+
14+ class ProductFrontend {
15+ + getData(params: Map<String, String>): String
16+ }
17+
18+ class CartFrontend {
19+ + getData(params: Map<String, String>): String
20+ }
21+
22+ class ClientSideIntegrator {
23+ + composeUI(path: String, params: Map<String, String>)
24+ }
25+
26+ ApiGateway --> FrontendComponent
27+ FrontendComponent <|-- ProductFrontend
28+ FrontendComponent <|-- CartFrontend
29+ ClientSideIntegrator --> ApiGateway
30+
31+ @enduml
Original file line number Diff line number Diff line change 4444 <artifactId >junit-jupiter-engine</artifactId >
4545 <scope >test</scope >
4646 </dependency >
47- <!-- https://mvnrepository.com/artifact/org.projectlombok/lombok -->
48- <dependency >
49- <groupId >org.projectlombok</groupId >
50- <artifactId >lombok</artifactId >
51- <version >1.18.34</version >
52- <scope >provided</scope >
53- </dependency >
5447
5548 </dependencies >
5649
57- <properties >
58- <maven .compiler.source>23</maven .compiler.source>
59- <maven .compiler.target>23</maven .compiler.target>
60- <project .build.sourceEncoding>UTF-8</project .build.sourceEncoding>
61- </properties >
62-
6350</project >
You can’t perform that action at this time.
0 commit comments