Design a News Feed
The home timeline of Twitter, Instagram or Facebook: posts from people you follow, ranked, fresh, and fast for hundreds of millions of users.
14 questions on this site are reported in LinkedIn software engineer interviews. Each has a full reference design (requirements, back-of-envelope numbers, components, user flows and deep dives with interviewer follow-ups). Each one can be walked through turn by turn and then sat as a mock. Patterns covered: fan-out, ranking, caching, social, multi-channel, idempotency, rate-limiting, priority-queues, algorithms, counters, redis, edge, tries, search, stream-processing, windowing, exactly-once, olap, analytics, recommendations, marketplace, exploration, append-only-log, partitioning, replication, consumer-groups, broadcast, pub-sub, sse, sampling, moderation, heavy-hitters, count-min-sketch, sliding-windows, hot-keys, inverted-index, scatter-gather, tail-latency, real-time, privacy, counting, time-partitioning, graph, sharding, in-memory, consistency, batch, clustering, ingestion, edge-caching, deduplication, experimentation, hashing, statistics.
Run an AI mock LinkedIn interview →One of these questions, run as a live round in that style, with a debrief at the end.
Attribution comes from public interview guides and candidate reports, not from LinkedIn. It indicates where a question has been asked, nothing more.
The home timeline of Twitter, Instagram or Facebook: posts from people you follow, ranked, fresh, and fast for hundreds of millions of users.
Deliver push, email, SMS and in-app notifications to hundreds of millions of users: the right channel, once, on time, and never at 3 a.m.
A distributed service that decides, in under a millisecond, whether a request from a client is allowed under its quota.
Suggest the top ten completions after every keystroke, in under fifty milliseconds, from what the world searched for in the last hour, without suggesting anything that gets you in the newspaper.
Count a million ad clicks a second, show advertisers a dashboard that is seconds behind, stop a campaign the moment its budget runs out, and be exactly right when the invoice is cut.
Match posted projects with qualified, available contractors across a 500 k-person talent pool, and learn from who actually gets hired.
A Kafka-style log that ingests a million messages a second, keeps them in order per key, replicates them so no acknowledged message is lost, and lets many consumer groups read at their own pace.
Comments and reactions on live video that reach viewers within two seconds, at 50 M concurrent viewers and 5 M on one stream.
Rank the top 1,000 videos by views over the last minute, hour, day and all time, from a million views a second.
Search 50 billion pages at 100 k queries a second: the ten best results with snippets in under 200 ms, and news within minutes.
Keyword search over a billion users’ posts, searchable seconds after posting, sorted by recency or likes, hiding every post the searcher may not see.
LinkedIn’s connections for 1 B members: invitations, follows, a 1st/2nd/3rd badge on 200 k profile views a second, and daily People You May Know.
Collect 2 M articles a day from 50,000 publishers, group them into stories, rank them per edition, and serve 300 M daily readers.
Run 500 experiments at once on 300 M users: sticky variants in microseconds, exposure logging, and confidence intervals teams can trust.
45–60 minutes, usually product-shaped around surfaces LinkedIn runs: the feed, messaging, notifications, search and typeahead, connection recommendations.
Making good choices silently. Interviewers are reported to score the reasoning they hear, so name the options, pick one, say why, and tie it back to what the member experiences.
From public interview guides and candidate reports, and LinkedIn’s own interview guidance where it publishes any. Not endorsed by LinkedIn. Formats change; treat it as a prior, not a promise.
Large-company loops run 45 to 60 minutes, expect numbers, and spend most of the time on deep dives. Walk through a question to see how a strong candidate paces the hour, sit the same question as a mock until you can produce the requirements, the estimates and the design without looking, then read the interview framework guide for how to structure the hour. The other questions on the site teach patterns that show up in LinkedIn interviews under different names.
Questions reported in LinkedIn system design interviews include News Feed, Notification System, Rate Limiter, Search Autocomplete, Ad Click Aggregator, Project-to-Contractor Matching System, Distributed Message Queue and Live Comments, among 14 in total. Between them they test fan out, ranking, caching, social, multi channel and idempotency. The reports come from public interview guides and candidate accounts, not from LinkedIn, so practise the patterns rather than memorising one list.
45–60 minutes, usually product-shaped around surfaces LinkedIn runs: the feed, messaging, notifications, search and typeahead, connection recommendations.
Reports say the LinkedIn round weighs 4 things. 1. Product sense: what the member sees, judged alongside the architecture. 2. The graph underneath: fan-out, and the skew between typical members and accounts with very large followings. 3. Scale numbers for a member base of around a billion. 4. Availability, security and how the system is run, not only how it is built. Making good choices silently. Interviewers are reported to score the reasoning they hear, so name the options, pick one, say why, and tie it back to what the member experiences.
Practise the questions reported there out loud, under a 45-minute clock: requirements with numbers first, then estimates, a high-level design, and deep dives into the two or three hardest parts. Start with News Feed: watch a strong candidate answer it turn by turn, then sit it yourself. Then cover the patterns the round leans on (fan out, ranking, caching and social) with one more question each.