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
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
- Start by clarifying functional and non-functional requirements with the interviewer.
- Estimate the scale: QPS, storage, bandwidth. This drives your design decisions.
- Draw a high-level architecture first, then deep dive into 1-2 critical components.
- Discuss trade-offs explicitly (e.g., consistency vs availability, SQL vs NoSQL).
- 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 ProblemsSample 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
- Message Service stores the message and emits
urls_found(message_id, urls). - Unfurl workers normalize each URL, check the preview cache (key: normalized URL), and on miss fetch the page ...
Submit Your Answer
Markdown supported