SDSystem DesignConcepts to case studies
System DesignDSA
x
0/311
Part 1: Foundations
Part 2: APIs and Communication
Part 3: Caching
Part 4: Data and Storage
  • Block Storage
  • Distributed File Systems
  • Object Storage
  • Erasure Coding
  • Storage Tiers (Hot, Warm, Cold)
  • RAID
  • Compression and Deduplication
  • File Storage (NFS)
Part 5: Architecture
Part 6: Distributed Systems
Part 7: Advanced Data Topics
Part 8: Operations and Security
Part 9: Estimation and Interview Method
Part 10: Case Studies
System Design/Data and Storage/Storage Systems

Storage Tiers (Hot, Warm, Cold)

Keep busy data on fast, costly storage and old data on slow, cheap storage.

⏱ 11 min readBeginnerInterview FavouriteHas visualizer
SummaryConceptReal-Life ExampleWhy?Where?How It WorksStepsKey TermsPros & ConsMistakesReal WorldRead NextInterview Q&ACheat-Sheet

01Quick Summary

Storage tiers sort your data by how often it is used. Hot data is used all the time and sits on fast, expensive storage. Warm data is used sometimes. Cold data is rarely touched and sits on very cheap, slow storage.

  • Fast storage costs a lot per gigabyte. Slow storage costs far less. Most data gets old and is read less and less.
  • So you keep the recent, busy data on fast storage and let old data drift down to cheaper tiers, often by an automatic rule.
  • The catch: cold tiers are slow to read and charge a fee to get data back. Putting busy data there costs more, not less.

02Concept: What is it?

Storage comes in a range of speeds and prices. Memory and fast SSDs answer in microseconds but cost the most per gigabyte. Hard disks and standard object storage are slower and cheaper. Archive storage (cold object-storage classes, and tape at the extreme) is the cheapest of all, but retrieving data can take minutes or hours and may cost extra.

Data also has a life. A photo uploaded today is viewed a lot. A year later it is viewed rarely. A tiering plan matches the data to storage that fits how often it is used now, instead of paying the top price for everything forever.

The tiers, from fast and costly to slow and cheap
πŸ”₯Hotmemory, NVMe or SSD. Microseconds to milliseconds. Highest price.
β˜€οΈWarmHDD or standard object storage. Milliseconds. Medium price.
❄️Coldinfrequent-access classes. Slower, with a fee per read.
🧊Archivedeep archive or tape. Minutes to hours to retrieve. Lowest price.
The names and exact features differ between products, but the pattern is the same.
🧠Cost has two parts: keeping it, and reading it
Cold tiers cut the price of keeping data, but raise the price of reading it. Tiering saves money only when old data is really read rarely.

03Real-Life Example

🍡The Kitchen, the Pantry and the Warehouse
A restaurant keeps the salt and the olive oil right next to the stove, because the cook reaches for them every minute. Flour and tins are in the pantry, a few steps away. Seasonal items and big bulk packs are in a warehouse across town: very cheap to store, but fetching them takes a trip. A smart manager moves things between these places based on how often they are used, and never keeps salt in the warehouse.
The restaurant
Storage tiers
Next to the stove
Hot tier (fast, costly)
The pantry
Warm tier
The warehouse across town
Cold or archive tier (cheap, slow)
A delivery trip fee
Retrieval fee and delay
Moving items by how often they are used
A lifecycle policy
Salt kept in the warehouse
Hot data placed in a cold tier
A manager watching usage
Intelligent, access-based tiering
A year in the life of a file
πŸ“€Day 0busy, hot
→↓30 days
πŸ“Month 1occasional, warm
→↓1 year
🧊Year 1+rare, cold

04Why Do We Need It?

πŸ’°Save money
Cold storage can cost a small fraction of hot storage per gigabyte. On petabytes, that is a large saving.
⚑Keep the fast path fast
Fast storage is reserved for data that needs it, so it is not crowded by old files.
πŸ“ˆHandle growth
Data grows every day. Tiering stops the bill growing at the top price.
πŸ“œKeep it for the law
Cheap tiers make it affordable to keep data you must retain for years.
🧹Smaller hot systems
Smaller hot databases and disks are faster to back up, scan and restore.
πŸ€–Automatic
A rule or an access-based policy moves data for you, with no manual copying.
Pay for speed only where speed is used. Everything else should sit on the cheapest storage that still meets its needs.

05Where Do We Use It?

