top of page

What is Data Pipeline?

Oct 23
13 min read
What is Data Pipeline?

 

A data pipeline is a connected set of stages that moves data from one or more sources to a destination, processing it where required so another system can use it. A pipeline might collect router measurements, validate their format, calculate hourly summaries and publish them to a dashboard. It can also copy data without changing it. The pipeline describes the application workflow; the broadband connection is one possible transport underneath it.

 

The important question is whether the right data reaches the right place, in a usable form and within the required time. A completed transfer or a green job status does not prove that the output is complete, current or correct.

 

The Techie Broadband terminology guide connects this subject with APIs, networking and cloud infrastructure. The infographic follows the main responsibilities of a pipeline; implementations can combine stages or branch into several destinations.

 

Data pipeline infographic showing source records, ingestion, transformation and validation, committed output, safe retries and monitoring freshness and completeness

 

How does a data pipeline work?

 

Consider a home lab collecting broadband measurements from several devices. Each record contains a stable measurement ID, a device ID, the measurement time, a value and its unit. The objective is to produce a reliable hourly view, rather than merely accumulate files.

 

  1. Collect records from a source: an application, database, API, log file or device. Preserve enough source identity and timing information to interpret them later.

  2. Ingest and, where needed, buffer them. A durable queue or landing area can separate collection from processing, so a slow destination need not immediately stop every producer.

  3. Transform the data. Parse fields, normalise units, join device metadata, remove repeated events or calculate summaries according to explicit rules.

  4. Validate inputs and outputs. Check required fields, types, ranges, identities and expected coverage. Keep rejected records traceable rather than silently discarding them.

  5. Publish usable output. Commit records or replace a completed partition so readers do not mistake a partial result for a finished one.

  6. Monitor and recover. Track data freshness and correctness, record progress and provide a safe way to retry or reprocess a defined interval.

 

These are responsibilities, not a universal six-server architecture. One Python script and a database can implement several of them. A larger system may distribute them across connectors, queues, workers and storage services.

 

An orchestrator coordinates dependencies and execution: for example, run validation after extraction, then publish after validation passes. The processing engine performs the data work. Apache Airflow is commonly used for orchestration; Apache Beam describes processing graphs that run on a supported execution engine. A queue stores pending work, while a database stores and queries data according to its own model. These components solve different problems.

 

Sources, destinations and staging

 

Sources can push events or be polled. Webhooks can notify an ingestion service when something happens, but accepting a notification is separate from finishing the downstream processing. Polling an API instead requires pagination, authentication and a reliable way to identify the next records.

 

A destination, also called a sink, might be a database, an object store, a search index, a warehouse or another application. A warehouse supports structured analytical queries; a data lake generally retains files or objects for later processing. Neither storage choice automatically supplies validation or recovery.

 

A buffer is finite. If arrivals exceed downstream capacity for long enough, it must eventually fill unless the system slows producers, spills data to additional storage or applies an explicit drop policy. Backpressure is the mechanism that pushes the slowdown upstream; buffering postpones a capacity problem rather than removes it.

 

A staging or landing area holds intermediate input or output. It helps isolate an unfinished run, inspect rejected records and repeat processing from a known input. Define which files are authoritative and when an output becomes visible. A directory full of partly written files is a weak publication contract.

 

Change data capture, or CDC, tracks database changes rather than repeatedly copying every row. Debezium's PostgreSQL connector documentation describes an initial consistent snapshot followed by committed insert, update and delete events obtained through logical decoding. A downstream pipeline must interpret those changes, including deletion and ordering; copying only new rows will not maintain an accurate replica of mutable data.

 

Data pipeline vs ETL, ELT and other pipelines

 

ETL means extract, transform, load: transformation occurs before loading the intended analytical target. ELT means extract, load, transform: data enters the target before the relevant transformation. AWS's ETL/ELT documentation distinguishes them by that ordering. A real system may perform lightweight checks before loading and more substantial modelling afterwards.

 

Term

What it describes

Important boundary

Data pipeline

Connected data movement and processing stages

May branch, copy unchanged data or support operational applications

ETL pipeline

Extract, transform, then load the target

One arrangement within the broader pipeline concept

ELT pipeline

Extract, load, then transform in the target environment

Raw data needs suitable access and retention controls

Database

A system for storing and accessing data

Can be a source or destination; it is not the whole workflow

Backup

A recoverable copy of data or system state

A transformed dashboard dataset may be unsuitable for restoration

CI/CD pipeline

Build, test and release software changes

Can deploy data-pipeline code, but has a different primary purpose

 

ETL versus ELT does not tell you whether the workload is batch or streaming. Nor does using a cloud service determine the answer. Data pipelines can operate entirely on one computer, across a LAN, in a cloud region or between those environments.

 

