21
A system needs to keep session data available across multiple servers. What options do you see?
Tap to write answer
0 words | 0 charsPress Enter ↵ to reveal
Your Attempt
0 wordsRefined Model Answer
ReferenceI would first ask how long the sessions need to live and whether they must survive server restarts. One option is to keep the session state in a shared store such as a distributed cache or database. Another option is to use stateless tokens if the session data is small enough and does not need server-side invalidation every time. The reason I would compare both is that they solve different trade-offs between simplicity, revocation, and scalability. I would also mention token rotation, expiration, and what happens if the shared store becomes unavailable.