πŸ—ƒοΈObject storage
Cloud object stores offer storage classes: standard, infrequent access, archive. Rules move objects between them. See Object Storage.
πŸ—„οΈDatabases
Recent partitions on fast disks, older partitions on cheaper disks or exported as files.
πŸ“œLogs and metrics
Fresh logs are searchable, older ones are compressed and moved to a cheap tier.
🎬Media
New videos and photos are hot. Old ones rarely watched slide down.
πŸ’ΎBackups
Latest backups are quick to restore. Older ones sit in archive storage.
πŸ”ŽSearch clusters
Hot nodes for recent indexes, warm and cold nodes for older ones.

06Types / Parts / How It Works

The tiers compared

TierTypical mediaAccessCost to keepCost to read
HotMemory, NVMe, SSDMicroseconds to millisecondsHighestLow or none
WarmHDD, standard object storageMillisecondsMediumLow
ColdInfrequent-access object classesMilliseconds to seconds, sometimes longerLowA fee per read, and often a minimum storage time
ArchiveDeep archive classes, tapeMinutes to hoursLowestA higher fee, plus a wait
πŸ“Note
Names, speeds and prices differ between providers and change over time. The pattern (cheaper to keep means costlier and slower to read) stays the same.

How data moves between tiers

Two ways to decide
By age (lifecycle rule)
πŸ“…Older than 30 daysmove to warm
πŸ“…Older than 1 yearmove to cold
By access (intelligent tiering)
πŸ‘€Not read for 30 daysmove down
πŸ”ΌRead againmove back up
Age rules are simple and predictable. Access-based rules follow real usage.

The cost model in plain words

  • Storage: price per gigabyte per month for keeping the data.
  • Retrieval: a fee per gigabyte, and sometimes per request, when data is read from a cold tier.
  • Minimum storage time: some cold tiers charge as if the data stayed for a minimum period, even if you delete it sooner.
  • Moves: moving data between tiers can itself cost a small fee per object, which matters when there are millions of tiny files.
VisualizerTiering rules, read patterns and the monthly billSet how much data you hold, when it moves to warm and cold, and how often it is read. Then switch to the case where a daily job scans the cold data, and watch the retrieval fees make cold storage cost more than keeping everything hot.
How is the old data used?
Data by age. The colour is the tier your rule puts it in. Bar length is the amount of data.
0 to 7 days
10 TB, Hot
7 to 30 days
20 TB, Hot
30 to 90 days
30 TB, Warm
90 to 365 days
60 TB, Warm
1 to 3 years
80 TB, Cold
All hot
$24,000/mo
no tiering
Tiered
$6,660/mo
saves 72%
Retrieval fees
$40/mo
warm + cold reads
Cold holds
80 TB
$348/mo
Tiering saves $17,340 a month (72%) compared with keeping everything on hot storage. Old data is read rarely, so cheap storage with a fee per read is a good trade.

The prices here are made up round numbers for teaching ($120, $30 and $4 per TB per month for hot, warm and cold, plus a fee per GB read). They are NOT a real price list, and real providers also charge for requests, minimum storage time and transfer. The data by age and how often each age is read are fixed numbers in the code (no random values).

07How to Use It / Steps / Implementation

Designing a tiering plan

  1. 1
    Measure how data is used
    Find how much data is read at each age. Do not guess. Look at access logs or storage metrics.
  2. 2
    Pick tiers that fit
    Match each age group to the cheapest tier whose speed and read cost are still acceptable.
  3. 3
    Write lifecycle rules
    For example: warm after 30 days, cold after 1 year, delete after 7 years.
  4. 4
    Check minimum durations and fees
    Cold tiers may charge a minimum storage time and a per-read fee. Make sure the rule does not cost more than it saves.
  5. 5
    Mind small files
    Per-object fees can dominate for millions of tiny files. Combine them into larger objects first.
  6. 6
    Keep an index
    Keep metadata (names, dates, owners) in a fast database, so you rarely need to read cold data just to find something.
  7. 7
    Use access-based tiering when patterns are unclear
    It moves each object by its own usage, and brings it back up when it is read again.
  8. 8
    Review the bill and the access pattern
    Check retrieval charges every month. A sudden rise means hot data fell into a cold tier.
πŸ’‘Keep a small hot copy of what you will want
Thumbnails, summaries and indexes can stay hot while the big original file goes cold. Users get a fast answer, and you pay for the heavy file only when it is truly needed.
⚠️Do not tier data that analysts scan
A monthly report that reads all the old data turns cheap storage into expensive retrieval. Check who reads old data before moving it down.

08Key Terms to Know

