0% completed
Why is it stated that maintaining active connections state, session state is maintained ?
Aldemar Hernández
Mar 4, 2025
Why one of the use cases for least connections algorithm is stateful applications if information that must be maintained is active connections to each server and not session state.
0
0
Comments
gabbygabbylexy 10 months ago
I think state is still being maintained by keeping track of the number of active connections per server. That information needs to be stored somewhere and updated regularly.
shivangkumarjha 2 months ago
I think it is more to the fact that a stateful application tends to keep the connection open for longer durations.
One Client = One long lived connection.
Eg - Websockets, Long polling etc
If the connection is long and we consider no of open connections as a metric...
On this page
- Round Robin
Use Cases
- Least Connections
Use Cases
Comparison to Round Robin
- Weighted Round Robin
Pros
Cons
Use Cases
- Weighted Least Connections
Pros
Cons
Use Cases
- IP Hash
Example
Pros
Cons
Use Cases
- Least Response Time
How Least Response Time Load Balancing Works
Pros
Cons
Use Cases
- Random
Pros
Cons
Use Cases
- Least Bandwidth
Pros
Cons
Use Cases
- Custom Load
How Custom Load Load Balancing Works
Pros
Cons
Use Cases