← Meta Interview Insights

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

Senior
Jun 2026

Summary

Meta system design round, one big question that branched into two distinct sub-problems. The scope was wide enough that I kept second-guessing whether to go deeper on one part or keep moving.

Questions Asked (1)

Q1

Design a service where users can post short status updates and search through them, including full-text search over historical posts and geolocation-based search for nearby results.

System DesignTechnical Trade-offsData Modeling
Author's notes

Two questions in one, basically.

Create a free account to read the full note

AI HintsAI Generated

Suggested Approach

Start by clarifying requirements and scale, then design a high-level architecture that separates write and read paths. Focus on data modeling for posts, full-text indexing, and geospatial indexing, and discuss trade-offs between consistency, latency, and cost.

Pro tip: Emphasize how you would handle the 'hot' data (recent posts) differently from historical data, and discuss how to shard the search indexes to scale horizontally.

1. Clarify Requirements and Scale

Ask about expected user base, post volume, search latency requirements, and consistency needs. Define functional and non-functional requirements.

2. High-Level Architecture

Outline components: API servers, post storage, search indexes (full-text and geospatial), and caching. Consider write and read paths separately.

3. Data Modeling and Storage

Choose databases for posts (e.g., wide-column for scalability), full-text search (e.g., inverted index), and geospatial (e.g., geohash or R-tree). Discuss sharding and replication.

4. Search Implementation

Detail how full-text search works (tokenization, indexing, ranking) and geospatial search (proximity queries). Discuss indexing pipelines and query routing.

5. Trade-offs and Optimizations

Discuss trade-offs: consistency vs. latency, cost of indexing, hot/cold data separation, and caching strategies. Mention monitoring and scaling.

Key Points to Mention

  • Use of inverted index for full-text search (e.g., Elasticsearch, Lucene)
  • Geospatial indexing techniques (geohash, quadtree, R-tree) and proximity search
  • Sharding strategies for posts and indexes to handle scale
  • Separation of hot (recent) and cold (historical) data for performance and cost
  • Trade-offs between consistency and availability (CAP theorem)
  • Caching and CDN for popular searches and posts

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