Storage
Every database, file and data lake ends up on some kind of storage, and there are three ways to address it. Block storage exposes a raw disk of numbered blocks that the operating system formats with a file system. File storage exposes named files in folders over a network protocol (NFS, SMB). Object storage exposes whole objects (a file plus metadata) by key over HTTP, as Amazon S3 does. The interface decides what each one is good at.
"Write 4 KB at block 1,040"
A raw disk attached to one machine. Lowest latency, in-place updates. Where databases and VM disks live.
"Open /reports/q3.csv"
A shared file system with folders, permissions and locks, mounted by many machines at once.
"GET bucket/key"
Whole objects over HTTP in a flat namespace. Practically unlimited scale and the cheapest per GB. The base of every data lake.
Side by side
| Block | File | Object | |
|---|---|---|---|
| Unit | Fixed-size block (4 KiB typical) | File in a directory tree | Object (bytes + metadata) under a key |
| Access | OS block device (NVMe, iSCSI) plus a local file system | NFS / SMB mount | HTTP API (PUT, GET, LIST, DELETE) |
| Update | In place, any byte range | In place | Replace the whole object (no partial overwrite) |
| Shared by | Usually one machine at a time | Many machines | Any number of clients, anywhere |
| Latency | Sub-millisecond | Around a millisecond and up | Tens of milliseconds to first byte |
| Scale | One volume up to tens of TB | Up to petabytes, with care | Exabytes; no capacity planning |
| Cost (cloud, rough) | Higher; you pay for provisioned size | Highest per GB | Lowest per GB; pay for what you store plus requests |
| Typical use | Databases, VM boot disks, Kafka logs | Shared home dirs, legacy apps, ML training data | Data lakes, backups, logs, media, Parquet/Iceberg tables |
What this means for data engineers
- Operational databases (PostgreSQL, Kafka brokers) run on block storage, because they update pages in place and fsync often.
- Analytical data lives on object storage as Parquet or ORC files, organized by table formats such as Iceberg or Delta Lake. Compute engines (Spark, Trino, Snowflake) read it over the network; storage and compute scale and bill separately. See Data Lake and Data Lakehouse.
- HDFS, the Hadoop Distributed File System, is a distributed file system that most new platforms have replaced with object storage.
Pages in this section
- Block Storage: how a write travels from your application through the file system to a network volume, and when to use EBS, Ceph RBD or local NVMe.
- Object Storage: what happens on a
PUTand aGETto S3, consistency, multipart uploads, and why object stores fit data lakes.
Learning Resources
- Designing Data-Intensive Applications (2nd ed.), Martin Kleppmann and Chris Riccomini: storage and retrieval chapter
- AWS: Block vs file vs object storage
- Data Storage Types: File, Block and Object: video
- AWS Storage: EBS vs. S3 vs. EFS: video