TermMeaning in easy words
Hot dataData used often, kept on fast storage
Warm dataData used now and then, kept on moderate storage
Cold dataData rarely used, kept on cheap, slower storage
Archive tierThe cheapest storage, with slow, sometimes delayed, retrieval
Lifecycle policyA rule that moves or deletes data by age
Intelligent tieringAutomatic movement based on how each object is actually accessed
Retrieval feeA charge per amount of data read from a cold tier
Minimum storage durationA period you are billed for, even if you delete the data sooner
Access patternHow often, and how recently, data is read
Rehydration / restoreMaking archived data readable again, which can take time
Storage classA named tier in an object store, with its own price and speed

09Pros, Cons and Trade-offs

βœ… Pros
  • Large savings on data that is rarely read
  • Keeps fast storage for fast needs
  • Automatic with lifecycle rules
  • Makes long retention affordable
  • Scales to very large data
⚠️ Cons
  • Cold reads are slow and cost a fee
  • Wrong placement can cost more than no tiering
  • Minimum durations and per-request charges add up
  • Needs good knowledge of access patterns
  • More rules to design, test and monitor

Trade-offs

ChoiceWe gainWe lose
Move to cold earlyLower storage billMore risk of slow or costly reads
Move to cold lateSafer, fast readsA higher bill for longer
Age-based rulesSimple and predictableIgnores real usage, so some busy data may go cold
Access-based tieringFollows actual usageA monitoring fee, and less predictable cost
Keep everything hotFastest, simplestThe highest cost, growing with data
Archive tierThe cheapest storageRetrieval can take hours and costs the most

10Common Problems and Mistakes

Common mistakes

  1. Hot data in a cold tier. Retrieval fees and delays make everything worse and costlier.
  2. Moving first, measuring later. You discover the access pattern from the invoice.
  3. Forgetting minimum durations. Moving to a cold tier and deleting after a week still bills for the minimum.
  4. Millions of tiny files. Per-object and per-request fees swamp the savings.
  5. A job that scans old data. Reports, backups and analytics can read the entire cold tier.
  6. No way to find things. Without an index you must read cold data to see what it is.
  7. No restore test. Archived data that cannot be restored in time is useless in an emergency.

Things to watch

πŸ’ΈRetrieval charges
A sudden rise means something is reading cold data. Find it quickly.
⏳Restore delay
Some archive tiers need hours. Check that this fits your recovery needs.
πŸ”Moving back and forth
Data that bounces between tiers pays move fees each time.
πŸ“…Stale rules
Usage changes. Revisit rules every few months.

11Real-World Examples

☁️Object storage classes
Major clouds offer standard, infrequent-access and archive classes, with lifecycle rules and an access-based option.
πŸŽ₯Streaming and media
Popular titles stay on fast storage and near the edge. Rarely watched ones live on cheaper storage.
πŸ“ŠObservability
Hot, warm and cold tiers for logs and traces are a common setup in search and log systems.
πŸ₯Healthcare and finance
Records must be kept for years. Old ones go to archive storage.
πŸ’ΎBackups
Recent backups restore fast. Old ones are archived with longer restore times.
πŸ›’E-commerce
Recent orders stay in the database. Older ones are exported to cheap files.
πŸ“Note
Storage classes, prices and retrieval times change often. Check your provider's current documentation before you design around a number.
Mini case: 200 TB of photos
πŸ”₯Last 30 dayshot: about 15%
→↓rule
β˜€οΈ30 days to 1 yearwarm: about 30%
→↓rule
❄️Over 1 yearcold: about 55%
Hot Warm Cold
Most photos are old and rarely viewed, so most of the bytes can sit on cheap storage.

12Related Topics to Read Next

Object Storage→

Where storage classes and lifecycle rules usually live.

Block Storage→

The fast disk tier attached to a machine.

Numbers Every Engineer Should Know→

Why memory, SSD and disk are priced and timed so differently.

Data Archiving and TTL→

Deciding when data leaves the main database or expires.

Cache Eviction Policies→

A similar idea: keep what is used, drop what is not.

Data Lakes→

A common home for large, cheap, rarely read data.

CDN→

Keeps the hottest files close to users.

13Interview Questions with Short Answers

14Quick Revision Cheat-Sheet

  • βœ”Tiers: hot (fast, costly), warm, cold, archive (cheap, slow).
  • βœ”Rule: cheaper to keep means costlier and slower to read.
  • βœ”Goal: fast storage for recent, busy data. Cheap storage for old, quiet data.
  • βœ”How: lifecycle rules by age, or access-based tiering.
  • βœ”Cost = storage + retrieval + minimum duration + move fees.
  • βœ”Danger: busy data in a cold tier, or jobs that scan all the old data.
  • βœ”Do: measure access first, keep an index, test restores, review the bill.
  • βœ”One line: β€œStore each piece of data on the cheapest tier that still fits how often you read it.”
← Previous
Erasure Coding
Next β†’
RAID