top of page

What is Data Ingestion?

Oct 23
14 min read
What is Data Ingestion?

 

Data ingestion is the process of collecting data from one or more sources and bringing it into a target system so it can be stored, processed or analysed. It might import a CSV file, collect application logs, receive sensor readings or capture changes from a database. The important distinction is that receiving data does not, by itself, prove that the data is safely stored, complete or ready to use.

 

An ingestion system needs to know what it has accepted, what remains outstanding and what happens after an interruption. A fast connection helps move bytes, but reliable intake also depends on source access, record identity, validation, storage and recovery rules.

 

The Techie Broadband terminology guide connects these application-level questions with the networking and storage concepts underneath them.

 

Where data ingestion fits

 

Ingestion is usually the entry stage of a wider data pipeline. The pipeline might collect router measurements, standardise their units, calculate hourly summaries and update a dashboard. Ingestion gets the intended measurements into the system; later stages decide what those measurements mean and how to present them.

 

The boundary is architectural rather than a universal product label. One collector may only save original messages. Another may authenticate senders, parse JSON, check required fields and route rejected records before admitting accepted events. Both can perform ingestion. State the boundary rather than assuming that every tool uses the word identically.

 

Concept

Main responsibility

What completion alone does not establish

Data transfer

Move bytes between endpoints

Correct record selection or usable output

Data ingestion

Collect and admit source data into a target

Complete transformation or current reports

Data integration

Combine data into a useful, consistent representation

That every source was captured correctly

ETL or ELT

Extract, load and transform in a chosen order

Safe retries or correct business rules

Stream processing

Compute continuously over incoming records

Complete source coverage or zero delay

 

ETL, Extract Transform Load, includes transformation before loading into the chosen destination. ELT loads there before subsequent transformation. Ingestion overlaps with extracting and loading, but does not automatically include every transformation, join or reporting step.

 

How data ingestion works

 

Consider a home lab collecting network measurements from several devices. A reading needs more than a value: it needs a source, an identity, a measurement time and an agreed unit. The collector must connect to the source, obtain the relevant records and hand them to a destination that has a defined acceptance policy.

 

Useful intake metadata includes:

 

  • Source identity and the file, stream, table or API endpoint involved.

  • A stable event identity or a source position that can support replay.

  • Event time, collection time and any relevant time-zone information.

  • Schema version, content type and units where the data carries measurements.

  • Batch identity, file version or source range, together with outcome counts and rejection reasons.

 

These fields answer different questions. An arrival timestamp cannot replace the time a measurement was taken. A device ID cannot uniquely identify every event from that device. A batch ID identifies a group but does not necessarily identify an individual reading within it.

 

The infographic separates collection, durable admission and later use. Its acknowledgement returns towards the sender after the stated intake boundary; it does not claim that all downstream analysis has finished.

 

Data ingestion infographic showing source collection, durable intake, return acknowledgement, validation and downstream use, with received, stored and usable distinguished

 

Received, stored and usable are different states

 

Received means that an endpoint obtained the message. Durably stored means that it reached the persistence boundary promised by the service, under that service's failure assumptions. Usable means it has passed the checks and processing needed by the consuming application. Those states may occur at different times.

 

A collector can acknowledge a durably queued event before a dashboard has processed it. That is reasonable when the contract is clear. A response sent while the only copy remains in volatile memory provides a different level of protection, even if the status code looks equally successful.

 

The distinction also exists in HTTP itself. RFC 9110, section 15.3.3, specifies that 202 Accepted indicates acceptance for processing without completed processing. The June 2022 Internet Standard does not make 202 a guarantee that a particular application's data is replicated, validated or queryable. Those guarantees need a separate application contract and, where appropriate, a completion check.

 

Batch, streaming and micro-batch ingestion

 

Batch ingestion handles a bounded group, such as a completed daily export. Streaming ingestion handles a continuing flow, such as new log events. Micro-batching handles small groups repeatedly. These approaches describe how work is grouped over time, rather than how reliable it is.

 

