AWS · Comparison

EBS vs EFS vs FSx vs S3

Which kind of storage does my workload need: block, shared file or object storage?

Decision summary

Start from how the application reads and writes data:

  • A disk for one instance (boot volume, self-managed database): EBS.
  • A shared file system for many Linux clients with POSIX semantics: EFS.
  • Windows file shares, HPC throughput, NetApp or ZFS features: FSx (Windows File Server, Lustre, NetApp ONTAP, OpenZFS).
  • Files or data accessed over HTTP APIs at any scale, backups, data lakes, static content: S3.

Best fit for each option

EBS

Block storage for a single EC2 instance: boot volumes, databases, low-latency random I/O.

EFS

Shared NFS file system for many Linux instances, containers and functions, across zones, without capacity planning.

FSx

Windows shares with Active Directory, HPC with Lustre, or NetApp and ZFS features and protocols.

S3

Objects of any size over HTTP: backups, media, logs, data lakes, static websites.

Side by side

 EBSEFSFSxS3
Best forDisk for one instanceShared Linux file systemSpecialised file systemsObject storage
ScalingProvisioned size, up to 64 TiB per volumeElastic, grows automaticallyProvisioned capacity and throughput (tiering on some types)Unlimited, no provisioning
PerformanceLowest latency; up to 256,000 IOPS per io2 volumeLow milliseconds; high aggregate throughputUp to very high throughput (Lustre)Milliseconds; very high aggregate throughput
AvailabilityOne zone; snapshots for recoveryMulti-AZ (Regional) or One ZoneMulti-AZ options for Windows, ONTAP and OpenZFSMulti-AZ for most classes
CostPer provisioned GB and performancePer GB stored by class, plus throughputPer GB and provisioned throughputPer GB stored by class, plus requests and transfer

Scaling and topology

EBS: blockOne EC2 instanceVolumeone AZEFS / FSx: shared filesEC2EC2EC2File systemNFS / SMB, many AZsS3: objectsAny client, anywhereBucketHTTP API, Region-widePUT / GET
Block storage for one server, shared file systems for many, object storage over an API

Limits and constraints

ItemValueContextSource
io2 Block Express maximum IOPS per volume 256,000 Source
checked
EFS Elastic throughput per file system (reads) Up to 20–60 GiBps Depends on the Region. Source
checked

Quotas and limits change. Check the linked source before designing around a number.

When to avoid each option

EBS

  • Sharing data between many instances.
  • Very large, cheap object storage.

EFS

  • Windows (SMB) workloads.
  • Highest-throughput HPC scratch space.

FSx

  • Simple Linux sharing, where EFS is serverless and simpler.

S3

  • Applications that need a mounted file system or a block device.

Example scenarios

SituationChooseWhy
A self-managed PostgreSQL on EC2.EBSBlock storage with consistent low latency.
Twenty Linux web servers share uploaded images.EFSA shared NFS file system across zones.
Windows home directories with AD permissions.FSxFSx for Windows File Server speaks SMB and integrates with AD.
Ten years of backups and logs.S3Cheapest durable storage with lifecycle to Glacier classes.

Exam cues

  • Block, one instance: EBS. Shared Linux: EFS. Windows shares: FSx for Windows. HPC: FSx for Lustre. Objects: S3.

Service pages

Related

Courses and lessons

Services, comparisons and patterns

Sources

Independent study material, not affiliated with or endorsed by Amazon Web Services.

Last reviewed · By the ByteCamel team · How we write content

Was this page helpful?

Report a mistake