1. Home
  2. The Data Engineering Show - Podcast

Sep 23, 2024

Why ”unscalable” SQL is suddenly back

Ryanne Dolan

39 min → 2:12

Overview

LinkedIn employee Ryan Dolan explains how SQL evolved from legacy technology into a modern standard that simplifies complex data pipelines and powers automated architectures.

3 things to know

The Resurgence of SQL

SQL, once deemed old and unscalable, has made a major comeback.

More

This is due to advancements in distributed systems and query optimizers that allow its declarative power to be layered on top of modern, cloud-scale infrastructure.

▶ Watch at 9:09

Dolan uses SQL to hide messy data pipelines at LinkedIn

Ryan Dolan explains that because technology stacks at large companies like LinkedIn are too evolved to unify, engineers build SQL layers to hide the complexity of older, multi-stage data pipelines.

More

At large companies like LinkedIn, the tech stack is too evolved and complex to be a single, unified system.

▶ Watch at 0:54

Hoptimator Project

An open-source, experimental framework from LinkedIn that embodies the consumer-driven philosophy.

More

It takes a simple ANSI SQL SELECT query and automatically generates and deploys the entire underlying data pipeline, including Flink jobs, Kafka topics, materializers, and security ACLs.

▶ Watch at 21:27

Also in this episode

Producer-Driven vs. Consumer-Driven Models

A key architectural shift is moving from a "producer-driven" model, where teams build and push data products, to a "consumer-driven" model.

More

In the latter, consumers declare their data needs (e.g., via a SQL query), and the system automatically orchestrates the infrastructure to deliver it.

▶ Watch at 28:02

The Role of Modern Tooling

Technologies like Apache Flink have proven that extremely complex stream processing and data transformations can be expressed in just a few lines of SQL, replacing what previously required extensive, custom-written procedural code (e.g., multi-stage Java jobs).

Quotes

“I think a big one, like I noticed this right away, almost day one when I came back and it absolutely shocked me that SQL was popular.”

▶ Watch at 4:03

“That's sort of like what I'm working on actually... is trying to sort of roll up all this complexity that's been human-made... and sort of rolling them up into abstractions that we can easily just express in SQL.”

▶ Watch at 17:14

“Hoptimator is an experiment... where we take literally just an ANSI SELECT query... and from that literal query, we can stand up Flink jobs, we can set up materializers.”

▶ Watch at 21:27

3 more quotes

“Yeah, so actually first off, I started at LinkedIn almost exactly 10 years ago, but I left and came back. So I'm one of those, you know, big tech boomerangs that everyone wants to be.”

▶ Watch at 0:54

“It all happened for a good reason. It all happened because databases reached an endpoint. They sucked. They just couldn't scale to cloud scale.”

▶ Watch at 9:09

“What you just alluded to is something I call producer-driven versus consumer-driven.”

▶ Watch at 28:02

Full summary

Episode Overview

  • Guest Ryan Dolan, a "boomerang" employee at LinkedIn, discusses the evolution of data engineering trends over the past decade.
  • The conversation centers on the surprising resurgence of SQL, tracing its journey from being considered legacy technology to becoming a modern standard for interacting with scalable data systems.
  • The discussion explores how large tech companies manage complexity by creating higher-level abstractions, using SQL to simplify intricate, manually-built data pipelines.
  • LinkedIn's experimental "Hoptimator" project is introduced as an example of a "consumer-driven" data architecture, where entire data pipelines are automatically generated from a single SQL query.

Key Concepts

  • The Resurgence of SQL: SQL, once deemed old and unscalable, has made a major comeback. This is due to advancements in distributed systems and query optimizers that allow its declarative power to be layered on top of modern, cloud-scale infrastructure.
  • Abstraction over Complexity: At large companies like LinkedIn, the tech stack is too evolved and complex to be a single, unified system. The focus is on "glue engineering" and building higher-level abstractions (often using SQL) to hide the complexity of legacy and multi-stage data pipelines.
  • The Role of Modern Tooling: Technologies like Apache Flink have proven that extremely complex stream processing and data transformations can be expressed in just a few lines of SQL, replacing what previously required extensive, custom-written procedural code (e.g., multi-stage Java jobs).
  • Producer-Driven vs. Consumer-Driven Models: A key architectural shift is moving from a "producer-driven" model, where teams build and push data products, to a "consumer-driven" model. In the latter, consumers declare their data needs (e.g., via a SQL query), and the system automatically orchestrates the infrastructure to deliver it.
  • Hoptimator Project: An open-source, experimental framework from LinkedIn that embodies the consumer-driven philosophy. It takes a simple ANSI SQL SELECT query and automatically generates and deploys the entire underlying data pipeline, including Flink jobs, Kafka topics, materializers, and security ACLs.