Approach

Useful when

Main question to resolve

Batch

A complete export or scheduled update is sufficient

How do you identify and safely rerun each batch?

Streaming

New events should enter a continuing intake flow

How do you handle lag, replay and sustained overload?

Micro-batch

Small repeated groups meet the freshness requirement

What delay do the trigger interval and processing add?

 

A nightly import can be the correct design for yesterday's report. It is unsuitable for an alert that must respond while a fault is occurring. Conversely, a continuously running collector adds little value if a source only publishes a daily file. Start with the freshness the reader or application needs, then choose the collection pattern.

 

Streaming does not mean one network request per event. Implementations can group records for transport or storage efficiency. Nor does it mean instantaneous visibility: buffering, retries, validation, indexing and downstream work can all add delay.

 

Push and pull are a separate choice

 

With push, the source or an upstream agent sends data to a receiver. With pull, the collector requests it. Either can deliver batches or support a continuing flow. A file upload can be push-based batch ingestion; repeated consumer fetches can participate in a streaming system.

 

Apache Kafka illustrates that combination. Its 4.1 design documentation describes producers pushing to brokers and consumers fetching from brokers. The same document distinguishes broker delivery from external output, where consumer progress must be coordinated with what was actually stored. Neither the word streaming nor the presence of a broker establishes an end-to-end exactly-once result.

 

For a UK home lab, pulling from a remote API starts an outbound connection from the collector. Receiving an unsolicited webhook requires a reachable receiving service or an appropriate relay. The latter needs deliberate routing, firewall and authentication arrangements. Avoid exposing an entire management interface merely to receive one event feed.

 

Collecting files, APIs and database changes

 

Different sources need different completeness checks. The connector is part of the design, not just a replaceable cable between two boxes.

 

Files and object storage

 

A file can become visible before its writer has finished. Use the source platform's supported completion mechanism, such as a finalised object, manifest or agreed handoff. Do not assume that every filesystem or object store provides identical rename and notification behaviour.

 

Record which version was read, not only its filename. A file called readings.csv can be replaced tomorrow with different contents. Size and a suitable checksum can help detect changed bytes, while expected record counts and source manifests help check whether the intended export was complete. A matching hash does not prove the source chose the right records.

 

Notifications can prompt ingestion, but the design should also explain how missed notifications are discovered. A periodic reconciliation against the authoritative source listing may be useful when supported. File discovery, successful parsing and successful destination admission are three separate checkpoints.

 

APIs and pagination

 

An API may impose request limits, maximum page sizes, token expiry and restrictions on historical access. Respect its documented retry instructions. Repeating a permanently invalid request more aggressively only wastes capacity and can delay healthy work.

 

Pagination over a changing dataset is a particular risk. If rows are inserted or removed while the collector walks through numbered pages, records can move between pages. Where offered, use a documented snapshot, stable cursor or suitable ordering and overlap strategy. Preserve the cursor with the admitted output, and reconcile the resulting scope. An HTTP 200 on the final page is not evidence that earlier pages covered every required record.

 

Incremental ingestion and change data capture

 

A full load copies the defined source scope. Incremental ingestion copies newly identified changes. A simple increasing-ID cursor can find new inserts but will not, on its own, capture updates to older rows or deletions. A timestamp cursor also needs rules for equal timestamps, precision, late commits and overlap.

 

Change data capture, or CDC, can read database changes, often from a transaction log. Capturing inserts, updates and deletes is useful, but the initial snapshot must connect correctly with the change stream. Otherwise a change during the initial copy can be missed or applied in the wrong order.

 

Debezium's PostgreSQL connector documentation describes snapshot and change-stream coordination, including handling collisions between snapshot rows and newer changes. It also documents the operational effect of retained write-ahead log data. Monitor source retention and connector progress together: a stopped collector can create pressure on the database as well as stale data at the destination. These details depend on the connector and database configuration.

 

