← All comparisons
Open Instagram Feed →
Open URL Shortener →
Instagram Feed
vs
URL Shortener
Instagram Feed
Instagram Feed
Fan-out on write vs read, ranking, CDN.
Components (10)
Mobile Client
CDN
API Gateway
Feed Service
Post Service
Kafka
Fan-out Worker
Redis
Postgres
S3
Headline numbers
Posts / sec (avg)
~3,000/sec
Feed read QPS
~58,000/sec
Fan-out writes / sec
~600,000/sec
URL Shortener
URL Shortener
Hashing, key generation, read-heavy caching.
Components (6)
Client
API Gateway
Write Service
Read Service
Redis
Postgres
Headline numbers
Write QPS (avg)
~1,200/sec
Read QPS (avg)
~120,000/sec
Storage per year
~5 TB
Key differences
Only in Instagram Feed
CDN
Kafka
S3
In both
Client
Api Gateway
Service
Cache
Database
Only in URL Shortener
None.
Flow shape
Instagram Feed flows
Post a photo (fan-out on write)
7 steps
Open feed (precomputed timeline)
5 steps
⚠ Fan-out Worker is down
7 steps
⚠ Timeline cache flushed (Redis restart)
4 steps
URL Shortener flows
Shorten a URL
3 steps
Resolve short URL (cache hit)
3 steps
Resolve short URL (cache miss)
4 steps
⚠ Redis is down
4 steps