Design Full-Text Search Over Years of Outlook Mailbox Email

Last updated: November 29, 2026

Quick Overview

Design search for Outlook so a user can search their own mailbox of up to a million messages and attachments by keyword, sender, date and folder, with new mail searchable within seconds.

Microsoft
System Design
Software Engineer
Microsoft
November 29, 2026
Software Engineer
Phone Screen
System Design
Easy

0

0

0 solved


Design search for Outlook so a user can search their own mailbox of up to a million messages and attachments by keyword, sender, date and folder, with new mail searchable within seconds.

A scoped search question that fits a phone screen because the corpus is per user. Interviewers check whether you notice that per-mailbox indexes are a natural partition, how you keep the index fresh, and how you rank when recency matters more than term frequency.

What the Interviewer Expects
  • Partitions the index per mailbox and co-locates it with mailbox data
  • Indexes structured fields (from, to, date, folder, has attachment) alongside body text
  • Extracts attachment text asynchronously
  • Ranks with recency and sender importance, not only text relevance
  • Handles deletions and moves between folders
Key Topics to Cover
Per-user inverted index
Structured filters
Incremental indexing
Recency ranking
Attachment extraction
How to Approach This
  1. Start by clarifying functional and non-functional requirements with the interviewer.
  2. Estimate the scale: QPS, storage, bandwidth. This drives your design decisions.
  3. Draw a high-level architecture first, then deep dive into 1-2 critical components.
  4. Discuss trade-offs explicitly (e.g., consistency vs availability, SQL vs NoSQL).
  5. Address failure scenarios, monitoring, and how the system handles 10x traffic spikes.
Possible Follow-up Questions
  • How do you make a message searchable within seconds of arrival?
  • How would you support search across a shared mailbox the user has delegate access to?
  • What would you cache on the client for offline search?
Sharpen Your Skills on Codemia

Practice similar problems with our interactive workspace, get AI feedback, and track your progress.

Practice System Design Problems
Sample Answer
Requirements

One user's mailbox: up to a million items, some with large attachments. Queries combine free text with filters (from:alex budget after:2024-01-01). p95 under 300 ms. New or moved mail reflected with...

High-Level Design

Each mailbox lives on a mailbox server (database plus replicas). Next to it runs a content indexer that maintains a per-mailbox inverted index. Mail delivery writes the message, then emits a chang...


Submit Your Answer
Markdown supported