Design a Home Feed That Blends Your Neighborhood With Nearby Ones
Last updated: November 29, 2026
Quick Overview
Design the backend for a Nextdoor-style home feed where each post is published to the author's neighborhood and optionally to a ring of nearby neighborhoods, and each member's feed is ranked from posts across that audience plus groups and local businesses.
Nextdoor
November 29, 20260
0
0 solved
Design the backend for a Nextdoor-style home feed where each post is published to the author's neighborhood and optionally to a ring of nearby neighborhoods, and each member's feed is ranked from posts across that audience plus groups and local businesses.
Unlike follower graphs, Nextdoor's audience is geographic: a post's reach is a set of neighborhoods, and a neighborhood can hold thousands of members. The interviewer checks whether you notice that this makes fan-out on read by neighborhood natural, and how you handle ranking, edits, deletes and moderation at scale.
What the Interviewer Expects
- Size the problem: tens of millions of weekly actives, hundreds of thousands of neighborhoods, posts with wide audiences
- Model audience as neighborhood ids rather than per-user fan-out
- Use per-neighborhood post timelines plus a candidate merge and ranking step at read time
- Handle deletes, moderation removals and blocked authors at read time
- Discuss caching, pagination cursors and hot neighborhoods
Key Topics to Cover
How to Approach This
- Start by clarifying functional and non-functional requirements with the interviewer.
- Estimate the scale: QPS, storage, bandwidth. This drives your design decisions.
- Draw a high-level architecture first, then deep dive into 1-2 critical components.
- Discuss trade-offs explicitly (e.g., consistency vs availability, SQL vs NoSQL).
- Address failure scenarios, monitoring, and how the system handles 10x traffic spikes.
Possible Follow-up Questions
- A city agency posts an urgent alert to 300 neighborhoods. What happens to your write and read path?
- How do you paginate stably when ranking scores change between page loads?
- How would you add per-member muting of authors and topics without blowing up cache hit rates?
- Where does the ML ranking model run, and what is your latency budget for it?
Sharpen Your Skills on Codemia
Practice similar problems with our interactive workspace, get AI feedback, and track your progress.
Practice System Design ProblemsSample Answer
Requirements
Functional: create a post with audience = home neighborhood or home plus nearby; read a ranked, paginated feed; edits and deletes visible quickly; moderation removals immediate. Non-functional: p99 fe...
High-Level Design
Write path: Post Service stores the post in Postgres (sharded by post id) and emits an event. A Timeline Writer appends (score_seed, post_id) to a Redis sorted set per audience neighborhood, trimmed...