medium.com 10 min read Original Source

9 technologies that changed data engineering forever

To sustain my writing, I’ve put this article behind a paywall. If you have a Medium membership, I’d really appreciate it. If you prefer to read it for FREE, please visit here and subscribe to my newsletter. Either way, you’ll help keep my work going.

Intro

Data engineering is the development, implementation, and maintenance of systems and processes that take in raw data and produce high-quality, consistent information that supports downstream use cases, such as analysis and machine learning

— Joe Reis, Matt Housley

“Systems” and “processes” are a lot of things. How do you store the data? How do you process the data? How do you “glue” transform steps together?

Thankfully, we don’t develop them from scratch most of the time. There are technologies, tools, or frameworks. Some of them not only help, but change the field.

In this article, I will discuss 9 technologies (in my opinion) that have changed data engineering forever.

The listing order below doesn’t have any particular meaning

Pandas

You might be surprised by this.

In early 2008, Wes McKinney started developing Pandas to bring the “table processing” capability from R to Python.

Pandas is a versatile data wrangling and processing tool. We have all used it (or read the code) at least once.

I think Pandas is one of the biggest contributors to making Python a dominant programming language for data professionals.

However, its impact on our field doesn’t stop at data wrangling; Pandas paved the way for the DataFrame API, one of the most widely used data-processing interfaces.

DataFrame is simply a table you can program against.

Just like you can manipulate a table with SQL in a database, a DataFrame lets you do that with imperative languages, mostly Python in our field.

Parquet

In the past, data was usually stored in the row-wise format like CSV. All fields of a record are written to disk next to each other. Then comes the next record.

When reading the data, you must bring all fields from a record into memory and the CPU cache together.

This doesn’t work well for analytical workloads where, most of the time, we select a few columns, read millions of records, and do some aggregation; bringing all 15 fields when we need only 3 fields is wasted.

So people start thinking about columnar format: data from a column is stored together. When reading, it loads only the required columns.

When mentioning columnar format in this article, I want to refer to hybrid format where dataset is divided horizontally first, the is stored in column in each group.

Also, data in the same column tends to be more homogeneous and repetitive so that it can be encoded/compressed more efficiently than in a row-wise format. This matters because analytical workloads usually require historical data; compression helps reduce storage costs.

—
The idea of storing columns has been around for a while, but Parquet made it “public” and widely adopted.

Before Parquet, columnar formats were the private game of database vendors.

Since its introduction in 2012, Parquet has become the de facto format in our field. It’s impossible to work in data engineering without knowing or using Parquet.

If a company builds a data infrastructure, Parquet must be part of it.

It is the go-to file format in most cases, thanks to its column-oriented design, its ability to store complex data, and the rich metadata that self-describes the contents.

Parquet is also the motivation for new file formats such as Lance or Vortex, which promise to do better than Parquet with modern workloads (e.g., AI)

However, I don’t think Parquet will be replaced anytime soon. It has been the backbone of our data infrastructure and will likely remain so for many years to come.

Spark

Spark really saved us.

Before Spark, we used MapReduce to process large amounts of data. But MapReduce has two problems:

  • Exchange data via disks: it’s extremely reliable (if a machine dies, the disk is still there), but it adds latency to the overall job.
  • The MapReduce paradigm is rigid: if you want to use MapReduce for use cases A, B, and C, you have to “set” A, B, and C in MapReduce tasks.

Spark was developed to address MapReduce’s limitations directly.

It processes data in memory and has a friendlier interface: first the RDD, then SQL and the DataFrame; no MapReduce at all.

—

For Spark’s adoption, we don’t have to say much.

Since being open-sourced in 2010, Spark’s adoption has only increased. It has become the backbone of many companies, including nearly all the big techs.

It’s versatile: one engine but can do many things: batch, stream, ML,…

It has simple interfaces: DataFrame, SQL

It’s reliable

It’s efficient

Spark is the king of distributed processing frameworks

Airflow

Apache Airflow was created in 2014 at Airbnb when the company was dealing with massive and increasingly complex data workflows.

