Skip to content
Learn Netverks
Company prep Instacart
Senior (5–8 years) System design Hard

Design a news feed / home timeline for a social app

Reported in Instacart USA engineering loops. Product + system design hybrid common at Meta, Twitter/X, LinkedIn, and Reddit US offices.

Role
Senior SDE
Location
Menlo Park, CA

Context for Instacart candidates:

Scale: 300M DAU, 500M posts/day, p99 feed load under 200ms in the US.

Try answering aloud first

Cover trade-offs, structure, and a concrete example before revealing the baseline response.

Spoiler-free prep mode

How to frame this at Instacart: Connect your answer to measurable impact, clarity of thought, and trade-offs the team cares about. Below is a strong baseline response you can adapt with your own project examples.

Read path: hybrid fan-out—push to cache for normal users (write fan-out on post), pull for celebrities with millions of followers. Store per-user timeline in Redis sorted sets keyed by post_id timestamp.

Write path: post service → async fan-out workers → timeline cache + search index. Rank with ML scoring service (engagement, recency, affinity).

Storage: posts in Cassandra/Dynamo; media in S3 + CDN; graph in separate service. Use idempotent consumers and dead-letter queues.

Trade-offs: eventual consistency acceptable for feed; strong consistency for posting confirmation. Mention cold start, pagination cursors, and abuse/ranking guardrails.

Comments (0)

Share how this question came up in your loop, or add tips for others preparing.

Log in to comment on this question.