Skip to content

Commit 8e723a5

Browse files
authored
Update over_the_wire.md
1 parent 89562f3 commit 8e723a5

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

docs/advanced/technical/over_the_wire.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,24 @@ In contrast, with Over-the-Wire:
3232

3333
This 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.

0 commit comments

Comments
 (0)