Mock Interviewer

Ask Coach

Ask Coach
Clarify requirements before you design — kept separate from your stage notes.

Tap a question to start, or type your own below.

Pastebin System Design

Visual Problem Diagram

Pastebin System Design architecture diagram

Scenario

A developer pastes a 2 MB log dump and shares the link on Slack—10,000 teammates open it in five minutes while new pastes arrive at 100/s. Reads dwarf writes 10:1, expired pastes must vanish on schedule, and public pastes need abuse controls—the interview is ID design, storage tiering, and read scaling, not syntax-highlighting trivia.

Design a Pastebin-like service where users upload text snippets and share them via short URLs. The workload is read-heavy—many views per create—and operations care about durable storage until expiration and fast reads for viral links.

You should support create/view/delete, configurable expiration, optional syntax highlighting, and public/private visibility. Be ready to explain ID generation, blob vs row storage, expiration cleanup, and how you serve 100M reads/day without hammering one database. Size limits and abuse controls are reasonable scope.

Constraints

Functional

Create paste (text, TTL, syntax type, privacy), view by ID, optional delete, expiration 10 min to never, public/private

Non-functional

< 100 ms p95 read, 99.9% availability, durable until expiry, max paste size enforced

Scale

10M pastes/day (~100 writes/s peak), 100M reads/day (~1K reads/s peak); ~100 GB/day storage; 10:1 read:write

Stages ahead

1Requirement Analysis
2API Design
3High-Level Design
4HLD Extensions
5Trade-offs

Log in to start practicing

Preview the problem below. Sign in to start your timed session, save progress, and use the AI coach.