Batch processing vs streaming

 

A batch pipeline processes a defined collection or interval and finishes that run. The batch can be small and frequent, such as a file every minute, rather than a nightly copy of an entire database. Streaming processes an ongoing sequence of arrivals. Some implementations use small batches internally while presenting a continuous service.

 

Approach

Useful when

Operational trade-off

Scheduled batch

Reports can wait for a defined interval

Simpler completion boundary; scheduling and queueing add delay

Streaming

New events must affect outputs promptly

Ongoing state, late arrivals and recovery need explicit handling

Small frequent batches

Short delays are acceptable without a continuous processing service

Balance scheduling overhead against freshness

 

Choose from the required outcome. An hourly report does not necessarily need subsecond processing. Conversely, a daily batch is unsuitable for a response that must happen within seconds. Neither approach is inherently cheap, low CPU or more correct: volume, transformation complexity, state and service configuration matter.

 

Event time, processing time and late data

 

Event time is when the source says something happened. Processing time is when a pipeline stage handles it. If a router records a measurement at 10:59 but an interrupted connection delivers it at 11:03, an hourly report grouped by event time belongs to the earlier hour. Grouping by arrival time answers a different question.

 

A window groups events into an interval. A watermark represents progress in event time and helps decide when to emit a result. It is not a universal guarantee that no older record can arrive. The Apache Beam programming guide explains watermarks, triggers and late-data handling in its windowing model.

 

For the router example, decide whether a late measurement updates the earlier summary, goes to a separate correction process or is excluded after a stated cutoff. Record that policy beside the metric. Keeping windows open longer can improve eventual coverage while increasing state retention and delaying finality. A fast provisional result and a final reconciled result can both be useful if clearly distinguished.

 

Use unambiguous timestamps and preserve their meaning. UTC is a useful internal convention; local reporting boundaries still need an explicit timezone. In the UK, a local calendar day around a clock change need not contain exactly 24 hours. Do not silently mix local strings with timestamps that identify a precise instant.

 

Reliability: retries, checkpoints and duplicate effects

 

A retry repeats work after a failure or uncertain response. If the destination committed data but the acknowledgement was lost, repeating an ordinary append can create duplicate output. If progress is recorded before the output is safely committed, a restart can skip missing data instead.

 

A checkpoint records processing progress, such as a source offset, page cursor or completed input partition. Its safety depends on how it relates to committed output. Idempotent processing produces the same intended effect when the same logical work is repeated. It does not necessarily mean the code ran only once.

 

Apache Airflow's best-practice guidance recommends stable input partitions and outcomes that remain consistent on rerun. For example, rebuilding the same date partition is more predictable than querying whatever happens to be “latest” at retry time. Pin the input, code and relevant reference-data versions when reproducibility matters.

 

The Apache Kafka 4.0 delivery-semantics documentation also distinguishes guarantees within Kafka from writes to external destinations, which require cooperation with those systems. An exactly-once claim needs a stated boundary and failure assumptions; it does not automatically cover an arbitrary database write, email or payment outside it.

 

Techie Broadband experiment: a successful rerun can still be wrong

 

We ran a synthetic local demonstration using Python 3.12.14 and SQLite 3.53.1. These are invented broadband measurement records, not tests of a connection, ISP or distributed processing service. The objective is to show how duplicate handling changes the answer.

 

The six input deliveries were A=100, B=200, A=100 again, C=-5, D=400 and E=300 Mbps. A is the same immutable event delivered twice. The illustrative validation rule rejects negative speeds, leaving four unique valid measurements. It does not claim that every non-negative measurement is trustworthy.

 

Processing method

Stored rows

Sum of recorded values

Mean measurement

Validate, then append once

5

1,100 Mbps

220 Mbps

Validate, then append the same input twice

10

2,200 Mbps

220 Mbps

Validate and deduplicate by event ID

4

1,000 Mbps

250 Mbps

Repeat the deduplicated run

4

1,000 Mbps

250 Mbps

Roll back an interrupted transaction, then retry

4

1,000 Mbps

250 Mbps

 

The sum is a diagnostic total across records, not the combined capacity of any connection. The append-only mean remains 220 Mbps after a full rerun, even while the row count doubles. A plausible, stable average therefore does not prove correct processing. The repeated low-value event also biases that mean below the 250 Mbps mean of the unique valid records.

 

To reproduce the duplicate part in SQLite, use a table with event_id TEXT PRIMARY KEY and mbps INTEGER, reject C before writing, and execute this statement for each remaining delivery:

 

INSERT INTO samples(event_id, mbps) VALUES (?, ?)ON CONFLICT(event_id) DO NOTHING;

 