Quotes

  • At 0:54 - "Yeah, so actually first off, I started at LinkedIn almost exactly 10 years ago, but I left and came back. So I'm one of those, you know, big tech boomerangs that everyone wants to be." - Ryan Dolan explains his history with LinkedIn, giving him a long-term perspective on industry trends.
  • At 4:03 - "I think a big one, like I noticed this right away, almost day one when I came back and it absolutely shocked me that SQL was popular." - Ryan Dolan shares his surprise at the resurgence of SQL after years of the industry focusing on NoSQL.
  • At 9:09 - "It all happened for a good reason. It all happened because databases reached an endpoint. They sucked. They just couldn't scale to cloud scale." - Host Eldad Farkas provides context for why the industry initially moved away from traditional databases to NoSQL solutions.
  • At 17:14 - "That's sort of like what I'm working on actually... is trying to sort of roll up all this complexity that's been human-made... and sort of rolling them up into abstractions that we can easily just express in SQL." - Describing his focus on simplifying data engineering through SQL abstractions.
  • At 21:27 - "Hoptimator is an experiment... where we take literally just an ANSI SELECT query... and from that literal query, we can stand up Flink jobs, we can set up materializers." - Introducing the core concept of the Hoptimator project: generating entire data pipelines from a single SQL query.
  • At 28:02 - "What you just alluded to is something I call producer-driven versus consumer-driven." - Introducing the architectural paradigm shift from producers pushing data to consumers pulling data by defining their needs.

Takeaways

  • Prioritize declarative interfaces like SQL over procedural code for data operations. This simplifies development, reduces maintenance, and aligns with the industry trend towards AI-driven code generation, where high-level instructions are more valuable than low-level implementation details.
  • When dealing with complex, evolving systems, focus on building robust abstractions that hide the underlying complexity rather than attempting a complete, monolithic rewrite. This allows for incremental improvement and simplifies the user experience.
  • Adopt a "consumer-driven" mindset for data architecture. Empower users to declare the data they need, and build automation that provisions the necessary infrastructure on-demand. This prevents the proliferation of redundant, intermediate data pipelines and reduces engineering overhead.

Watch the full episode 39 min

Read along with the audio summary

Ryan Dolan started at LinkedIn almost ten years ago, left, and returned as a boomerang employee, only to be absolutely shocked on day one that a database language once deemed old and unscalable was popular again. In this episode from September 23, 2024, host Eldad Farkas talks with Dolan about how data engineering has evolved over the past decade. By the end, you will learn how to simplify complex data systems by letting users declare what they need.

Why an old database language is suddenly running modern cloud systems.

After years of the industry focusing on NoSQL, SQL has made a major comeback. As Farkas points out, the industry initially moved away from traditional databases for a good reason: they reached an endpoint and could not scale to cloud scale. Today, advancements in distributed systems and query optimizers allow the declarative power of SQL to be layered right on top of modern, cloud-scale infrastructure. You can prioritize declarative interfaces like SQL over procedural code in your own data operations to simplify development, reduce maintenance, and align with the trend toward AI-driven code generation.

This newfound power of SQL makes it the main tool for solving a massive problem inside major tech companies.

How to tame a sprawling tech stack without rewriting it from scratch.

At large companies like LinkedIn, the technology stack is far too evolved and complex to ever be a single, unified system. Instead of starting over, Dolan says his work focuses on glue engineering, which means rolling up all of that human-made complexity from legacy and multi-stage data pipelines into higher-level abstractions that can be easily expressed in SQL. Think of it like putting a simple universal remote control over a tangled mess of wires and older machines, hiding the clutter so it is easy to use. When you are dealing with complex, evolving systems, focus on building robust abstractions that hide the underlying complexity rather than attempting a complete, monolithic rewrite.

Trading sprawling custom code for just a few lines of text.

What used to require extensive, custom-written procedural code, such as multi-stage Java jobs, can now be expressed in just a few lines of SQL. Modern tooling like Apache Flink has proven that even extremely complex stream processing and data transformations can be handled this way.

That simplicity opens the door to a completely different way of organizing data teams.

The architectural shift that lets data users pull exactly what they need.

Dolan highlights a major shift away from what he calls a producer-driven model, where engineering teams build and push data products out to the company. In its place is a consumer-driven model, where the people who need the data simply declare their needs, such as through a SQL query, and the system automatically orchestrates the infrastructure to deliver it. You can adopt this consumer-driven mindset by empowering your users to declare the data they need and building automation to provision the infrastructure on demand, which prevents redundant pipelines and cuts engineering overhead.

To see what this consumer-driven philosophy looks like in practice, look at how a single query can build an entire data pipeline automatically.

At LinkedIn, an open-source, experimental framework called Hoptimator puts this exact idea to work. Dolan explains that Hoptimator takes a literal, standard ANSI SQL SELECT query and automatically generates and deploys the entire underlying data pipeline. From that one simple query, the framework stands up Flink jobs, Kafka topics, materializers, and security ACLs.

The big lesson from a decade of data engineering is to stop writing low-level instructions for every step of a pipeline and start using high-level, declarative abstractions that hide the mess underneath. Let your users write a simple query to ask for the data they want, and let automation build the rest.

More from The Data Engineering Show - Podcast

Related Episodes