HLD prep is optimised for larger screens
Open on a laptop or desktop (1024px+) for the diagram canvas and the section sidebar side-by-side.
Problem Understanding
Restate the problem in your own words.
Design Pastebin (Code-paste / Snippet sharing)
Design a Pastebin-class service: users paste text (or markdown / code), get a short shareable URL with optional expiry, and the recipient retrieves the paste with sub-200 ms latency. It’s effectively URL Shortener + a blob payload + content moderation. The hard parts are storage cost at billions of pastes (~10 KB average), abuse prevention (malware drops, scraping), and supporting both anonymous and authenticated flows without making spam trivial.
- Pastebin.comThe canonical service — anonymous text drops with optional expiry and syntax highlighting.
- GitHub GistAuthenticated pastes tied to a user; revisioned, embeddable, used as code snippets.
- JSFiddleLive-runnable HTML / CSS / JS pastes — raises the stakes on abuse + sandboxing.
- Carbon (carbon.now.sh)Image-rendering of code pastes; same shortener pattern, different rendering pipeline.
Your task: read the problem above, then write what the system is, who uses it, the rough scale, and the headline UX expectation — in your own words. Submit for AI review when you're ready.
Click any step in the sidebar to jump around — sections don't have to be done in order. Press ? any time to see all shortcuts.