Diagnose the speed gap between Gmail inbox search and Google web search

Quick Overview

A technical product question asking why searching a Gmail inbox often feels slower than a Google web search, even though a mailbox holds far less data. It tests reasoning about how each search system is built and what drives its latency, and turning that understanding into product trade-offs and improvements.

Diagnose the speed gap between Gmail inbox search and Google web search

Company: Google

Role: Product Manager

Category: System Design

Difficulty: medium

Interview Round: Other

Searching your mailbox in Gmail often feels slower than running a Google web search, even though one inbox is a tiny fraction of the size of the web. Explain why. ```hint Follow one query through each system Trace a search from the keystroke to the results page in each product, and at each step ask what work can be done ahead of time or reused, and for whom. ``` ### Clarifying Questions - Are we comparing server response time, or the time until the user sees a useful result, including the app and the network? - Is the comparison on the web version, the mobile app, or both? - Do we mean plain keyword searches, or also searches that filter by sender, date, label or attachment? ### What a Strong Answer Covers - A check of the premise and a clear definition of which latency is being compared - A side-by-side comparison of how the two systems store and search their data, keep it fresh, and define a correct result - Whether caching, precomputation and spreading work across machines help each system, and why - Client-side and product contributors to how fast search feels, not only backend ones - Trade-offs that make the gap a reasonable product choice, and ways to make search feel faster ### Follow-up Questions - As the product manager for mailbox search, which two changes would you try first to make it feel faster, and how would you measure them? - How would your answer change if messages were end-to-end encrypted, so the servers could not read their content? - Which kinds of mailbox searches would you expect to be slowest, and how would you confirm that with data?

Overview: A technical product question asking why searching a Gmail inbox often feels slower than a Google web search, even though a mailbox holds far less data. It tests reasoning about how each search system is built and what drives its latency, and turning that understanding into product trade-offs and improvements.

Google logo
Google
Feb 17, 2024
mediumProduct ManagerOtherSystem Design
0
0

Searching your mailbox in Gmail often feels slower than running a Google web search, even though one inbox is a tiny fraction of the size of the web. Explain why.

Clarifying Questions Guidance

  • Are we comparing server response time, or the time until the user sees a useful result, including the app and the network?
  • Is the comparison on the web version, the mobile app, or both?
  • Do we mean plain keyword searches, or also searches that filter by sender, date, label or attachment?

What a Strong Answer Covers Guidance

  • A check of the premise and a clear definition of which latency is being compared
  • A side-by-side comparison of how the two systems store and search their data, keep it fresh, and define a correct result
  • Whether caching, precomputation and spreading work across machines help each system, and why
  • Client-side and product contributors to how fast search feels, not only backend ones
  • Trade-offs that make the gap a reasonable product choice, and ways to make search feel faster

Follow-up Questions Guidance

  • As the product manager for mailbox search, which two changes would you try first to make it feel faster, and how would you measure them?
  • How would your answer change if messages were end-to-end encrypted, so the servers could not read their content?
  • Which kinds of mailbox searches would you expect to be slowest, and how would you confirm that with data?