SysPad › Examples › Multi-region social platform
Multi-region social platform
Active-active photo/social platform across two regions: geo-routed edge, full regional stacks, cross-region graph replication, and global tables for media index, sessions, recommendations, and moderation.
Production-scale multi-region design where both regions’ feed reads and uploads contend on shared GLOBAL resources - the bottleneck only emerges superposed.
- Throughput: 200,000 req/sec
- First to saturate: Global CDN
- Estimated cost: $2,156k/mo
How it works
- Media Index
- DynamoDB global table. Both regions read and write it, so uploads worldwide contend here.
- Session Store
- Global session store. Every feed read in both regions hits it, so the two regions stack here.
- Moderation Model
- Shared moderation model. Upload pipelines from both regions queue into it.
- US Social Graph
- Primary writer for the social graph; replicates cross-region to the EU replica.
- EU Social Graph
- Cross-region read replica of the US primary; serves EU reads locally.
Request flows
US feed read
- Global DNS
- Edge WAF
- US Load Balancer
- US Feed API
- Session Store
- US Timeline Store
- US Feed Cache
- US Social Graph
EU feed read
- Global DNS
- Edge WAF
- EU Load Balancer
- EU Feed API
- Session Store
- EU Timeline Store
- EU Feed Cache
- EU Social Graph
US upload
- Global DNS
- Edge WAF
- US Load Balancer
- US Feed API
- US Upload Queue
- US Image Processor
- US Thumbnails
- Media Index
- US Moderation Queue
- Moderation Model
EU upload
- Global DNS
- Edge WAF
- EU Load Balancer
- EU Feed API
- EU Upload Queue
- EU Image Processor
- EU Thumbnails
- Media Index
- EU Moderation Queue
- Moderation Model
US new post fan-out
- Global DNS
- Edge WAF
- US Load Balancer
- US Feed API
- US Feed Fan-out
- US Timeline Store
- US Notify Queue
- Push Notifications
US search
- Global DNS
- Edge WAF
- US Load Balancer
- US Feed API
- US Search
- Media Index