Instagram: The Celebrity Post
Hard · system design problem
A celebrity posts a photo: one image takes 70% of image traffic, and the post’s reads and likes all land on one Cassandra partition — likes cannot be cached.
Images are served by a Varnish pool (4 nodes) in front of S3. The app’s post API reads posts and records likes in Cassandra (8 nodes, partitioned by post). At T+20s a celebrity posts: image requests ×2 with 70% of them for the one photo, app traffic ×2 with half of it on that post — reading it and liking it (half of app requests are likes). Like counts may lag by up to a minute.
Topics
More
Codelays runs in your browser: turn on JavaScript to use it.