SysPad › Examples › Photo sharing app
Photo sharing app
Instagram-style feed: media CDN, autoscaled API, Redis feed cache, social-graph DB, search, and async image processing.
Cache offload, read fan-out, and an async upload pipeline at 30k RPS.
- Throughput: 30,000 req/sec
- First to saturate: Auth
- Estimated cost: $196k/mo
How it works
- Feed Cache
- Absorbs ~92% of feed reads, so the social graph DB only ever sees the misses.
- Upload Queue
- Uploads return instantly; the heavy image work runs off this queue, clear of the response path.
Request flows
View feed
- DNS
- WAF
- Load Balancer
- Feed API
- Auth
- Feed Cache
- Social Graph DB
Search photos
- DNS
- WAF
- Load Balancer
- Feed API
- Search
- Media Index
Upload photo
- DNS
- WAF
- Load Balancer
- Feed API
- Upload Queue
- Image Processor
- Thumbnails
- Media Index