← Meta Interview Insights

Meta·Software Engineer·Onsite - System Design / Architecture·Senior

SeniorPrefer not to say
Apr 2026

Summary

System design round at Meta for a software engineering role, focused entirely on building a news feed from scratch. Dense question with a lot of moving parts and I definitely felt the time pressure.

Questions Asked (1)

Q1

Design a news feed system similar to Facebook or Twitter that supports posting content, viewing a personalized feed, and per-post comments and likes.

System DesignTechnical Trade-offsData Modeling
Author's notes

This question is basically a marathon disguised as a single prompt.

Create a free account to read the full note

AI HintsAI Generated

Suggested Approach

Start by clarifying functional and non-functional requirements, then estimate scale (users, QPS, storage). Design the core data model and APIs, then dive into feed generation (fan-out on write vs read), storage choices, and trade-offs, ensuring scalability and low latency.

Pro tip: Explicitly discuss the trade-offs between fan-out on write and fan-out on read, and propose a hybrid approach for celebrity users. This shows you understand real-world constraints and can balance competing priorities.

1. Clarify Requirements and Scale

Ask questions to understand functional needs (posting, feed, comments, likes) and non-functional needs (latency, availability, consistency). Estimate scale: daily active users, posts per user, read/write ratio, and storage growth.

2. Define Data Model and APIs

Outline core entities (User, Post, Comment, Like, Follow) and their relationships. Specify key APIs for posting, fetching feed, commenting, and liking, including pagination and rate limiting.

3. Design High-Level Architecture

Sketch components: clients, API gateway, services (post, feed, comment, like), databases (SQL/NoSQL), cache, message queue, and CDN. Explain data flow for each operation.

4. Deep Dive into Feed Generation

Compare fan-out on write vs fan-out on read, discussing pros/cons. Propose a hybrid approach for scalability, and detail how to handle ranking, pagination, and real-time updates.

5. Address Scalability, Reliability, and Trade-offs

Discuss sharding, replication, caching strategies, consistency models, and failure handling. Highlight trade-offs made and how they align with requirements.

Key Points to Mention

  • Fan-out on write vs fan-out on read and hybrid approach for celebrities
  • Data storage choices: SQL vs NoSQL for different entities (e.g., graph DB for social graph, wide-column for feed)
  • Caching strategies (e.g., Redis for feed, CDN for media) and cache invalidation
  • Sharding and replication for scalability and availability
  • Consistency models (eventual consistency for feed, strong consistency for likes/comments)
  • Handling hotkeys and celebrity problem with techniques like write sharding or separate queues

AI-generated suggestions, not part of the candidate's original notes. May be inaccurate — verify before relying on them.