Course contentsShow
← System Design
Lesson 1620 of 1,91939. Real-World System: Image and Video HostingFree lesson

Storage Tiering for Cost Optimization

Move infrequently accessed media to cheaper storage tiers using lifecycle policies and access pattern analysis.

Storage Tiering for Cost Optimization

What You'll Learn

You'll learn how to automatically move infrequently accessed media to cheaper storage tiers using lifecycle policies and access pattern analysis to dramatically reduce hosting costs.

The Core Idea

In image and video hosting systems, not all content is accessed equally. A viral video from yesterday gets millions of views, while a vacation photo from three years ago might never be viewed again. Storing both on the same expensive, high-performance storage wastes money.

Storage tiering means organizing your data across multiple storage classes based on access frequency:

  • Hot Tier: Frequently accessed media (last 30 days) on fast SSD-backed storage
  • Warm Tier: Occasionally accessed media (30-180 days) on standard storage
  • Cold Tier: Rarely accessed media (180+ days) on archival storage with slower retrieval

How It Works

You analyze access patterns through CDN logs and metadata tracking. Files that haven't been requested in 90 days automatically migrate to cheaper storage. Object stores like S3 offer lifecycle policies that transition objects automatically:

If last_access > 90 days → move to Infrequent Access
If last_access > 365 days → move to Glacier/Archive

Think of it like a library: bestsellers stay on the front shelf (hot), older books move to back shelves (warm), and ancient archives go to the warehouse (cold). Each location costs less to maintain but takes longer to retrieve.

Real Impact

A media platform with 10 PB of storage can save 60-70% on storage costs by moving 80% of their content (rarely accessed old uploads) to cold tiers. You monitor access patterns, set policies, and let automation handle the rest—while keeping everything retrievable when needed.

Key Takeaway: Storage tiering uses automated lifecycle policies and access analytics to migrate infrequently accessed media to progressively cheaper storage tiers, achieving massive cost savings without losing data availability.