Skip to main content

Command Palette

Search for a command to run...

Comparing EBS vs Instance Store

Updated
2 min readView as Markdown
Comparing EBS vs Instance Store

Definition

Amazon EBS (Elastic Block Storage)

EBS is a network-attached, persistent block storage service designed to be used with EC2 instances.

  • Volumes persist independently of the EC2 instance

  • Can be attached, detached, and reattached to instances

EBS is commonly used for:

  • Boot volumes

  • Databases

  • Long-lived application data

Instance Store

Instance Store is ephemeral, physically attached storage that comes with certain EC2 instance types.

  • Storage is local to the host machine

  • Provides extremely high I/O performance

  • Data is lost when instance stops, terminates, or fails

Instance Store is commonly used for:

  • Temporary data

  • Caches

  • Buffers

Trade-offs

Choose EBS for persistence and Instance Store for performance

AspectEBSInstance Store
Storage typeNetwork attachedLocal to host
PersistencePersistentEphemeral
DurabilityReplicated within AZNone
LatencyLow millisecondsMicroseconds
Max IOPSHighVery high
Data survivalSurvives instance stopLost on stop/terminate
Cost modelPay per GB / IOPSIncluded with instance

Scenarios

ScenarioUse EBSUse Instance Store
Data must persist✅ Yes❌ No
Ultra-low latency required❌ No✅ Yes
Highest possible I/O❌ No✅ Yes
Backups / snapshots needed✅ Yes❌ No
Instance may stop / start✅ Yes❌ No
Temporary or reproducible data❌ No✅ Yes
Databases✅ Yes❌ No
Caches / scratch space❌ No✅ Yes