Design a CDN for Global Design Asset Delivery

Last updated: April 5, 2025

Quick Overview

Design a content delivery network optimized for serving design assets (images, fonts, templates, videos) to 260M+ users worldwide with low latency and high availability.

Canva
System Design
Software Engineer
Canva
April 5, 2025
Software Engineer
System Design
System Design
Hard

9

5

2,156 solved


Design a content delivery network optimized for serving design assets (images, fonts, templates, videos) to 260M+ users worldwide with low latency and high availability.

Canva serves over 260 million monthly active users globally who need fast access to design assets including images, fonts, templates, and increasingly video content. Designing an efficient CDN is critical to user experience, especially in regions far from Canva's Australian headquarters.

What the Interviewer Expects
  • Design a multi-tier CDN architecture with edge, regional, and origin layers
  • Handle different asset types with appropriate caching and delivery strategies
  • Implement cache invalidation and consistency for mutable assets
  • Optimize for global reach including regions with poor connectivity
  • Discuss cost optimization and traffic engineering
Key Topics to Cover
CDN architecture and edge computing
Cache hierarchies and invalidation strategies
Global load balancing and anycast
Bandwidth optimization and compression
Cost modeling for CDN at scale
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 would you handle cache stampedes when a popular template is updated?
  • How would you optimize delivery for users in regions with high latency to your origin?
  • How would you measure and improve cache hit rates across different asset types?
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
Multi-Tier Architecture

The CDN uses three tiers. Edge tier: 200+ points of presence using a commercial CDN (CloudFront or Fastly) for last-mile delivery. Regional tier: orig...

Asset-Specific Strategies

Different asset types require different strategies. Immutable assets (user uploads, rendered exports): content-addressed URLs, Cache-Control: immutabl...


Submit Your Answer
Markdown supported

Related Questions