Design Pastebin

easy
storage
databases
object-storage

Problem brief

A user submits a text snippet and receives a stable link. The design must keep successful writes readable, reject unauthorized or expired reads, and handle retries and popular pastes without confusing caching with durability.

Practice workspace

Guided practice or a locally saved 45-minute mock.

Step 1 of 7

Requirements

Define successful creation, visibility, expiry, size limits and what is out of scope.

Reference solution hidden

Try answering in the workspace above first. Reveal the full worked solution — data model, architecture, and trade-offs — whenever you want to compare.

Open the full solution page →