Design a Hosted Notebook Platform
Design a cloud-based hosted notebook platform for interactive code execution. The system must support 500,000 concurrent users, each managing an isolated workspace.
Workspace Operations
Each user workspace must support the following lifecycle operations:
- Create a workspace
- Delete a workspace
- Suspend a workspace
- Resume a suspended workspace
Workspace Contents
A workspace includes the user's runtime environment and persisted notebook files.
Performance Constraint
The resume operation should complete in under 5 seconds for typical requests.
Discussion Points
Candidates should discuss the following aspects of their design:
- The high-level architecture
- Control plane and runtime execution design
- How workspace lifecycle management works
- Strategies to meet the resume latency requirement
- Scalability strategies for 500,000 concurrent users
- Major failure modes and how the system should handle them
AI interview prep
Core dilemma
Balancing the cost-efficiency of resource utilization (for 500,000 potentially idle stateful environments) with the strict 5-second latency requirement for resuming a suspended workspace.
3 tradeoffs and 3 stress tests locked
Interview prep
Unlock the interviewer X-Ray rubric, tradeoff matrix, stress tests, clarifying questions, and key concepts.
Design a Hosted Notebook Platform
Design a cloud-based hosted notebook platform for interactive code execution. The system must support 500,000 concurrent users, each managing an isolated workspace.
Workspace Operations
Each user workspace must support the following lifecycle operations:
- Create a workspace
- Delete a workspace
- Suspend a workspace
- Resume a suspended workspace
Workspace Contents
A workspace includes the user's runtime environment and persisted notebook files.
Performance Constraint
The resume operation should complete in under 5 seconds for typical requests.
Discussion Points
Candidates should discuss the following aspects of their design:
- The high-level architecture
- Control plane and runtime execution design
- How workspace lifecycle management works
- Strategies to meet the resume latency requirement
- Scalability strategies for 500,000 concurrent users
- Major failure modes and how the system should handle them