Retries, duplicates and checkpoints

 

When a sender receives no acknowledgement, it cannot always tell whether the receiver failed before storing the event or stored it and lost the reply. Retrying protects against the first case but can produce a duplicate in the second.

 

At-most-once handling can avoid redelivery while allowing loss. At-least-once handling permits repeated delivery while attempting to preserve events under the system's stated conditions. Exactly-once claims need a defined scope, failure model and treatment of external side effects. None of those labels means unlimited retention or protection from every hardware failure.

 

A small replay example

 

Techie Broadband illustrative analysis: imagine the receiver stores event A and event B, but B's acknowledgement does not reach the sender. The sender retries B and then sends C. That creates four delivery attempts for three distinct events.

 

We checked the identity and payload logic in a small Python model. A, B and C were stored once each; the repeated B with the same payload was recognised as a duplicate. A deliberately different payload under B's existing identity was detected as a conflict. The check compared the expected identities and contents, not only the total count.

 

This was an in-memory logic model, not a network, broker, database durability or process-crash test. It demonstrates the rule required for replay. A production implementation must enforce the identity check atomically where concurrent writes occur and keep deduplication state for the supported replay period. Deleting that state too early allows old retries to appear new.

 

An event key also needs a scope. Device-7 plus sequence 42 may be unique until the device resets its sequence. Include a suitable source generation or other identity rule. Do not deduplicate an entire changing entity by device ID when each reading should remain a separate event.

 

Advance progress only with recoverable output

 

A checkpoint records where collection can resume. Advancing it before output is safely admitted risks skipping data after a crash. Storing output first without coordinating progress can cause redelivery after a crash. A design may solve this through a shared transaction, supported connector protocol or replay-safe destination writes, depending on the systems involved.

 

Checkpoints can be per file, page, partition or source stream. One fast partition does not prove that another has advanced. Likewise, retained source data limits how far back a collector can replay. If required history has expired, recovery may require a new snapshot or explicit reconciliation rather than repeatedly restarting the same cursor.

 

Validation, schema changes and rejected records

 

Define the minimum admission contract: required fields, types, sizes, identities, timestamps and allowed versions. Keep unknown fields where appropriate, or reject them deliberately. Silently interpreting a changed unit or coercing an invalid value into zero can create plausible but wrong output.

 

Schema compatibility is more than whether JSON parses. A new optional field may be harmless, while changing rate_bps from a number to a string can break a consumer. Keep schema and transformation versions with the source material needed to understand a later replay. An old record processed by new rules may legitimately produce a different result.

 

Malformed or unsupported events need a visible outcome. A quarantine or dead-letter destination can retain the original event, source position, error and handling status for investigation. It needs ownership, access controls and a reprocessing procedure. Moving a record there is not the same as successfully loading it into the intended reporting dataset.

 

For a defined intake window, reconcile source records against newly accepted events, recognised duplicates, rejected records and anything still outstanding. Use mutually exclusive categories and compare identities where feasible. Equal counts alone can conceal one missing event and one unexpected event.

 

Continuous systems also need rules for late and out-of-order data. Store event time separately from arrival time, and define whether late events update previous results. The stream processing guide explains that next stage, including event-time handling and result updates.

 

Worked example: buffer size and recovery headroom

 

Techie Broadband calculation, using a deliberately simplified workload: assume 250 events per second, each containing 800 payload bytes. Events continue arriving during a 30-minute downstream outage. All byte sizes are decimal, and the rates are illustrative assumptions, not measured broadband or product performance.

 

The normal payload rate is 250 × 800 = 200,000 bytes per second, or 0.2 MB/s. Multiplying by eight gives 1,600,000 bits per second, or 1.6 Mbps. That is payload only; transport, encryption, requests and retries use additional capacity.

 

During the outage, 250 × 1,800 = 450,000 events accumulate. Their raw payload occupies 450,000 × 800 = 360,000,000 bytes, or 360 MB. A real queue also needs space for serialisation, metadata, variable-sized events and operational headroom. Replicas and multiple retained copies can increase total storage further.

 

