Estuary

Data Flow Explained: The 4 Components, Streaming vs. Batch, and Architecture

Get started with our detailed guide and learn the basics of data flow, understand how to use it, and discover the best real-world use cases.

What is data flow
Share this article

Every system moves data. The question is whether it moves the way you designed it to, or the way it happened to end up after three years of point-to-point integrations.

Data flow is the discipline of answering that question. It describes how information travels from the systems that produce it to the systems that consume it, and what happens to it along the way.

This guide covers what data flow is, its four components, the two types, the architecture behind it, and how to keep data flowing reliably without babysitting pipelines.

Key takeaways

  • Data flow is the movement of information from a source to a destination, passing through four components: source, mapping, transformation, and destination.

  • The two types are streaming (processed as it is generated) and batch (processed in scheduled groups). Most real systems need both.

  • Data flow architecture is the ingestion, processing, and storage layer that carries data between systems, commonly built on tools like Apache Kafka, Flink, or a managed platform.

  • Governance matters as much as movement. Encryption, access controls, and lineage are what make a data flow safe to run on sensitive data.

  • Reliable data flows require durable checkpoints, schema handling, monitoring, and clearly defined delivery guarantees so failures do not create silent gaps or inconsistent destinations.

What is Data Flow?

What Is Data Flow - Data Flow Concept
Image Source

Data flow is the structured movement of data from a source system to a destination system, including every transformation applied on the way. It is the path data takes through an organization, and the design of that path determines whether analytics, operations, and AI get information they can trust.

A well-designed data flow is predictable: you can say where any given record came from, what changed it, and where it landed. A poorly designed one is a tangle of scripts nobody wants to touch, which is why data flow design is the foundation of both data engineering and data integration practice.

The 4 Components of a Data Flow

Every data flow, regardless of scale, is built from the same four parts.

  • Data source. Where data originates. Common data sources include transactional databases, SaaS applications, event streams, IoT devices, application logs, and spreadsheets.
  • Data mapping. Matching fields in the source to fields in the destination without necessarily changing values. Mapping defines the route the data will follow.
  • Data transformation. The operations that reshape data on the way through: cleaning, deduplicating, joining, aggregating, and converting formats.
  • Data destination. Where data lands. A data warehouse, a data lake, an operational database, a search index, or an application.

Between the source and the destination sit data stores, the intermediate landing zones that hold data in transit, and a data sink, the final endpoint that consumes it.

How Does Data Flow Work?

data flow diagram

Data flow works by extracting records from a source, moving them across a transport layer, applying transformations, and writing them to a destination, either continuously or on a schedule.

The mechanics differ by design, but the sequence is consistent:

  1. Ingestion. Data ingestion captures records from the source, either by querying it on a schedule or by reading its change log as writes happen.
  2. Transport. Records move through a durable transport layer so that a downstream failure does not lose data already in flight.
  3. Transformation. Data is cleaned, enriched, and reshaped to fit the destination's model. In ETL the transformation happens before loading; in ELT it happens inside the destination.
  4. Delivery. Records are written to the destination, ideally without duplication or loss.
  5. Monitoring. The flow is observed for lag, errors, and schema changes.

The step teams underestimate is the second one. Without a durable transport layer, any failure between source and destination means data is simply gone, and the reconciliation job becomes somebody's weekend.

Types of Data Flow: Streaming vs. Batch

Streaming Data Flow

A streaming data flow processes each record as it is generated. Latency is measured in milliseconds, and the destination reflects the source continuously.

Streaming suits anything where staleness has a cost: fraud detection, real-time analytics, operational dashboards, sensor telemetry, and personalization. If a decision is made on the data within seconds of the event, it needs a stream. Real-time streaming is also what feeds AI systems that must act on current state rather than yesterday's snapshot.

Batch Data Flow

A batch data flow collects records into groups and processes them on a schedule, typically hourly or nightly.

Batch processing is often operationally simpler and cost-effective for bounded or delay-tolerant workloads, although the actual cost depends on data volume, processing frequency, infrastructure, and whether jobs repeatedly scan historical data.

 StreamingBatch
LatencyMilliseconds to secondsMinutes to hours
Costworkload-dependentworkload-dependent
Best forReal-time insights, operational sync, AIReporting, financial close, backfills
ComplexityHigherLower

The false choice is picking one. Most organizations need both, which is the argument for a platform that can stream in real-time when it matters and batch when it doesn't rather than two separate stacks.

Data Flow Architecture

Data flow architecture is the set of components that carry data between systems: the ingestion layer, the transport and processing layer, the storage layer, and the destinations.

  • Ingestion layer. Captures data from sources. Log-based change data capture (CDC) reads a database's transaction log directly, which avoids adding query load to production.
  • Transport and processing layer. Moves data durably and applies transformations in flight. This layer may use an event streaming platform such as Apache Kafka, a processing engine such as Flink or Spark, a cloud-native messaging service, or a managed data movement platform.
  • Storage layer. Data stores and data lakes that persist records in transit or at rest, increasingly on a data lakehouse that serves both.
  • Destination layer. Warehouses, operational databases, and applications that consume the data.

Two properties separate an architecture that holds up from one that does not. Scalability, so throughput grows without a redesign. And low latency, so the delay between an event and its availability downstream stays inside what the business actually needs.