Then query COUNT(*), SUM(mbps) and AVG(mbps). Repeat the same input and compare. For the failure case, we began a transaction, inserted A and B, injected an exception before commit and explicitly rolled back; the table contained zero rows before the complete retry.

 

This rule is appropriate here because event IDs identify immutable measurements. If an existing ID arrives with different content, quarantine or investigate the conflict rather than silently treating it as a harmless duplicate. For mutable entity updates, use a version or source ordering rule; an unconditional upsert can overwrite newer data with an older retry.

 

The local experiment demonstrates deduplication and rollback, not end-to-end exactly-once delivery. It does not test network partitions, multiple concurrent writers or external side effects. A production design must coordinate progress and output, retain deduplication information for its replay horizon and test failures at actual commit boundaries.

 

Pipeline performance: recovery headroom matters

 

Pipeline throughput is useful completed work per second, often measured in records/s or bytes/s. End-to-end delay includes source collection, buffering, processing, publication and the consumer's refresh schedule. A fast worker does not help a dashboard that reads yesterday's partition.

 

The network's bandwidth is only one limit. API extraction may be capped by API rate limits, while parsing, joins, disk writes, destination locks or a heavily used key can constrain later stages. Measure the stage that is actually limiting useful output.

 

Techie Broadband calculation: one hour down, four hours catching up

 

Assume a constant arrival rate of 20,000 events/s, each with a 500-byte payload, and a durable buffer that continues accepting data during a one-hour processing outage. No events expire or are lost. The backlog is 20,000 × 3,600 = 72 million events, or 36 GB of payload using decimal units. Replication, indexes and metadata require additional space.

 

After recovery, new events continue arriving. Catch-up time equals backlog divided by the spare processing rate, not the entire processing rate.

 

Sustained completion capacity

Capacity left after new arrivals

Time to clear the backlog

20,000 events/s

0 events/s

Cannot clear it while arrivals continue

21,000 events/s

1,000 events/s

20 hours

25,000 events/s

5,000 events/s

4 hours

 

For the last row: 72,000,000 ÷ (25,000 - 20,000) = 14,400 seconds = four hours. This is an idealised constant-rate calculation, not a measured service guarantee. Real recovery may include retries, uneven event sizes, hot partitions and competing work.

 

The buffer must retain the oldest required data until replay reaches it, with safety margin. If incoming and processing rates are equal, the system may look stable while never eliminating the outage backlog. Alert on lag and oldest unprocessed data as well as average throughput.

 

UK broadband and local-to-cloud pipelines

 

For a pipeline sending data from a UK home lab or office, upload speed is the relevant broadband direction. A high advertised downstream rate does not establish the available upstream rate. Check the actual ISP, access network, product and location rather than infer symmetry from an FTTP label.

 

Techie Broadband calculation: transferring a 10 GB decimal dataset contains 80 billion bits. At an assumed constant 20 Mbps it takes 4,000 seconds, or 1 hour 6 minutes 40 seconds. At 100 Mbps it takes 800 seconds, or 13 minutes 20 seconds. These are transfer-only floors assuming the full stated rate carries payload, with no compression, competing traffic or protocol overhead.

 

By comparison, 1,000 events/s with 500-byte payloads is 0.5 MB/s, or 4 Mbps, before framing, encryption and other overhead. A modest continuous feed and a large historical backfill can place very different demands on the same connection.

 

Trace the actual path from source storage through the operating system, network interface, Ethernet or WiFi, switch/router and access connection to the remote service and destination storage. Check CPU, disk, interface negotiation and destination throughput as well as the line. A pipeline entirely inside a cloud environment may not traverse your home broadband at all.

 

How do you know the output is usable?

 

Job success is one signal. A useful acceptance contract states the required data interval, expected source coverage, permitted lateness, schema and quality rules, publication deadline and owner. Check the contract at the destination that readers actually use.

 

  • Freshness: how old is the newest relevant event in the published output? Define the timestamp and expected activity; an idle sensor is different from a failed collector.

  • Completeness: which expected events, files, devices or partitions are represented? Compare source and destination identities or manifests where possible, rather than trust row count alone.

  • Validity: do fields satisfy the declared schema, units and domain rules? A numeric field can still contain the wrong unit.

  • Uniqueness and consistency: are repeated identities handled correctly, and do related totals reconcile after legitimate filtering and aggregation?

  • Processing lag and rejection rate: how far behind is the pipeline, and what is being held out? Separate deliberate exclusions from unexplained loss.

 

A schema is the agreed structure and meaning of records. A new optional field may be compatible; changing a speed from Mbps to bytes/s under the same field name can silently corrupt reporting. Version contracts, test consumers and make incompatible changes visible. Keep lineage linking a published result to its sources, run and transformation version so a disputed figure can be traced.

 

