Design Google Alerts Keyword Monitoring Over Newly Indexed Pages

Last updated: November 29, 2026

Quick Overview

Design Google Alerts, where users register search queries and receive emails listing newly indexed web pages and news articles that match, either as they happen, daily, or weekly.

Google
System Design
Software Engineer
Google
November 29, 2026
Software Engineer
System Design Round
System Design
Medium

0

0

0 solved


Design Google Alerts, where users register search queries and receive emails listing newly indexed web pages and news articles that match, either as they happen, daily, or weekly.

Google Alerts inverts normal search: instead of matching one query against the index, every new document must be matched against millions of stored queries. Interviewers like it because the naive approach (rerun every query periodically) is expensive, and the strong answer is a reverse index of queries.

What the Interviewer Expects
  • Explain the inversion: match documents against stored queries
  • Build an index over queries keyed by rare terms
  • Support the 'as it happens', daily and weekly delivery modes
  • Filter for quality and dedupe near-identical articles
  • Estimate cost of the matching stage
Key Topics to Cover
Percolator-style matching
Inverted index of queries
Stream processing
Deduplication
Digest delivery
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 handle phrase queries and boolean operators like OR and minus?
  • How do you avoid alerting on spam pages?
  • What if a query matches thousands of new pages per day?
  • How would you add language and region filters?
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

Functional: users store queries with settings (sources, language, region, frequency, 'best results' vs 'all'); new pages from the indexing pipeline are matched; users get emails with titles, snipp...

High-Level Design
  • Indexing feed: the crawl and indexing pipeline publishes doc_indexed(doc_id, url, terms, quality, lang, ts).
  • Query store: alert(user, query_id, settings) and `query(query_id, parsed_qu...

Submit Your Answer
Markdown supported