Skip to main content

03. ๐Ÿ’พ EC2 Instance Store

The network attached drive EBS have a latency issue, it's goood but limited in perfomance.

The EC2 Instance Store provides temporary block-level storage that is physically attached to the host server running your EC2 instance. It delivers very high I/O performance and low latency, making it ideal for workloads that require fast, transient data access.


FeatureDescription
TypeEphemeral (temporary) block storage
Attached ToPhysical host server hardware
PerformanceExtremely high I/O throughput
PersistenceLost when instance stops, terminates, or host fails
Use CasesCaching, buffers, temporary data, scratch space

โš™๏ธ How It Worksโ€‹

When you launch a specific EC2 instance type (like the I3, I4i, or D2 families),
AWS attaches Instance Store volumes that reside on disks physically connected to the host computer.

Unlike EBS (Elastic Block Store), which is network-attached and persistent,
the Instance Store is local to the machine โ€” providing much faster disk performance.

โš ๏ธ Important: Data on Instance Store is lost if:

  • The instance stops or terminates
  • The underlying hardware fails

๐Ÿš€ Performanceโ€‹

Storage TypeExample InstanceRead IOPSWrite IOPS
Instance Store (I3)i3.16xlarge3.3 million1.4 million
EBS (gp2)General Purpose SSD~32,000~32,000

As seen above, Instance Store provides magnitudes higher performance than EBS volumes.


๐Ÿง  Use Casesโ€‹

ScenarioWhy Instance Store Works Best
Cache / Buffer storageHigh-speed, temporary data access
Scratch / Temp spaceShort-lived data used during processing
High-performance DB cachingFast reads/writes without persistence need
Big data / analytics workloadsFast local read/write operations

โš ๏ธ Limitationsโ€‹

  • โŒ Data is not persistent (lost on stop/termination)
  • โŒ Cannot be detached or reattached to another instance
  • โš ๏ธ You are responsible for backups and data replication if needed
  • ๐Ÿ“ฆ Not available on all instance types

๐Ÿงพ Summaryโ€‹

FeatureInstance StoreEBS Volume
Storage TypeLocal physical disksNetwork-attached disks
PerformanceExtremely highHigh (depends on type)
PersistenceEphemeralPersistent
Backup ResponsibilityUser-managedAWS-managed (snapshots)
Typical Use CaseCache, temp data, scratch spaceLong-term data storage

๐Ÿง  Key Exam Tipโ€‹

Whenever you see:

"High-performance, low-latency storage" or "ephemeral storage attached to EC2"

โžก๏ธ Think EC2 Instance Store โ€” not EBS.