SpinTheMic
Pro

Interview practice question

Users logged out after scaling

System Design · Scalability · Beginner

After adding a second server behind a load balancer, users keep getting logged out randomly. Why, and how do you fix it?

What a strong answer covers

Your AI report card counts how many of these ideas you cover.

  • Sessions stored in one server's memory.
  • Next request hits the other server.
  • Quick fix: sticky sessions.
  • Proper fix: shared session store.
  • Or stateless tokens.
Practise this topic

Start without signing up. Sign in free to get an AI report card on your answer.

See all topics