Design upload, transcoding to multiple sizes, CDN-backed delivery, and social features like feeds and comments. Image processing should be asynchronous.
Functional requirements
- Upload photos and generate thumbnails and variants
- Serve feeds of followed users
- Comments, likes, and tagging
- Report and moderate abusive content
Non-functional requirements
- Cost-efficient storage and bandwidth
- Fast global image delivery
- Scalable fan-out for new posts