Course contentsShow
← System Design
Lesson 1496 of 1,91937. Real-World System: URL ShortenerFree lesson

Read-Heavy vs Write-Heavy Characteristics

Understand that URL shorteners are extremely read-heavy with a 100:1 or higher read-to-write ratio.

Read-Heavy vs Write-Heavy Characteristics

What you'll learn: You'll understand why URL shorteners exhibit extreme read-heavy traffic patterns and how this shapes architectural decisions.


The Read-to-Write Ratio

URL shorteners are extremely read-heavy systems with a typical read-to-write ratio of 100:1 or much higher. This means that for every one URL shortening operation (write), there are at least 100 redirect operations (reads).

Think of it like a billboard on a highway: you paint the billboard once (write), but thousands of drivers see it every day (reads). Similarly, a URL is shortened once but may be clicked hundreds or thousands of times across social media, emails, and websites.

Why This Matters for Architecture

This characteristic fundamentally influences every design decision:

Writes (URL creation):

  • Relatively infrequent
  • Can tolerate slightly higher latency (milliseconds acceptable)
  • Strong consistency is often acceptable
  • Less need for aggressive optimization

Reads (URL redirection):

  • Extremely frequent—the dominant workload
  • Must be ultra-fast (sub-10ms ideal)
  • Eventual consistency is acceptable
  • Heavy caching is essential
  • Geographic distribution critical

Real-World Scale Example

A viral tweet with a shortened link might generate:

  • 1 write: Creating the short URL once
  • 1,000,000 reads: Millions of users clicking it

This 1,000,000:1 ratio demands that your read path be optimized aggressively with CDN caching, geographic replication, and minimal database hits, while the write path can use a simpler, more straightforward approach.

Key Takeaway: URL shorteners are read-dominated systems with 100:1+ read-to-write ratios, requiring aggressive caching, CDN usage, and read-optimized data stores, while write operations can be handled with simpler, consistency-focused approaches.