A dead-letter or quarantine area makes unprocessable input inspectable. It is not a resolution by itself. Set an owner, alert threshold, retention policy and safe correction/replay procedure. Otherwise a pipeline can remain green by moving all difficult records somewhere nobody checks.

 

Security, privacy and cost

 

Give source readers and destination writers only the permissions they need. Keep credentials in an appropriate secret store, encrypt connections, restrict network access and avoid writing tokens or full sensitive payloads into diagnostic logs. Treat landing files, quarantined records and retained messages as data stores with their own access and deletion requirements.

 

For UK operations involving personal data, the ICO's data protection principles include minimisation, accuracy, storage limitation and security. Collect what the purpose requires and define retention across raw, intermediate and published copies. The ICO notes that its guidance is under review following the Data (Use and Access) Act; check current guidance for your processing. Selecting a UK hosting region alone does not establish compliance.

 

Retaining raw input can help recovery, but it increases storage, privacy and operational obligations. Budget for data transfer, storage requests, retained state, processing, monitoring and backfills as well as normal daily runs. Reduce needless movement and repeated full scans where that remains compatible with correctness and recovery.

 

Building a sensible first pipeline

 

Start with an outcome: for example, publish yesterday's validated measurements by an agreed time, with missing devices explicitly reported. A small scheduled script, durable input files and a transactional database may be sufficient. Add distributed components when volume, availability or latency requirements justify their operational cost.

 

Before selecting software, establish:

 

  • Source identity, change semantics, deletion behaviour and available history.

  • Expected volume, bursts and the largest realistic recovery backlog.

  • Freshness requirements and whether results may be provisional.

  • Safe rerun boundaries, output commit rules and replay retention.

  • Schema ownership, security, monitoring and responsibility for failures.

 

Test empty input, malformed records, duplicate deliveries, out-of-order updates, expired credentials, destination failure and interruption immediately before and after a commit. A happy-path sample proves much less than a deliberate recovery exercise. A backfill reprocesses a historical range; keep its resource consumption from starving current data and verify that consumers can tolerate revised results.

 

Troubleshooting a stale or incorrect data pipeline

 

  1. Identify the exact affected output and interval. Check event time, publication time, timezone and consumer cache before restarting anything.

  2. Confirm the expected source data exists. Compare device/file identities or source counts with the extraction manifest and declared filtering rules.

  3. Inspect ingestion errors, authentication, pagination, API allowances and source cursors. Check whether input stopped or merely arrived late.

  4. Check buffer depth, oldest pending record, retention and partition distribution. More workers will not fix a destination that is already saturated.

  5. Inspect rejected records, schema versions, units and joins. Compare a few source records with their final output and reconcile aggregate totals.

  6. Examine checkpoints alongside committed output. Look for a crash between writing data and recording progress, repeated event IDs or stale updates replacing newer ones.

  7. If transfer is the bottleneck, isolate local disk/CPU, wired network throughput, router and upstream capacity before blaming the ISP. Compare with destination-side limits.

  8. Replay a controlled interval into an isolated output, validate it, then publish through the normal commit mechanism. Confirm freshness and completeness after recovery, not merely that the job turned green.

 

Frequently asked questions

 

Is a data pipeline the same as ETL?

 

No. ETL is a data pipeline arrangement that extracts data, transforms it and then loads the target. Data pipelines can also use ELT, copy unchanged data or support operational processing rather than analytics.

 

Does a data pipeline need the cloud?

 

No. A pipeline can run on one computer, across a local network, in a cloud environment or between them. Choose its components from the data volume, freshness, reliability and security requirements.

 

Is streaming always real time?

 

No. Streaming handles ongoing arrivals, but buffering, processing, late events and destination refreshes still add delay. State a measurable freshness requirement rather than assume streaming means instantaneous results.

 

Can retries create duplicate data?

 

Yes. If output was committed before a failure or lost acknowledgement, repeating an append can duplicate its effect. Stable identities, suitable deduplication or version-aware writes, and coordinated progress and output help make retries safe.

 

Will faster broadband fix a slow pipeline?

 

Only when the relevant network transfer is the limiting stage. API allowances, CPU, storage, transformation logic, hot partitions and destination writes can constrain the pipeline independently of broadband speed.

 

What is a data pipeline backfill?

 

A backfill processes a defined historical range, for example to restore missing output or apply corrected logic. It needs stable inputs, safe rerun semantics and enough capacity to avoid delaying current data.

 

The key takeaway

 

A useful data pipeline turns identifiable source data into dependable output. Define what must arrive, how it may change, when it must be usable and how a failed run will recover. Then measure the delivered result. Moving bytes quickly matters only when the data remains correct, complete enough for its purpose and available at the time it is needed.

 
 
UK Techie Broadband Providers
bottom of page