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
A stateless load balancer keeps no record of which server each client used before. It makes each routing decision based only on the incoming request data, such as the URL or the headers, together with the current load on each server. Because it has nothing to remember, it can send each request to whichever server is best placed to take it, and the load spreads evenly.
Example: Consider a product search page
.....
.....
.....
Challa Sriniketh
· a month ago
Why do we need a stateful or sticky load balancer when we can store user session data in a shared storage like Redis, accessible by all application servers?
Madhavan Murugan
· 9 months ago
What is stateful and stateless? Explain with example
Sid D
· 2 years 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?
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?
Tee Sal
· 3 years ago
Are Load Balancers which use algorithms such as Least Connections, Weighted Least Connections, Least Response Time,...etc considered stateless or stateful?
karangoyanka
· 3 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)?
Reading Progress
0%