← Google Interview Insights

Google·Software Engineer·Onsite - System Design / Architecture·Senior

Senior
May 2026

Summary

Google solutions architect interview, system design round. One question, CDN design. Felt like a reasonable scope but there's a lot of surface area to cover and I'm not sure I hit all of it.

Questions Asked (1)

Q1

How would you design a content delivery network (CDN) from scratch?

System DesignTechnical Trade-offsAPI & Integrations
Author's notes

Started with edge nodes and cache invalidation, which felt right, but I got pretty tangled up explaining how origin pull vs push models interact with TTL policies.

Create a free account to read the full note

AI HintsAI Generated

Suggested Approach

Start by clarifying requirements and scale, then outline the high-level architecture covering DNS routing, edge caching, and origin fetch. Dive into key components like cache hierarchy, consistency, and performance optimizations, and discuss trade-offs for each design decision.

Pro tip: Emphasize how you would measure and monitor CDN performance (e.g., cache hit ratio, latency percentiles) and iterate based on data, showing a production mindset.

1. Clarify Requirements

Ask about scale (QPS, data volume), content types (static/dynamic), geographic distribution, and consistency needs to scope the design.

2. High-Level Architecture

Sketch the main components: DNS-based global load balancing, edge servers, mid-tier cache, and origin servers, and explain the request flow.

3. Deep Dive into Key Components

Detail edge caching strategies (TTL, eviction), cache hierarchy, and how to handle dynamic content and cache invalidation.

4. Address Scalability and Reliability

Discuss horizontal scaling, fault tolerance, and how to handle traffic spikes and failures (e.g., anycast, health checks).

5. Discuss Trade-offs and Optimizations

Compare design choices (e.g., push vs. pull, consistency vs. latency) and suggest optimizations like compression, HTTP/2, and edge compute.

Key Points to Mention

  • DNS-based global load balancing and anycast routing
  • Cache hierarchy: edge, mid-tier, and origin shielding
  • Cache invalidation strategies (TTL, purge API, versioning)
  • Handling dynamic content and API acceleration
  • Performance metrics: cache hit ratio, latency, throughput
  • Security considerations: DDoS protection, TLS termination, WAF

AI-generated suggestions, not part of the candidate's original notes. May be inaccurate — verify before relying on them.