Loading…
While this loads — quick one
Every subscriber must get each event. A queue, or pub/sub?
Loading…
While this loads — quick one
Every subscriber must get each event. A queue, or pub/sub?
Loading the question…
While this loads — quick one
Every subscriber must get each event. A queue, or pub/sub?
System design interview question
Pastebin, GitHub Gist, any “share this text” tool: “design Pastebin” is a close cousin of the URL shortener with two twists. The content can be large, and one link must never let anyone find other people's pastes. It tests identifiers, storage tiers and read-heavy traffic. Here is how to walk into it, and then how to practise it until the answer is yours.
Practise Pastebin
Free with an account.
A team is building a paste-sharing tool. A user submits a block of text — anything from a few lines to a large log file of several megabytes — and gets back a link that others can open to read it, unchanged. Each paste needs its own identifier that cannot be guessed or stepped through in sequence, so one paste's link never reveals another's. Pastes are written once and never edited, are read far more often than they are written, and most traffic lands on a small number of popular pastes. Storing many large text blobs cheaply matters, and the tool should stay fast when a paste goes viral.
Every phrase that matters in the brief is a requirement in disguise. Spot them before you draw a single box.
“cannot be guessed or stepped through in sequence”
An identifier that cannot be guessed or enumerated in order.
“Storing many large text blobs cheaply matters”
Object storage for large, write-once blobs.
“stay fast when a paste goes viral”
An in-memory cache for the hottest pastes.
The same design always gets the same score, with the reason behind every requirement — then defend it against the trade-offs above.
The answers are not on this page on purpose. Build the design, and these are asked — and marked — once it is submitted.
© 2026 PlayCloudLabs. All rights reserved. Not affiliated with Amazon Web Services.