Receiver capacity after recovery

New arrivals

Net backlog reduction

Time to clear 450,000 events

250 events/s

250 events/s

0 events/s

Does not clear while arrivals continue

300 events/s

250 events/s

50 events/s

9,000 seconds, or 2 hours 30 minutes

750 events/s

250 events/s

500 events/s

900 seconds, or 15 minutes

 

The relationship is backlog divided by spare processing capacity, provided capacity exceeds the continuing arrival rate. At 750 events/s, 450,000 ÷ (750 − 250) = 900 seconds. Dividing by the full 750 would incorrectly assume that new arrivals have stopped.

 

We independently checked these values with a second-by-second deterministic queue simulation. It uses fixed event sizes, constant rates and no recovery-rate fluctuations. It is a planning illustration, not a capacity benchmark. Real recovery must be measured across the complete pipeline, including source replay limits and destination write capacity.

 

How long does the buffer protect you?

 

If a buffer has 1 GB of additional free space and stores only these raw payload bytes, 1,000,000,000 ÷ 200,000 = 5,000 seconds, or 83 minutes 20 seconds, of a total downstream outage. Actual protection is shorter when stored events expand or some capacity is reserved. An already partly full 1 GB queue does not have 1 GB of free capacity.

 

Increasing a buffer buys time; it does not fix a sustained deficit. If arrivals remain above service capacity, a finite queue eventually fills. Back pressure can slow compatible senders, but other sources may drop events or expire history. Define that behaviour before relying on buffering as a loss-prevention measure.

 

Elastic's Logstash persistent queue documentation makes the limits concrete: it describes input back pressure, checkpoint-dependent durability and the lack of replication in that local queue. A persistent buffer should not be treated as protection against every disk or machine failure.

 

What UK broadband changes, and what it cannot fix

 

For a collector sending local telemetry to the cloud, upload speed is the relevant access direction. Pulling remote files into a home server mainly uses downstream capacity. The remote endpoint, API allowance and storage system can constrain either workflow regardless of the advertised broadband tier.

 

Trace the actual path: source application, local storage and collector, Ethernet or WiFi, router, access connection, ISP and wider route, remote receiver, then its storage and processing. A slow parser, throttled API or saturated destination can leave the line mostly idle while ingestion still falls behind. More line capacity cannot remove those limits.

 

For a separate ideal transfer example, 1 GB contains 8,000 megabits. At a constant 20 Mbps payload rate it takes 400 seconds, or 6 minutes 40 seconds; at 100 Mbps it takes 80 seconds. These are mathematical times before overhead and other constraints, not promises for any UK package. Check the actual upstream or downstream product rate, current competing traffic and end-to-end application throughput.

 

Neither FTTP nor a symmetrical service makes ingestion automatically reliable. Their relevance depends on which path is constrained. For a small telemetry feed, restart safety and retained history may matter more than another large increase in headline Mbps.

 

Diagnosing missing or stale ingested data

 

Start with one known source event and trace its identity. A dashboard that has not changed could mean collection stopped, events were rejected, processing fell behind or the display still shows a cached result.

 

  1. Establish the missing scope: source, identities, time range and expected outcome. Confirm that the source actually produced the data.

  2. Check collection access: credentials, permissions, DNS, TLS, routing, API limits and source availability. Compare the last successful source position with the current one.

  3. Inspect admission outcomes: accepted records, duplicates, rejects, partial batches and full queues. Separate a completed request from completed processing.

  4. Compare progress per source or partition. Check the oldest outstanding event, retained source history and checkpoint position before resetting anything.

  5. Measure the limiting stage: collection rate, network payload throughput, parsing CPU, disk writes and destination service capacity. Use wired Ethernet to isolate WiFi when the local network is suspect.

  6. Resolve the cause, then replay a controlled range using the documented recovery path. Preserve the original evidence and test duplicate handling before replaying a large backlog.

  7. Reconcile identities and outcomes, verify downstream visibility and confirm that both backlog and freshness recover. A restarted process is not sufficient proof.

 

