← Meta Interview Insights

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

SeniorPrefer not to say
May 2026

Summary

Meta system design interview focused entirely on WhatsApp Status, which sounds straightforward until they ask you to build search on top of ephemeral content. The search portion is where things got interesting and honestly a bit brutal.

Questions Asked (2)

Q1

Design the WhatsApp Status feature, covering post creation, viewing, 24-hour expiration, view tracking, and privacy controls.

System DesignData ModelingTechnical Trade-offs
Author's notes

The core feed stuff felt manageable.

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 (e.g., 2B users, 500M daily status posts). Propose a high-level architecture with separate write and read paths, and dive deep into data modeling, storage choices, and trade-offs for expiration, view tracking, and privacy.

Pro tip: Emphasize how you'd leverage existing Meta infrastructure (e.g., TAO for social graph, Haystack for media storage) to avoid reinventing the wheel and to meet latency SLAs. Also, discuss the trade-off between push and pull models for status updates, considering fan-out on write vs. read.

1. Requirements & Scale Estimation

Clarify functional requirements (post creation, viewing, 24h expiration, view tracking, privacy controls) and non-functional (low latency, high availability, consistency). Estimate scale: daily active users, status posts per day, media size, read/write ratio.

2. High-Level Architecture

Outline components: client, API gateway, status service, media service, metadata store, view tracking service, privacy service, and notification service. Describe data flow for posting and viewing a status.

3. Data Modeling & Storage

Design schemas for status metadata (user ID, timestamp, media URL, privacy settings, expiration time) and view tracking (status ID, viewer ID, timestamp). Choose storage: e.g., Cassandra for metadata (high write throughput, TTL), Redis for view counts, S3 for media.

4. Expiration & View Tracking

Explain how to handle 24-hour expiration: use TTL in Cassandra, a background job to delete media, and ensure reads filter expired statuses. For view tracking, design a scalable counter (e.g., Redis INCR) and store individual views for analytics, considering write amplification.

5. Privacy Controls & Trade-offs

Discuss privacy settings (public, contacts, custom lists) and how to enforce them at read time (e.g., check friendship via TAO). Highlight trade-offs: push vs. pull for status updates, consistency vs. latency for view counts, and storage cost vs. query performance.

Key Points to Mention

  • Use of TTL in databases (e.g., Cassandra) for automatic expiration of statuses after 24 hours.
  • Separation of media storage (e.g., S3) from metadata to optimize cost and performance.
  • View tracking: approximate counts with Redis vs. exact counts with a distributed counter, and trade-offs.
  • Privacy enforcement: checking social graph (e.g., TAO) at read time to filter statuses based on viewer relationship.
  • Fan-out strategies: push (write to followers' feeds) vs. pull (query on read) for status updates, considering scale.
  • Handling hotkeys and ensuring low latency for viewing statuses, possibly using CDN for media.

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

Q2

How would you design search across WhatsApp Statuses, supporting queries by text caption, hashtag, and author, while respecting privacy boundaries and handling the ephemeral nature of the content?

System DesignTechnical Trade-offsAlgorithms & Data Structures
Author's notes

This is where the interview really lived or died.

Create a free account to read the full note

AI HintsAI Generated

Suggested Approach

Start by clarifying requirements and constraints, especially privacy boundaries and ephemerality. Then propose a high-level architecture that separates indexing from serving, and dive into key components like indexing pipeline, query processing, and privacy enforcement. Discuss trade-offs and how to handle ephemeral data.

Pro tip: Emphasize that privacy is not an afterthought but a core design principle: propose privacy-preserving techniques like differential privacy or on-device indexing, and explain how you'd enforce access controls at query time.

1. Clarify Requirements and Constraints

Ask questions to understand scale, privacy expectations, and what 'ephemeral' means (e.g., 24-hour expiry). Clarify if search is only for the author or also for viewers, and what privacy boundaries exist.

2. High-Level Architecture

Propose a system that ingests statuses, extracts searchable metadata (caption, hashtags, author), and builds an index. Separate the indexing pipeline from the query serving layer for scalability.

3. Indexing Strategy

Design an inverted index for text and hashtags, and a forward index for author-based queries. Discuss how to handle ephemeral data: use TTL-based eviction or time-partitioned indices.

4. Query Processing and Privacy Enforcement

Describe how queries are parsed and executed against the index. Enforce privacy by filtering results based on viewer's relationship to author (e.g., friends only) and applying access control lists at query time.

5. Trade-offs and Optimizations

Discuss trade-offs between latency and freshness, index size vs. query flexibility, and privacy vs. search quality. Mention potential optimizations like caching, sharding, and using approximate algorithms.

Key Points to Mention

  • Privacy-preserving indexing: consider on-device indexing or encrypted search to avoid centralizing sensitive data.
  • Ephemeral data handling: use time-to-live (TTL) in the index and ensure deletions propagate quickly.
  • Access control: enforce at query time based on viewer-author relationship (e.g., friends, followers).
  • Scalability: shard the index by author or time, and use distributed search engines like Elasticsearch.
  • Trade-offs: balancing recall vs. precision, and latency vs. freshness.
  • Monitoring and compliance: audit logs, rate limiting, and adherence to privacy regulations.

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