Skip to content
EngineeringAll explainers

What is a data pipeline: stages, patterns, and failure modes

Data moves through several distinct stages on its way from a source to wherever it gets used, picking up structure along the way: the stages of a data pipeline, what separates ETL from ELT, batch versus streaming, and where a pipeline stops producing numbers anyone can trust.

Published: Updated: Reading time: 7 min
On this page

A data pipeline is a series of automated steps that moves data from the system where it's created to the system or dashboard where someone uses it, reshaping the data on the way so it lands in a form the destination can use. It runs on a schedule or continuously, without a person moving the data by hand.

You mostly notice pipelines through what depends on them. A retailer's sales dashboard, a fraud model retrained overnight, the numbers finance uses to close the month: each reads data that already passed through a pipeline, usually more than one stitched together. The dashboard is expected to have yesterday's numbers on Monday morning, and the pipeline behind it gets attention only once that stops being true.

Data pipeline architecture: the stages

Most pipelines share the same basic data pipeline architecture, even when the tooling looks nothing alike: three stages the data actually passes through, plus an orchestration layer that runs them. IBM's overview of data pipeline architecture draws the same line, treating orchestration and monitoring as a layer around the data path rather than a step in it.

Ingestion reads from source systems: application databases (often via change data capture mechanisms like PostgreSQL logical replication), third-party APIs, event streams, files someone still exports by hand. It's the same layer a system integration project connects, or an API integration pulls from, but a pipeline's ingestion is usually read-only, aimed at analysis rather than at triggering another system's process. Picking a managed ingestion tool is its own decision; the Airbyte vs Fivetran comparison covers two common options.

Transformation cleans, joins, and reshapes raw data into something usable: fixing types, standardizing units, folding a customer ID that looks different in every source system into one value. Whether this happens before or after the data lands is the ETL vs ELT question, covered next.

Storage and serving is where reshaped data ends up and how it gets used: a warehouse table a BI tool queries, a feature store an application reads, an API another team calls. A lakehouse is mostly this stage changing shape: cheap object storage plus a table format such as Iceberg or Delta Lake, which adds the transactional guarantees a warehouse always had while keeping a data lake's low storage cost.

Orchestration sits over all three and never touches the data itself. A scheduler such as the open source Apache Airflow decides what runs when, in what order, and what happens on failure, whether that's a retry or halting everything downstream before a bad batch spreads. If you're choosing an orchestrator, see Temporal vs Airflow.

ETL vs ELT: where the transformation runs

ETL extracts data from a source, transforms it into its final shape, then loads the result into the destination. ELT flips the last two steps: load the raw data first, transform it inside the destination afterward.

ETLELT
When transformation runsBefore loadingAfter loading
Where it runsA separate processing stepInside the warehouse or lakehouse
Raw data kept in destinationNo, only the cleaned resultYes
Typical fitData that must be filtered before storage, awkward source formatsAnalytics on a warehouse with cheap compute

Cheap warehouse and lakehouse compute is what pushed ELT to the front. Landing raw data first means transformation runs as SQL inside the destination, often through a tool such as dbt, and can change without touching ingestion at all. In practice that's the big win: a broken metric definition gets fixed downstream, with nothing re-extracted from the source.

ETL still fits when raw data can't legally land anywhere unfiltered (a compliance scrub of personal data before storage, for instance), or when a source can only export in a shape the destination can't take directly. Most data teams end up running pipelines both ways rather than standardizing on one pattern.

Batch vs streaming pipelines

Batch runs a pipeline on a schedule: hourly, nightly, once a week, transforming a chunk of data each time it fires. It's cheaper and easier to reason about, since a failed run just restarts from a known point, and it fits anything that doesn't need to be current to the minute, like a monthly finance report or a model retrained overnight on yesterday's data.

Streaming processes each event as it arrives, instead of waiting for a scheduled run. A fraud check on a live transaction, or an incident dashboard an on-call engineer is watching, loses most of its value once the answer is an hour old. A distributed event streaming platform such as Apache Kafka carries the events; a stream processor transforms them as they pass through rather than after they've landed. It's the same event flow that event-driven architecture builds applications around.