Measure freshness where data is actually used. Keep collection delay, queue age, processing delay and publication delay separate. A high event count can coexist with stale data if the same records are repeatedly retried. Clock errors can also make age metrics misleading, so document timestamp meanings and check time synchronisation.

 

Choosing an ingestion design

 

Choose the simplest pattern that satisfies the required freshness, completeness and recovery window. A scheduled, replayable file import can be easier to operate than a permanently running event platform for a once-daily report. A live alert may need continuous collection, durable buffering and clear overload handling.

 

Before selecting a tool, establish:

 

  • The data scope, source interface and how inserts, updates and deletes are discovered.

  • Acceptable delay, peak arrival rate, event-size distribution and required catch-up time.

  • What acknowledgement promises, what failures storage tolerates and how far back replay is possible.

  • How identities, schema changes, rejected events and downstream side effects are handled.

  • Who monitors failures, pays for retained copies and operates recovery.

 

Queues, brokers, ingestion agents and managed services solve different parts of that problem. Their presence on an architecture diagram does not prove that the whole workflow meets it. Test the specific failure and recovery paths that matter to the intended use.

 

Security and the cost of keeping raw data

 

Authenticate producers, validate permissions and protect transport with suitable encryption and certificate checks. Validate webhook authenticity using the provider's documented mechanism, and prevent unsupported or excessively large payloads from exhausting the receiver. Keep collection credentials out of payload URLs and diagnostic logs.

 

Raw archives, retry queues and rejected-event stores can contain the same sensitive material as the original source, sometimes with additional identifiers. Give each an appropriate access and retention policy. Keeping raw inputs can help investigation and replay, but retaining every copy indefinitely increases exposure and operating cost.

 

Account for request volume, database reads, source log retention, storage, replicas, indexing and replay traffic. Optimising only the price per received gigabyte can miss the expensive part of the workflow. For a home lab, monitor available disk space and the effect of collection on the services being observed.

 

The key takeaway

 

Data ingestion brings source information into a target system. A dependable design explains which data was collected, what was admitted, where it is safely retained and how the system recovers without silently skipping or double-counting records. Throughput matters, but completeness, freshness and a tested recovery path determine whether the result is useful.

 

Frequently asked questions

 

Is data ingestion the same as ETL?

 

No. Ingestion collects and admits data into a target, while ETL describes extraction, transformation and loading in that order. Their responsibilities overlap, but an ingestion stage can retain original messages without performing the transformations needed for a final reporting dataset.

 

Does streaming ingestion mean real time?

 

It means data enters through a continuing flow rather than waiting for one complete bounded dataset. It does not guarantee zero delay. Buffering, network conditions, retries and later processing determine when an event becomes usable.

 

Is push ingestion better than pull?

 

Neither is universally better. Push requires a suitable receiving path and overload behaviour. Pull gives the collector control over requests but depends on source access, cursors and retention. Either can support batch or streaming workflows.

 

Why do retries create duplicate data?

 

A receiver may store an event successfully while its acknowledgement never reaches the sender. The sender then retries because the outcome is uncertain. Stable identities and atomic, replay-safe writes can prevent repeated delivery from creating repeated effects within their defined scope.

 

Can faster broadband fix slow ingestion?

 

It can help when the access connection is the limiting stage. It will not fix API request limits, slow parsing, saturated storage, rejected data or a receiver that cannot process new arrivals quickly enough. Measure the complete path first.

 

Does a persistent queue prevent all data loss?

 

No. Its protection depends on when data becomes durable, available capacity, acknowledgement behaviour and the failures its storage can survive. A local persistent queue may still lose data after an unprotected disk failure or before the required persistence checkpoint.

 
 
UK Techie Broadband Providers
bottom of page