File tree Expand file tree Collapse file tree 1 file changed +18
-0
lines changed
Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -32,6 +32,24 @@ In contrast, with Over-the-Wire:
3232
3333This shifts the responsibility for UI rendering back to the server, simplifying the frontend layer.
3434
35+ ## How does it differ from Single Page Applications (SPA)?
36+
37+ ``` mermaid
38+ flowchart TD
39+ subgraph SPA Approach
40+ A1(User Action) --> B1(Frontend requests Data via API)
41+ B1 --> C1(Server responds with JSON)
42+ C1 --> D1(Frontend renders UI dynamically)
43+ D1 --> E1(Display in Browser)
44+ end
45+
46+ subgraph Over-the-Wire Approach
47+ A2(User Action) --> B2(Frontend requests UI Fragment)
48+ B2 --> C2(Server responds with HTML fragment)
49+ C2 --> D2(Browser inserts HTML directly)
50+ end
51+
52+
3553## Benefits of Over-the-Wire for Business Applications
3654
3755- **Reduced Frontend Complexity**: No need for heavy JavaScript frameworks or complex build pipelines.
You can’t perform that action at this time.
0 commit comments