~learn.
lecture · 14:10 · 4 checkpoints · browser voice

Instagram: twenty posts out of thousands, in half a second

How a feed and stories tray for 3 billion monthly users stays fast: media stored once and served from caches, small time-sortable IDs fanned out on write for most accounts and pulled for the huge ones, ranking as a funnel of filters and models, and stories that leave the tray when an index entry expires.

01 · Meera on the bus
SQ-21 · Instagram Feed and Stories

340 new posts. Two minutes. Twenty seen.

600 accounts followed

9 pm in Bengaluru.