Data Pipeline 101: A definitive guide to data storage
Data Pipeline 101: A definitive guide to data storage
From 0s and 1s to the table you see
Vu Trinh∙ Paid4Share
To sustain my work, I’ve opened up paid membership. If you find value in what I do, I’d really appreciate it if you considered upgrading; it helps me keep this work going :d
With only $7/month (billed annually), you can access all the materials you need to grow from junior → senior DE.
250+ deep-dive data engineering articles
practice-spark: 65 LeetCode-style problems to practice Spark SQL/DataFrame
learn-spark/dbt/airflow: CLI tools to master Spark/dbt/Airflow
If you’re a student with an education email, use this 50% ANNUAL DISCOUNT
If you’re a Vietnamese user, please DM me for an upgrade due to payment issues. As compensation for the inconvenience, you’ll get 50% OFF the annual plan.

Intro
Continuing the unofficial 101 series, today we will learn/relearn data storage in data engineering.
—
You write down the things you need to plan before building any data pipeline or platform; how the data will be processed will not be at the top of the list.
“How data is persisted” will.
The 0s and 1s must land somewhere so the CPU can load and process them.
At any stage of the data's life cycle, it lives in one of two places: disk or memory. The thing is, we (data engineers) don’t just decide whether it’s stored on disk or in memory. It’s a spectrum of storage abstractions, and each offers many choices.
-
The storage media: RAM, HDD, SSD, or object storage
-
File format: CSV, JSON, or Parquet.
-
Table format: Relying on cloud data warehouses or self-managing with an open-source project like Iceberg.
In this article, join me as we discuss these three abstractions; each will include a guide (based on my experience) to help us make better decisions in the future.
Storage media
Process it in Spark or show it in a dashboard; all kinds of data-related operations rely on data being physically persisted somewhere.

It’s memory or disk.
But data engineers usually see disk exist in more forms: HDD, SSD, and object storage.
The rough time to fetch a small piece of data from those storage media is:

-
RAM: ~100 ns
-
SSD: ~150 µs (random 4KB read)
-
HDD: ~10 ms (one disk seek)
-
Object storage (S3): ~100–200 ms (requires moving data over the network)
Hmm, ns or µs are really hard for us to feel; let’s put them in a “human-feel” scale:
Let’s say one RAM read took 1 second:
-
An SSD read would take 25 minutes
-
An HDD seek would take about 28 hours
-
An S3 request would take 12 days or more (enough time for a vacation :d)
Note: These numbers come from the well-known list by Jeff Dean and Peter Norvig, from around 2012. It’s sure that hardware have been getting faster since then but I believe the relative difference between these storage media will not change much.
—
I used to wonder: “Why not put everything on RAM”
The rule of thumb is that the slower the medium is at getting a piece of the data, the cheaper it is.
To sustain my work, I’ve opened up paid membership. If you find value in what I do, I’d really appreciate it if you considered upgrading; it helps me keep this work going :d
With only $7/month (billed annually), you can access all the materials you need to grow from junior → senior DE.
250+ deep-dive data engineering articles
practice-spark: 65 LeetCode-style problems to practice Spark SQL/DataFrame
learn-spark/dbt/airflow: CLI tools to master Spark/dbt/Airflow
If you’re a student with an education email, use this 50% ANNUAL DISCOUNT
If you’re a Vietnamese user, please DM me for an upgrade due to payment issues. As compensation for the inconvenience, you’ll get 50% OFF the annual plan.


