System Design

Designing a Scalable Pastebin Architecture

System Design diagram · made in Skemio

Architecture diagram of a scalable Pastebin showing client requests hitting a CDN and API, routing metadata to DynamoDB and raw text to S3.
Architecture diagram of a scalable Pastebin showing client requests hitting a CDN and API, routing metadata to DynamoDB and raw text to S3.

What it shows

  • Metadata stays in NoSQL for fast lookups, TTL indexing, and easy sharding.
  • Raw text payloads live in S3 or MinIO; object stores are 10x cheaper.
  • CDN caches hot pastes at the edge, absorbing 90%+ of read traffic.

The takeaway

Decouple high-velocity metadata queries from bulky raw text to slash storage costs.

More system design diagrams