Interview Bootcamp
Ask Author
Back to course home

0% completed

Vote For New Content
Aldemar Hernández
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
G
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.

S
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...