At the time, existing orchestration tools were either too rigid, lacked scalability, or couldn’t accommodate the dynamic nature of data pipelines.

To address this challenge, Maxime Beauchemin, a data engineer at Airbnb, spearheaded the creation of Airflow.

—

When you think about orchestration, what comes to mind first? For me, it’s DAGs and tasks.

Airflow brings those concepts to the table.

Airflow brings the other things that we usually take for granted:

  • A simple interface to “glue” things together and schedule them.

task 2
task_2(task_1())” data-toggle-ms=”1200″ aria-label=”Copy code” data-nosnippet=”” class=”code-copy-btn absolute right-3 top-3 size-8 p-1.5 flex items-center justify-center bg-black/50 text-white rounded-md transition-colors duration-200 cursor-pointer hover:bg-black/70″>

# define a dag example in Airflo
@dag(schedule="0 6 * * *")
def dag_1():
  @task
  def task_1():
      ...
  @task
  def task_2():
      ...
  # task 1 -> task 2
  task_2(task_1())
# define a dag example in Airflo
@dag(schedule="0 6 * * *")
def dag_1():
  @task
  def task_1():
      ...
  @task
  def task_2():
      ...
  # task 1 -> task 2
  task_2(task_1())
  • In theory, you can schedule any task in Airflow.
  • The UI interface for observability
  • The ability to do backfill
  • …

Before Airflow, data engineers had to do a lot oflot of things on their own or rely on differenton different tools to achieve the above.

—

Unlike Spark’s dominant position in distributed data processing, Airflow faces competition from others such as Dagster and Prefect, which I believe were also motivated or inspired by Airflow.

However, Airflow still has a strong position in the orchestration space; I don’t think Airflow will be replaced anytime soon.

Object Storage

Object storage not only changed the way we do data engineering, but it also changed the whole software industry.

Extremely high durability, can store any data, cheap, and high-throughput.

Since its introduction (I believe AWS S3 was the first), object storage has become one of the most used cloud services; whether it’s AWS, Google Cloud, Azure, or Cloudflare, it will always be at the top.

—

In our field, object storage has directly replaced HDFS, the Hadoop storage solution that manages data across multiple servers.

We’ve moved from manually tuning and operating HDFS to renting object storage.

More versatile, reliable, and high-performance, with zero management overhead.

Nearly ALL companies use object storage for their data lake and lakehouse, including big techs. I would be very surprised if a company said it doesn’t use object storage at all in its data infrastructure.

Cloud data warehouse

Before cloud data warehouses like Snowflake, BigQuery, Databricks, and Redshift (all introduced in the early 2010s), users didn’t have pay-as-you-go data warehouse options.

—

Data warehouse systems were expensive in both storage and processing.

Companies had to set up their own infrastructure, buy servers, and purchase data warehouse licenses. Storage disks weren’t cheap, and networks weren’t as fast as today. Compute and storage were tightly coupled, making system scaling a significant challenge.

—

Things have changed.

Cloud data warehouses have made the solution much more accessible. Pay-as-you-go pricing models, cheaper storage, faster networks, and columnar storage/processing are now the standard.

Cost-efficient, high-performance data warehouse solutions have been commoditized.

Any company can have its own data warehouse system up and running in just a few clicks.

—

The boom of cloud data warehouse solutions also results in two big changes in how we do data engineering:

  • ETL → ELT: People start to think, “Do I have to transform the data before loading it into the warehouse?” Just dump the raw data and let processing happen later; storage is cheap, and these warehouse solutions can handle large volumes of data.
  • SQL for transformation: Most transformation logic can now be handled within the data warehouse using SQL, making it more accessible to users like data analysts and data scientists. dbt is evidence of this shift.

Arrow

Arrow isn’t as visible as the others in this list.

It changes two things, and they’re very big:

  • A standard spec to store data in memory.
  • Performant mechanisms to move and share data

—

Before Arrow, no standard defined how a data processing system should present data in memory. This makes data exchange between systems expensive, since one must serialize the data into a shared format, and the other must deserialize it to see the content.

