AlgoViz

Design a news feed like Facebook's

hard 50 min

Show each person the best recent posts from everyone they follow, in a fifth of a second.

Mock interview

Answer against the clock, then score yourself.

0:00 of 45:00

Design a news feed like Facebook's. You have 45 minutes. Start the clock, answer each step out loud, write the key points, then score yourself.

Step 1 of 7 · 5 min

Scope

Interviewer

Design a news feed. Where do you start?

Cheat sheet (open after you finish)

Interview cheat sheet

  • 2B daily users, 231K reads/s, 4,630 posts/s; peak 694K and 13,900.
  • Push 2.3M/s against pull 116M/s: fifty times.
  • Ready feed: 500 IDs, 10 KB, 25 TB, warm users only.
  • Over 10,000 followers: pull; all big accounts are 2 GB.
  • Hydration: 4.6M posts/s; post cache at 99%.
  • Rank in passes: 500, 100, 20. Limit 60 ms, then newest first.
  • Permission at read, every time.