Design Link Preview Unfurling for URLs Shared in Google Chat

Last updated: November 29, 2026

Quick Overview

Design the service that fetches a title, description, and image for URLs pasted into Google Chat messages and shows a preview card to everyone in the conversation, quickly and safely.

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

0

0

0 solved


Design the service that fetches a title, description, and image for URLs pasted into Google Chat messages and shows a preview card to everyone in the conversation, quickly and safely.

A compact Google screen question with a security twist. The interviewer checks caching of previews, asynchronous fetching so sending is not blocked, and protection against server-side request forgery and malicious pages.

What the Interviewer Expects
  • Fetch previews asynchronously and update the message when ready
  • Cache previews by normalized URL with a TTL
  • Isolate the fetcher to prevent SSRF into internal networks
  • Proxy images so recipients' IPs are not exposed
  • Respect Workspace admin policies and private links
Key Topics to Cover
async enrichment
caching
SSRF protection
image proxying
access-aware previews
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 stop a URL from making your fetcher hit an internal metadata endpoint?
  • Should a Drive link preview be the same for every viewer?
  • How would you handle a link shared in a 10,000 person Space?
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
  • When a message contains a URL, show a card with title, description, and thumbnail within a couple of seconds.
  • Sending the message must not wait on the fetch.
  • Links can be public web pages or Goo...
High-Level Design
  1. Message Service stores the message and emits urls_found(message_id, urls).
  2. Unfurl workers normalize each URL, check the preview cache (key: normalized URL), and on miss fetch the page ...

Submit Your Answer
Markdown supported