Grokking System Design Fundamentals
Ask Author
Back to course home

0% completed

Vote For New Content
Could you provide some more examples where we would need a stateful load balancer?

dlamdang98

Dec 5, 2024

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?

0

0

Comments
Comments
Tu Huy Nguyen
Tu Huy Nguyen8 months ago

I think this may be due to geography latency issues (services in different regions require a session ID, leading to additional queries) with cost optimization constraints (you are not allowed to have more DB/cache instances). Or simply you are integrating with some othe...

On this page

Stateless Load Balancing

Stateful Load Balancing