InterviewLegend

Design a Social Media Feed

Signature problem
Alex Chen45 min readAdded 392 real interview reports

A social media feed is the home page of an app like Twitter or Instagram. It's a list of recent posts from the people you follow, and in this version it also carries a set of global posts that everyone sees. Users write posts, follow each other, and like and comment on what they read. Goldman Sachs candidates report this prompt in design rounds at every level from Analyst to VP. The stated scale is small next to the real Twitter. A million users and a couple of million posts a month fit in one well-run Postgres database. So the grading weight sits elsewhere. It goes to the entities and their fields, how the feed is modeled in the database and why you picked that database. Fan-out comes once the interviewer pushes the numbers up.

The Goldman Sachs angle
At Goldman this prompt can run as low-level design, high-level design or both in one hour. Some panels start with classes for users, tweets and follows, then switch halfway to "how do you notify millions of users at once?". The switch can come without warning, so this lesson follows the mixed order.

Goldman SachsPremium lesson · System design round

The Goldman Sachs design, worked end to end.

  1. The API and data modelSystem design · Signature problem
  2. The design, drawn out3 diagrams
  3. 5 deep divesWith the tradeoffs
Get the Goldman Sachs questions

$49 a year · all 107 companies · instant access

392 Goldman Sachs interview reports · guide updated

Goldman Sachs interview guide

Know what Goldman Sachs asks before you walk in.

22 coding · 7 system design · 22 behavioral questions

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

Get their questions first.

Had your Goldman Sachs interview?How we research

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