InterviewLegend

Design a Photo Sharing Feed

Commonly asked
Alex Chen45 min readAdded 314 real interview reports

Instagram lets people post photos and see the photos of people they follow. Under the hood it has two halves. The write side takes a photo from a phone, stores it safely and makes copies in a few sizes. The read side builds each user's home feed from the accounts they follow and serves it in a fraction of a second, hundreds of thousands of times a second. At Rippling this prompt shows up in high-level design rounds at SDE-2 and senior level, under names like "photo upload service like Instagram", "Instagram feed generation service" or "social network feed". It has come up less often in recent loops than the news aggregator. When it does come up, the questions are consistent: fan-out, the celebrity problem, and the database behind each piece.

The Rippling angle
Ask which feed they mean before you draw anything. The news aggregator ranks shared stories; this one copies each post into many personal feeds. One SDE-2 candidate with an offer listed the probes: "DB, Tables, APIs, Caching, Sync/Async, Fan Out (push/pull ... celebrity problem)". Plan for a storage interrogation as much as a diagram.

RipplingPremium lesson · System design round

The Rippling design, worked end to end.

  1. The API and data modelSystem design
  2. The design, drawn out2 diagrams
  3. 5 deep divesWith the tradeoffs
Get the Rippling questions

$49 a year · all 107 companies · instant access

314 Rippling interview reports · guide updated

Rippling interview guide

Know what Rippling asks before you walk in.

30 coding · 5 system design · 28 behavioral questions

Get Premium$49 a year · Instant access
Or start freeNo card.

Get their questions first.

Had your Rippling interview?How we research

InterviewLegend is independent and not affiliated with or endorsed by any company it covers.