Stateless services
Lesson 6 of 40 · Sys.Micro
Why servers should forget you between requests, and where your session goes instead.
Check yourself
SAFE TO DEPLOY?
Ana logs in, clicks to her cart, and suddenly she is asked to log in again. It happens at random. Nothing is crashing.
Why in-memory sessions break behind a balancer
Moving state to a shared store or a token
Check yourself
Users get logged out at random after you add a second server. What is the root cause?
Do it in the browser: a real system design tool, a short mission and instant feedback. No install.
Start this lesson — free