Interview Bootcamp

0% completed

Stateless vs. Stateful Load Balancing

Stateless and stateful load balancing represent two distinct methods for distributing traffic among multiple servers or resources.

Stateless Load Balancing

Stateless load balancers operate without maintaining any information about the clients' session or connection state. They make routing decisions based solely on the incoming request data, such as the client's IP address, request URL, or other headers

.....

.....

.....

Like the course? Get enrolled and start learning!
K

karangoyanka

· 2 years ago

In case of stateful server, what happens when a client is trying to connect to a server with which it has a session but server is down due to some reason(may be restarting/failure)?

Show 2 replies
T

Tee Sal

· 2 years ago

Are Load Balancers which use algorithms such as Least Connections, Weighted Least Connections, Least Response Time,...etc considered stateless or stateful?

Sid D

Sid D

· a year ago

Most modern applications expect you to be logged into an application. This can be considered as maintaining a state.

Only the Least Active Sessions algorithm was considered to maintain session state. So does this mean that most web applications use LAS algorithm for LB?

But LAS doesn't consider load, capacity or performance. Are there any strategies that consider performance while also maintaining session state?

D

dlamdang98

· 2 years ago

The example's I've seen so far include user sessions, shopping carts and banking. But wouldn't these pieces of information be stored in a cache or a DB and accessed using a identifier/token? (i.e. the application would maintain state)

Why would we want a load balancer to maintain the state instead of the app?

Show 1 reply
Madhavan Murugan

Madhavan Murugan

· 5 months ago

What is stateful and stateless? Explain with example