System Design · Case Studies · Topic 1 of 3
Web Services
4 questions.
Your progress0%
- 1st Visit
- 0/4
- 2nd Visit
- 0/4
- Revise
- 0/4
Overview
These case studies are compact, self-contained services that appear frequently in SDE-1 interviews because they can be designed end to end in one session. They exercise the fundamentals directly: generating unique identifiers, choosing a key-value store, caching read-heavy traffic, enforcing limits across many servers, and processing work asynchronously with retries. For each one, begin by agreeing on functional requirements and scale, define the API, estimate traffic and storage, and draw the high-level components before going deep on the most interesting part, such as key generation for a URL shortener or the counting algorithm for a rate limiter. Close by discussing bottlenecks and how the design would evolve.
Questions
| # | Problem | Platform | Difficulty | Open | 1st1st Visit | 2nd2nd Visit | RevRevise |
|---|---|---|---|---|---|---|---|
| 1 | Design a URL shortener | Concept | Medium | Read the answer to Design a URL shortener | |||
| 2 | Design a pastebin service | Concept | Medium | Read the answer to Design a pastebin service | |||
| 3 | Design a rate limiter | Concept | Medium | Read the answer to Design a rate limiter | |||
| 4 | Design a notification system | Concept | Hard | Read the answer to Design a notification system |