21
You need session data available across many servers. What options would you consider?
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 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.