Design Full-Text Search For Zoho Mail Mailboxes At Scale

Last updated: November 29, 2026

Quick Overview

Design search for a hosted email service like Zoho Mail: users search their own mailbox by keyword, sender, date, folder and attachment, results must reflect new mail within seconds, and the system holds billions of messages across millions of mailboxes.

Zoho
System Design
Software Engineer
Zoho
November 29, 2026
Software Engineer
Onsite
System Design
Hard

0

0

0 solved


Design search for a hosted email service like Zoho Mail: users search their own mailbox by keyword, sender, date, folder and attachment, results must reflect new mail within seconds, and the system holds billions of messages across millions of mailboxes.

Zoho Mail is a core paid product for businesses, hosted in Zoho's own data centres, and search quality and freshness are what users notice daily. The interviewer looks at index partitioning by mailbox, near-real-time indexing, storage cost and strict tenant isolation in every query.

What the Interviewer Expects
  • Partition the index by mailbox or organization, not globally by term
  • Use an inverted index with fielded terms and per-mailbox postings
  • Index new mail asynchronously with near-real-time segment refresh
  • Combine full-text scoring with filters and recency ranking
  • Control storage with compression and tiering of cold mailboxes
  • Enforce tenant isolation and handle deletes and retention
Key Topics to Cover
Inverted index
Sharding
Near-real-time indexing
Ranking
Data retention
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 search inside PDF and Office attachments without slowing ingestion?
  • How would you support admin eDiscovery across all mailboxes of an organization?
  • How do you handle languages without whitespace tokenization, such as Japanese?
  • How do you rebuild the index for a new tokenizer without downtime?
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

Queries are scoped to one mailbox (or an org for admins). Fields: subject, body, from, to, folder, labels, has-attachment, date. New mail searchable within about 5 seconds. p95 query latency under 300...

High-Level Design

Mail ingestion writes the message to the mail store and emits an index event. Indexer workers parse MIME, extract text (attachments via a separate slower extraction queue), tokenize per detected langu...


Submit Your Answer
Markdown supported

Related Questions