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.
- Load: 30,000 req/sec
- First to saturate: Auth
- Estimated cost: $487k/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
Lessons for this architecture
- How Route 53 works
- How CloudFront works
- How S3 works
- How AWS WAF works
- How Application Load Balancer works
- How EKS Cluster works
- How Cognito works
- How Amazon ElastiCache works
- How Amazon Aurora works
- How OpenSearch Service works
- How DynamoDB works
- How SQS works
- How AWS Lambda works