Streaming costs more than it first looks. A batch job runs for minutes and stops billing; a streaming pipeline stays up continuously and has to handle events arriving late or out of order without corrupting a result that already looked done. Teams that need even one metric live often end up running both: streaming for the few metrics that justify it, batch for everything else.

Common data pipeline failure modes

A broken pipeline usually keeps running. The job finishes, the status goes green, and the numbers are wrong. These four causes come up again and again.

  • Schema drift nobody caught. A source renames a field or changes its type, the pipeline keeps running without erroring, and the new field lands as null or gets silently truncated. The mistake surfaces weeks later, in a report that looks slightly off.
  • No data quality checks. Nothing validates row counts, null rates, or value ranges between stages, so a partial extract from a source outage reaches a dashboard looking like an ordinary day.
  • Backfills that double-count. Re-running a pipeline over a past date range to fix bad data, without deleting or overwriting the original run first, appends a second copy instead of replacing it, inflating every downstream total for that period.
  • Retries that aren't idempotent. A step fails partway through, after writing some of its output, and an orchestrator retries it automatically. A step that can't detect what it already wrote duplicates or corrupts data while the job status still reports success.

When a data pipeline needs real engineering

A pipeline pulling one dataset into one dashboard is small enough for whoever needs the report to build and maintain alone, in a script or a scheduled query. Three things usually end that arrangement.

More sources. Each new system brings its own schema and its own habit of renaming a field without telling anyone, and as the count grows, keeping every downstream job correct stops being an afternoon fix.

Sensitive data. A transformation step can copy a customer's email or a patient ID into a table nobody classified as sensitive, and without column-level lineage it's hard to trace where that value went or who can query it.

Higher stakes. A dashboard nobody checks closely is a low-stakes place for a bug to hide. A pricing model or a number the board reads every quarter isn't, and at that point the pipeline needs tests, monitoring, and an owner, like any other production code.

That work usually falls to the same custom software development or product development team already building everything else around it. The exception is a pipeline feeding a retrieval-augmented generation system rather than a dashboard: that becomes AI integration services work.

Frequently asked questions

  • A set of automated steps that moves data from where it's collected to where someone uses it, cleaning or reshaping it along the way. It runs on its own, on a schedule or continuously, so nobody has to copy data between systems by hand. The data path has three stages (ingestion, transformation, storage and serving), and an orchestration layer runs them in the right order.

  • No. ETL and ELT are two ways of ordering the steps inside a pipeline, not synonyms for the pipeline itself. One company can run both patterns on different pipelines, or switch a pipeline from one to the other, without changing what the pipeline is for.

  • Default to ELT if the destination is a modern warehouse or lakehouse with cheap compute, since raw data stays available and transformation logic can change without re-extracting anything. Pick ETL when raw data can't legally land unfiltered, for example personal data that has to be scrubbed before storage, or when the destination can't accept the source's format. Plenty of teams use both, chosen pipeline by pipeline.

  • System integration connects separate systems so they can trigger each other's processes and stay in sync, an order system telling a warehouse to ship something. A data pipeline moves and reshapes data for people and models to use later, usually for analysis rather than to make another system act. The two often read from the same source systems and sit close together in an architecture diagram, but a pipeline usually doesn't write back into the systems it pulls from. Reverse ETL, which pushes warehouse data back into tools like a CRM, is the exception.

  • An error message is the exception. A pipeline can run to completion, report success, and still hand over wrong data because of a schema change, a partial extract, or a duplicate backfill. Row counts, null rates, and freshness checks that compare each run's output against what's expected catch this. A green job status on its own doesn't.

  • Not always. A single source feeding one report is usually kept alive by whoever built it, running from memory more than from documentation. The risk shows up once that person changes teams or leaves. The report keeps running, but nobody left understands it well enough to fix it when a source changes shape.

Still unanswered
Ask us directly

A senior engineer replies under 4 hours.