LeetDesign
← All problems
Easy

Design a Pastebin

Share snippets of text via a link. Modest traffic, forgiving latency, data that fits on one database — the problem that grades whether you can resist over-building.

Design a service where anyone can paste a block of text and get a link to share it.

Traffic is modest and spiky in the evenings, pastes are read far more than they are written, and most of them stop being read within days. Nothing here is exotic: the challenge is sizing. Every component you add and every instance you over-provision is money the design didn't need to spend — and the grade is normalized against a reference that spends very little.