About Tiered Storage

The Problem

Modern applications need to balance three competing concerns:

The Solution

Tiered storage provides the best of all worlds by automatically managing data across multiple storage tiers:

🚀 Performance

Hot tier (memory) serves critical files like index.html in microseconds

💰 Cost-Effective

Warm tier (disk) and cold tier (S3) handle bulk storage efficiently

🛡️ Reliability

Cold tier acts as source of truth with automatic backups

Use Cases

Static Site Hosting

Store index.html in memory for instant serving, while keeping images and videos on disk/S3. Perfect for CDN-like performance on a single server.

Content Delivery

Automatically promote popular content to hot tier based on access patterns. Rarely accessed content stays in cold storage.

Database Caching

Cache query results in memory, with overflow to disk and S3. Automatic TTL management keeps data fresh.

How This Demo Works

This example site is stored using the tiered-storage library:

  1. index.html - Stored in all tiers (hot + warm + cold) for instant access
  2. about.html - Stored in warm + cold (skips hot to save memory)
  3. style.css - Stored in warm + cold
  4. script.js - Stored in warm + cold
  5. hero-image.jpg - Large file, stored in cold tier only

When you request a page, the library automatically checks hot → warm → cold and serves from the fastest available tier.