HardDesign: News Feed (Facebook/Twitter)

What technique avoids the N+1 query problem when hydrating a list of 50 post IDs from cache?

Tests your understanding of this concept.

Answer Options

AFetch posts one by one in a loop
BBatch fetch: single query/mget with all post IDs
CCache the entire hydrated feed
DUse GraphQL subscriptions

Want to see the correct answer?

Get the answer with a detailed explanation, plus practice 22+ more Design: News Feed (Facebook/Twitter) questions with adaptive quizzes and timed interviews.

See the Answer on Guru Sishya →

This question is from the Design: News Feed (Facebook/Twitter) topic (System Design Cases).

More Design: News Feed (Facebook/Twitter) Questions