Building this yourself means running Kafka, managing connectors, and owning the failure modes. A managed platform gives you the same architecture without the operational burden. For the deeper treatment, see our guide to data streaming architecture and to distributed architecture.

Data Flow Diagrams (DFDs)

A data flow diagram (DFD) is a visual model of how data moves through a system, showing sources, processes, data stores, and destinations. DFDs are a systems-analysis tool: useful for documenting and communicating a design, not for running it.

A DFD has four elements: external entities (the sources and sinks outside the system), processes (which transform data), data stores (which hold it), and data flows (the arrows connecting them). They are drawn at increasing levels of detail, from a Level 0 context diagram that shows the system as a single process, down through Level 1 and Level 2 as each process is decomposed.

Different conventions use different symbols. Yourdon and DeMarco use circles for processes; Gane and Sarson use rounded rectangles.

Data Flow Management and Governance

Moving data is the easy half. Governing it is what makes a data flow safe to run on anything that matters.

  • Encryption. Data should be encrypted in transit and at rest. Any flow carrying sensitive data or personal data needs this as a baseline, not an add-on.
  • Access controls. Who can read a stream, who can change a transformation, and who can add a destination should all be explicit.
  • Data governance and lineage. Knowing where a field came from and what transformed it is what lets you answer a regulator, or debug a wrong number on a dashboard.
  • Schema management. Sources change. A flow that breaks silently on a schema change is worse than one that fails loudly.
  • Data quality. Validation on the way through beats reconciliation after the fact.

Data Flow Use Cases

  • Real-time analytics and BI. Business intelligence dashboards that reflect the business now rather than at last night's load. This is the most common driver for moving from batch to streaming, and the clearest gain in operational efficiency.
  • Fraud detection. Scoring transactions as they happen. A batch flow that catches fraud the next morning has caught nothing.
  • Operational data sync. Keeping a warehouse, a CRM, and an application consistent with each other without point-to-point integrations between every pair.
  • Sensor telemetry. Device data arriving continuously from the field, where volume is high and each individual record is small.
  • AI and ML. Models and agents that act on current state need data pipelines that deliver current state. Stale features produce confidently wrong outputs.

In production, Recart processes more than 500 million monthly transactions using MongoDB, Estuary, and SingleStore. Glossier reduced data integration costs by 50% and accelerated sync times from hours to minutes.

How Estuary Simplifies Data Flow

Estuary is the right-time data platform. It unifies CDC, streaming, batch, and SaaS app syncs into one managed system, so a data flow is something you configure rather than something you operate.

  • Right-time cadence. Run pipelines continuously or schedule materializations based on freshness and destination-compute requirements. Compatible real-time sources and destinations can support sub-100ms delivery.
  • Log-based CDC.Change data capture reads directly from the database transaction log rather than polling, so replication adds no load to the source.
  • Delivery guarantees. Estuary provides exactly-once semantics for derived collections and transactional materializations. Non-transactional event destinations may use at-least-once delivery, in which case downstream consumers should be prepared to handle possible duplicates.
  • Capture once, sync everywhere. 200+ no-code connectors move data from any source to any destination, reusing a single capture across every downstream system.
  • Predictable cost. Transparent per-GB pricing instead of monthly-active-rows penalties.

There is no Kafka to run, and no fleet of brittle data pipelines to babysit. Build visually in the Estuary UI or develop with the flowctl CLI, and transform with streaming SQL or TypeScript in the pipeline, or with dbt in the warehouse.

Start streaming your data for free. Build a Pipeline or explore the documentation.


Estuary is the right-time data platform that replaces fragmented data stacks by consolidating CDC, streaming, batch, and pipelines into a single managed system.

FAQs

    What is data flow?

    Data flow is the structured movement of data from a source system to a destination system, including every transformation applied along the way. It is made up of four components: the data source, data mapping, data transformation, and the data destination.
    The four components are the data source (where data originates), data mapping (matching source fields to destination fields), data transformation (cleaning, joining, and reshaping the data), and the data destination (where the data lands, such as a warehouse or application).
    The two types are streaming and batch. A streaming data flow processes each record as it is generated, with latency in milliseconds. A batch data flow groups records and processes them on a schedule, such as hourly or nightly. Most organizations need both.
    Data flow is the concept: the path data takes from source to destination. A data pipeline is the implementation: the actual system that moves the data along that path. You design a data flow and you build a pipeline to execute it.
    Data flow mapping is matching fields in a source system to fields in a destination system so data lands in the right place without necessarily changing its values. It defines the route the data follows and is a prerequisite for any transformation applied on top.
    A data flow diagram (DFD) is a visual model showing how data moves through a system, using four elements: external entities, processes, data stores, and data flows. It documents a system design rather than running it, and is drawn at increasing levels of detail from a Level 0 context diagram downward.

Start streaming your data for free

Build a Pipeline

About the author

Picture of Jeffrey Richman
Jeffrey RichmanData Engineering & Growth Specialist

Jeffrey is a data engineering professional with over 15 years of experience, helping early-stage data companies scale by combining technical expertise with growth-focused strategies. His writing shares practical insights on data systems and efficient scaling.

Streaming Pipelines.
Simple to Deploy.
Simply Priced.
$0.50/GB of data moved + $.14/connector/hour;
50% less than competing ETL/ELT solutions;
<100ms latency on streaming sinks/sources.