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
| EBS | EFS | FSx | S3 | |
|---|---|---|---|---|
| Best for | Disk for one instance | Shared Linux file system | Specialised file systems | Object storage |
| Scaling | Provisioned size, up to 64 TiB per volume | Elastic, grows automatically | Provisioned capacity and throughput (tiering on some types) | Unlimited, no provisioning |
| Performance | Lowest latency; up to 256,000 IOPS per io2 volume | Low milliseconds; high aggregate throughput | Up to very high throughput (Lustre) | Milliseconds; very high aggregate throughput |
| Availability | One zone; snapshots for recovery | Multi-AZ (Regional) or One Zone | Multi-AZ options for Windows, ONTAP and OpenZFS | Multi-AZ for most classes |
| Cost | Per provisioned GB and performance | Per GB stored by class, plus throughput | Per GB and provisioned throughput | Per GB stored by class, plus requests and transfer |
Scaling and topology
Limits and constraints
| Item | Value | Context | Source |
|---|---|---|---|
| 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
| Situation | Choose | Why |
|---|---|---|
| A self-managed PostgreSQL on EC2. | EBS | Block storage with consistent low latency. |
| Twenty Linux web servers share uploaded images. | EFS | A shared NFS file system across zones. |
| Windows home directories with AD permissions. | FSx | FSx for Windows File Server speaks SMB and integrates with AD. |
| Ten years of backups and logs. | S3 | Cheapest 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
- Amazon EBS · Block storage volumes for EC2: durable, network-attached disks with SSD and HDD types, snapshots and encryption.
- Amazon EFS · A serverless, elastic NFS file system that many Linux instances, containers and functions can share at once.
- Amazon FSx · Fully managed file systems built on popular technologies: Windows File Server, Lustre, NetApp ONTAP and OpenZFS.
- Amazon S3 · Object storage for any amount of data, designed for eleven nines of durability, with storage classes, lifecycle rules and fine-grained access control.
Related
Courses and lessons
- Amazon EBS volumes and snapshots · AWS Solutions Architect – Associate (SAA-C03) · Members
- Shared file systems: Amazon EFS and the FSx family · AWS Solutions Architect – Associate (SAA-C03) · Members
Services, comparisons and patterns
- Amazon EBS · Service
- Amazon EFS · Service
- Amazon FSx · Service
- Amazon S3 · Service
Sources
Independent study material, not affiliated with or endorsed by Amazon Web Services.