What is a data pipeline?
A data pipeline is a series of automated steps that moves data from a source to a destination. A typical one pulls records from an app or database, cleans and reshapes them, and writes them to a warehouse or another app. It runs on a schedule, when an event fires, or on demand, so nobody copies files by hand.
What are the parts of a data pipeline?
Every pipeline has the same four parts:
- Source. Where the data starts, such as Salesforce, Stripe or a database.
- Trigger. What starts a run: a schedule, a webhook, or a change in a record.
- Transformation. Mapping, filtering, joining and cleaning, so the data fits the destination.
- Destination. Where it lands: a warehouse like Snowflake, BigQuery, Redshift or Databricks, or another operational app.
Around those four sit the parts that keep it running: error handling, retries, alerts and a log of each run.
How does a data pipeline work?
Take a pipeline that sends closed deals to a warehouse every night.
- A schedule fires at 2 a.m. That’s the trigger.
- The pipeline asks the CRM for deals closed since the last run. It pages through the results so a large day doesn’t hit the API’s limit.
- It maps and cleans the fields. Currency becomes one currency, dates share a format, and a deal with no owner is flagged instead of loaded.
- It writes the rows to the warehouse, then records how many rows it moved.
- If a step fails, it retries. If it still fails, it alerts a person.
By morning the finance dashboard is current, and nobody touched a spreadsheet.
What are the types of data pipeline?
- Batch. Copies data on a schedule, such as every night or hour. Simple and cheap, but the destination is only as fresh as the last run.
- Real-time or event-driven. A webhook or app event starts the run when a record changes, so the destination updates within the same run.
- Two-way sync. Keeps the same record matching in two operational systems, such as Salesforce and NetSuite, with changes accepted on either side.
- Reverse ETL. Writes what a warehouse has worked out, such as scores or segments, back into the tools people use.
Pick the slowest type that meets the need. A weekly board report doesn’t need real-time, and a support agent looking up an order does.
What is the difference between ETL and ELT?
Both move data into a warehouse. The order differs.
- ETL extracts, transforms, then loads. The data is cleaned before it lands. That suits cases where the destination should only ever hold tidy data, or where sensitive fields must be removed first.
- ELT extracts, loads, then transforms inside the warehouse. Raw data lands first, and the warehouse’s own compute reshapes it. That suits teams who want to keep the raw data and change the logic later.
Neither is better in general. Many teams use both: ELT for analytics, ETL where data has to be cleaned or masked before it lands. ETL has its own page.
How is a data pipeline different from ETL?
ETL is one kind of data pipeline: extract, transform, then load into a warehouse, usually in batches. A data pipeline is the wider term. It covers ETL and ELT, plus real-time syncs and pipelines that write back into operational apps. Data integration is the practice those pipelines serve.
What is data mapping and transformation?
Mapping says which field in the source goes to which field in the destination: “Company Name” in the CRM is “account_name” in the warehouse. Transformation changes the values on the way: converting currencies, splitting a full name, joining two tables, or dropping duplicates. Most pipeline bugs live here, so keep the rules written down and testable.
What is data orchestration?
Orchestration is coordinating the steps and pipelines that depend on each other: this load runs after that one finishes, this branch runs only when a check passes, and a failure stops what’s downstream. A single pipeline needs little of it. A set of pipelines feeding one report needs a lot. See orchestration.
What makes a data pipeline break?
Most failures come from the same few places: a source API that changes a field, a large load that hits a rate limit, and a bad record that stops the whole batch. A good pipeline retries failed calls, loads in chunks that respect each API’s limits, handles a bad record without stopping the rest, and alerts a person when something still fails.
What are data pipeline best practices?
- Make it safe to run twice. If a run is retried, it shouldn’t create duplicates.
- Load in chunks, sized to the API’s limits.
- Set aside bad records with the reason, and keep going.
- Alert on a failed run and on a quiet one. A pipeline that moved zero rows is often broken.
- Log every run: what ran, how many rows, how long, and what failed.
- Keep transformation rules in one place, so a change is made once.
How do you choose a data pipeline tool?
- Sources and destinations. Does it reach the systems you use, including the ones that aren’t in a warehouse?
- Direction. Can it write back to operational apps, or only load a warehouse?
- Triggers. Can it run on events and on demand, not just on a schedule?
- Who can build it. Can an analyst or operations person change a pipeline, or does every change need an engineer?
- Failure handling. Does it retry, set aside bad records and alert?
- Visibility. Can you see each run and what it did?
Data pipelines at Tray
Tray iPaaS builds data pipelines visually, with no infrastructure code. A pipeline runs on a schedule, from an event or on demand, and can move data in both directions. The SQL Transformer reshapes data in flight with ANSI SQL, so there’s no separate ETL system to run. Failed calls retry automatically, and every run is logged. Tray connects to 12,000+ apps, databases, APIs, and services as sources, and loads Snowflake, Redshift, BigQuery and Databricks.
An 8-person team at IBM spent 40 hours a week pulling data. On Tray it takes 5 minutes a day. See the IBM story.
For how teams run pipelines across their systems, see data integration.