← Meta Interview Insights

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

Senior
May 2026

Summary

Meta system design round, got asked to build a post search feature from scratch. Pretty open-ended and I wasn't sure how deep to go on each component, but it was a solid question that covers a lot of ground.

Questions Asked (1)

Q1

Design a post search system for a large social platform where users can search by one or more keywords and get back relevant posts. Posts are being created, updated, and deleted constantly. Cover the API, how you'd index content, how you'd rank results, and how you'd scale the whole thing.

System DesignTechnical Trade-offsAPI & Integrations
Author's notes

This one is basically 'build a mini search engine' and I went in thinking I had it covered because I knew about inverted indexes.

Create a free account to read the full note

AI HintsAI Generated

Suggested Approach

Start by clarifying requirements (scale, latency, consistency) and then walk through the high-level architecture: API design, indexing pipeline, ranking, and scaling. Emphasize trade-offs between freshness and relevance, and how you'd handle the constant updates.

Pro tip: Proactively discuss how you'd handle the 'cold start' problem for new posts and the 'hot' problem for viral posts, showing you understand real-world challenges beyond textbook design.

1. Clarify Requirements and Scope

Ask about scale (DAU, QPS, post volume), latency requirements, consistency needs, and whether search is keyword-based or semantic. Define functional and non-functional requirements.

2. Design the API

Define endpoints for search (GET /search?q=...&filters=...), with pagination, sorting, and response schema. Consider authentication, rate limiting, and error handling.

3. Design the Indexing Pipeline

Describe how posts are ingested, processed (tokenization, stemming, etc.), and indexed. Use a message queue for asynchronous updates and a distributed search engine like Elasticsearch or a custom inverted index.

4. Design Ranking and Relevance

Explain ranking factors: textual relevance (TF-IDF, BM25), recency, engagement (likes, comments), and personalization. Discuss how to combine them and handle updates.

5. Scale and Optimize

Cover sharding, replication, caching, and CDN for hot queries. Discuss trade-offs between consistency and availability, and how to handle deletions and updates efficiently.

Key Points to Mention

  • Inverted index and tokenization for efficient keyword search
  • Use of a distributed search engine (e.g., Elasticsearch) or building a custom one
  • Ranking algorithms: BM25, TF-IDF, and incorporating engagement signals
  • Handling real-time updates: near-real-time indexing vs. batch processing
  • Sharding and replication for scalability and fault tolerance
  • Caching strategies for popular queries and results

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