Docker and CI/CD · Senior · Question 68 of 75
What must change to scale a web app that keeps sessions in process memory?
- 1Run a single replica with many CPU cores instead
- 2Give each replica much more memory for sessions
- ✓Correct answer: Move sessions to a shared store or use stateless tokens
Explanation
Without shared state, users are logged out when they hit another replica or a pod restarts. Sticky sessions only hide the problem.