Cascadiq

Distributed Session Store

project · Level 3 · 45 min

Description

Design a session store that could work across multiple app servers. Sessions: create, get, extend, delete. Discuss consistency and failure modes.

Requirements

  • create(userId) -> sessionId
  • get(sessionId) -> session or null
  • extend(sessionId), delete(sessionId)
  • Describe how you would implement with Redis or similar

Constraints

Pseudocode or in-memory with a clear abstraction for the backend.

Deliverables

Interface, in-memory impl, and a short doc on distributed design.

Tags

System DesignSessionsBackend