The load balancer spreads a shopper's requests across 10 service instances, and each next request may land on a different instance. That works only if the instances do not care who served the shopper before them. Interviewers ask "where does the session live?" as soon as a second instance appears on the diagram.
In this lesson
- What state is
- What breaks when state is in memory
- Where to move state
- Sticky sessions
- Common mistake
- Key points