Arrow solves these problems by introducing a standard that keeps data in-memory in a columnar format. (As you know, analytical workloads love this)

The goal of Arrow is to provide a robust and performant in-memory representation so more and more systems adopt it. To some extent, most systems will use Arrow, and when they do, data exchange between them will be easier because they don’t need to serialize/deserialize the data.

Data sharing will be cheaper and faster.

And we reached that point.

Nearly every data system you touch today supports or natively speaks Arrow: Pandas, Polars, BigQuery, Snowflake, Databricks, Trino, Spark, Dremio, DuckDB, ClickHouse…

—

You rarely use Arrow directly, so you don’t feel Arrow’s importance.

But trust me, without it, the world would be very different: inconsistent performance across different in-memory formats and data-exchange overhead could easily overwhelm the actual data processing.

Iceberg

We relied on the two-tier architecture for a very long time:

  • Data Lake: Raw data.
  • Data Warehouse: Processed, high-quality, and ready-to-serve data.

We tried using only one, but it didn’t work.

The lake lacks data warehouse capabilities, such as schema management or ACID guarantees.

The data warehouse also lacks the lake’s flexibility to store all kinds of data.

—

Things changed when the wave of open table formats began.

A metadata layer on top of the lake brings data warehouse capabilities. This metadata provides the table abstraction for the data files, ensures ACID, and offers other functions such as schema management or time travel.

In other words: make the lake behave like the data warehouse storage layer.

But it’s open.

—

Open table formats change the way we build data architecture. We have two choices now:

  • Let vendors handle everything for us: it’s convenient, but it locks us in.
  • We handle the storage layer completely: with the table format, we can turn the lake into warehouse storage and bring any preferred query engines. More open, but more things to manage.

It makes the data warehouse solution not the vendor’s exclusive game. Before Iceberg, Delta Lake, or Hudi, no option could turn your lake into something as robust as the vendor did with their warehouse storage; Hive was not good enough.

But with Iceberg, Delta Lake, or Hudi, the gap is close.

—

The open table format itself is game-changing.

But if I have to choose one format to represent it, it’s Iceberg.

This is because Iceberg is truly community-driven (as of now). The community decides what to implement next.

And they’re doing very well: any data vendor or open-source project prioritizes supporting Iceberg given its extremely wide adoption.

Iceberg has been evolving non-stop to adapt to user needs. I see a future where Iceberg continues to dominate.

DuckDB

Unlike the technologies we’ve discussed so far, I’m not sure about putting DuckDB on this list, since its game-changing factor can’t compare to the others.

However, I still add DuckDB here thanks to its unique vision.

—

At that time, OLAP systems had a lot of options:

  • Open source: Trino, ClickHouse
  • Cloud vendors: BigQuery, Snowflake, Redshift, or Databricks

All of these share the same vision: the data is gonna be big.

But DuckDB’s creator doesn’t agree: small- to medium-sized data is what’s actually dominant.

So they created DuckDB, a lightweight, embedded OLAP system with state-of-the-art optimization techniques under the hood. Quick development iterations and its extension system let DuckDB adapt to new use cases very fast.

DuckDB runs like a library on a single server, with a one-line setup command.

The market didn’t have anything like that; the closest one is SQLite, but it’s for OLTP.

DuckDB is unique, and it unlocks a lot of use cases:

  • If it’s big, go with BigQuery or Snowflake; if it’s not, a single server with DuckDB is enough
  • High-performance alternative to data-wrangling tools such as Pandas.
  • It can live inside the application backend to provide user-facing analytics from OLTP data.
  • …

DuckDB doesn’t just give us more options; it also forces other tools to think more about the local development experience, which DuckDB does very well.

Outro

An honorable mention is dbt. I don’t put dbt on the list because, for me, dbt is more of a consequence (of ELT) than a standalone innovation.

However, its impact is undeniable; it has changed the way we use SQL for transformation.

—

Thank you for reading this far; see you in my next articles.