All interviews45:00
Pastebin
Store text snippets and serve them by ID. It looks like the URL shortener, but the payload is 20× bigger, so the real design question is where the bytes live: metadata in a database, content in an object store, hot pastes in a cache.
Notes and ratings save in this browser. Completing self-assessment records your progress.
Requirements checklist
Clarifying questions
- What are the typical and maximum paste sizes?
- Are pastes public, unlisted or private? Do IDs need to be unguessable?
- What expiry options exist, and is burn-after-read required?
- How long must pastes be kept if they never expire?
requirements
Suggested time: about 6 minutes. Also covers burn-after-read semantics, privacy of IDs and deletion.