What is the difference between block, file and object storage?
MediumConceptStorage & CDNs
Answer
They differ in how data is addressed. Block storage exposes raw fixed-size blocks to an operating system, file storage organises data as a hierarchy of files and folders shared over a network, and object storage keeps whole objects with metadata in a flat namespace accessed by key over HTTP.
- Block (for example, Amazon EBS): low latency and in-place updates; used for database and virtual machine disks, typically attached to one machine.
- File (NFS, Amazon EFS): shared access with familiar paths and locking; used for shared content and legacy applications.
- Object (Amazon S3, Google Cloud Storage): practically unlimited scale, high durability and low cost; objects are replaced rather than edited in place.
- Media, backups and data lakes usually belong in object storage.