Design Pastebin

Design a service where users paste text, get a shareable link, and others can view it.

Text sharing service · Easy

Functional requirements

  • Create a paste and get a link
  • View a paste by link
  • Pastes can expire

Scale & non-functional requirements

  • 10M pastes per day
  • Pastes up to 10 MB
  • High availability for reads

Hints

  • Where do large text blobs belong — database or object storage?
  • How do expired pastes get cleaned up?

More system design questions

Try AI Flowchart free →