OpsLabs Book a call
In plain English›Data pipeline

What is a data pipeline?

Sometimes called ETL or ELT

A data pipeline is a sequence of steps that takes data from where it originates, puts it into a consistent shape, checks it against what you already hold, and writes it somewhere useful. It runs on a schedule and, built properly, can fail halfway and be run again without duplicating anything.

The part that separates a good one from a bad one: what happens when it breaks at 2am. Anyone can build the version that works. The value is entirely in the version that fails safely and picks up where it stopped.

The problem it solves

Data does not arrive ready to use.

It comes from three places, in three shapes, at three different times. Some of it is a duplicate of what you already hold. Some of it has a date written four ways. Somebody has to turn all of that into rows you can trust.

A pipeline is that turning, written down and run on a schedule, with the crucial property that it can fail halfway and be run again safely.

Last night's runincluding the part that broke idle
The failure is the interesting part. Anyone can build the happy path.
The rules that make it survivable

Four properties worth insisting on.

  • Safe to run twice. If a run half-finished and you start it again, you must end up with the right data and not two of everything. This single property causes more pipeline disasters by its absence than anything else.
  • Progress markers only move on success. If the marker advances when a run starts, a crash silently skips a day and nobody finds out until the numbers look strange a month later.
  • It has to notice its own failure. A pipeline that keeps running and quietly writes nothing is far more dangerous than one that stops loudly.
  • Every record remembers where it came from. Source and timestamp on each row, or you cannot resolve a disagreement between two systems later.
The two shapes

Batch or streaming.

 BatchStreaming
When it runsOn a schedule, often overnight Continuously, as things happen
Data isUp to a day old Seconds old
Cost and complexityMuch lower Considerably higher
Fixing a bad runRe-run last night Replaying a stream is its own project
Choose it whenReporting, enrichment, most business data A decision genuinely depends on the last few seconds

Almost everything described as needing to be real time is answered by a batch that runs every fifteen minutes, at a fraction of the cost.

What we built with it

Three sources into one schema.

Around seventy fields per person, collected continuously

BrokerStaffer's collection engine cannot write to the database directly. Every record goes through one authenticated endpoint that owns the remap, the matching and the write, so there is exactly one place the rules live.

Batches flush as they go, so a run that dies two thirds through keeps two thirds of the work. A rolling window re-collects a slice every couple of days, keeping the whole estate current within fifteen days without one heavy sweep.

3 → 1sources into one schema
~70fields per record
0duplicates on re-run, verified live
See the collection engine
Related terms

Words that turn up next to this one.

Common questions

Still unclear?

What is a data pipeline?

A data pipeline is a sequence of steps that takes data from where it originates, puts it into a consistent shape, checks it against what you already hold, and writes it somewhere useful. It runs on a schedule and, when built properly, can fail halfway and be run again without duplicating anything.

What is the difference between batch and streaming?

Batch runs on a schedule and processes everything since last time, so the data is up to a day old and re-running a bad run is straightforward. Streaming processes continuously so data is seconds old, at considerably higher cost and complexity. Most things described as needing real time are answered by a batch every fifteen minutes.

What happens when a pipeline fails halfway?

In a well-built one, the progress marker does not advance, so the next run picks up from the last confirmed point and re-covers the window. In a badly built one the marker moves when the run starts, which means a crash silently skips a day and nobody notices until the numbers look wrong weeks later.

Why do pipelines create duplicate records?

Because they were not built to be safe to run twice. If a run fails partway and gets restarted without a matching step that recognises records already written, everything before the failure point gets written again. This is the single most common pipeline defect.

How do we know the data is correct?

By having the pipeline check itself: compare totals against the source after loading, record how many records were dropped and why, and alert when a run produces suspiciously little. A pipeline that cannot tell you it went wrong is worse than one that stops loudly.

Working together

Wondering what this would look like on your stack?

Thirty minutes. We will tell you whether it is worth building and what it would take. No deck.

Book a 30-minute call

OpsLabs builds custom operational systems for growing companies. This page is part of a plain-English glossary of the terms that appear in our proposals and on this site.