You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Added LB structure in the input for the simulation + tests
* introduced LB runtime + documentation
* Added test for LB and small refactor to define the SimRunner
Copy file name to clipboardExpand all lines: docs/fastsim-docs/runtime_and_resources.md
+91-1Lines changed: 91 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -358,4 +358,94 @@ The client pulls requests from its `client_box`. It then makes a critical decisi
358
358
359
359
**Design Note & Real-World Analogy:**
360
360
The current logic for this decision—`if state.history[-2].component_type != SystemNodes.GENERATOR`—is **fragile**. While it works, it's not robust. A future improvement would be to add a more explicit routing mechanism.
361
-
In the real world, the `ClientRuntime` could be a user's **web browser**, a **mobile application**, or even a **Backend-For-Frontend (BFF)** service that both initiates requests and receives the final aggregated responses.
361
+
In the real world, the `ClientRuntime` could be a user's **web browser**, a **mobile application**, or even a **Backend-For-Frontend (BFF)** service that both initiates requests and receives the final aggregated responses.
362
+
363
+
## **5.5 `LoadBalancerRuntime` — The Traffic Cop 🚦**
364
+
365
+
The **Load Balancer** actor lives in `app/runtime/actors/load_balancer_runtime.py`.
366
+
It receives a `RequestState` from the client side, decides **which outbound
367
+
edge** should carry it to a server, and immediately forwards the request.
0 commit comments