A walkthrough of designing a PasteBin-like system, building on a prior TinyURL design. Covers functional requirements, capacity estimates (600M pastes/month, 100KB average size), and why large text blobs should not be stored in relational databases. Explains using S3 as an object store with pre-signed URLs for direct client uploads, a CDN (CloudFront) for caching popular pastes, and strategies for cleaning up orphaned and expired S3 objects using lifecycle policies or lexicographically named objects sorted by expiration timestamp.

19m watch time
1 Impression