Data Pipeline Architecture: Layers, Patterns and Design Choices
Data Pipeline Architecture: Layers, Patterns and Design Choices

Data pipeline architecture is the plan for how data travels from the systems that create it to the people, apps and models that use it. It decides what happens at each step, in what order, and under what rules. Get it right and reports are trustworthy, new data sources are easy to add, and costs stay predictable. Get it wrong and your team spends its week repairing broken jobs.
This guide walks through the layers every pipeline has, the patterns teams choose between, how to decide between batch and real-time, and the practices that keep pipelines reliable. It also covers what changes when the data is protected health information.
TL;DR
- A pipeline architecture has four working layers (ingestion, processing, storage, serving), with orchestration and monitoring running across all of them.
- ETL and ELT differ only in where transformation happens. Most cloud teams now load first and transform in the warehouse or lakehouse.
- Choose batch, micro-batch or streaming by the freshness the business needs, not by what sounds modern. Each step toward real time costs more to build and run.
- Write service level targets before you write pipeline code, and design every step so it can be safely re-run.
- Healthcare data adds HIPAA safeguards to the design itself: separated zones, encryption, access control and audit logging.
Table of Contents
- What data pipeline architecture actually covers
- The layers of a modern pipeline
- ETL vs ELT: where transformation happens
- Batch, micro-batch and streaming
- Architecture patterns worth knowing
- Best practices that hold up in production
- Designing pipelines for healthcare data
- How to choose your architecture: a short worked example
- Perspective
- Work with CoreWorx on your pipeline
- FAQ
- Sources
What data pipeline architecture actually covers
A data pipeline gathers data, cleans it up, stores it and makes it usable. The architecture is the blueprint behind that: which components exist, how they connect, and what each is allowed to do. It is separate from the tools. You can draw the architecture on a whiteboard before you pick a single product.
That distinction matters for budget. The same logical design can run on a managed cloud warehouse, a self-hosted stack or a mix. Teams that decide the design first usually swap tools later without rewriting everything.
The layers of a modern pipeline
Databricks describes four layers: ingestion, processing and transformation, storage, and serving and consumption, with orchestration and observability across all of them. IBM splits the same ground into five layers by separating monitoring and orchestration. Either way, the flow is the same.
Ingestion
This layer collects raw data from APIs, databases, IoT devices and SaaS applications. The key choice is how data arrives: scheduled pulls, change data capture from a database, or a continuous event feed. Keep ingestion separate from transformation. If a business rule changes, you want to reprocess stored raw data, not call the source system again.
Processing and transformation
Here data is cleaned, validated, deduplicated, joined and enriched. Microsoft’s architecture guidance lists the typical operations: filtering, sorting, aggregating, joining, cleaning, deduplicating and validating. This is where most business logic lives, so it is where testing and version control pay off most.
Storage
Storage is usually a data warehouse, a data lake or a lakehouse that combines the two. A common approach is to keep several tiers: raw data exactly as received, a cleaned and standardized tier, and a curated tier ready for analysis. Each tier has its own access rules.
Serving and consumption
The last layer delivers curated data to dashboards, machine learning models, operational applications and other systems. A reporting screen that sums up activity across many locations is a typical example. Parking reports and analytics for multi-property operators show what a consumption layer looks like when the data arrives cleanly and on time.
Orchestration and observability
Orchestration schedules jobs, handles dependencies and retries failures. Observability tracks freshness, volume, schema changes and data quality so you hear about a problem before a customer or executive does. Skipping these two is the most common reason a working prototype turns into an unreliable production system.
ETL vs ELT: where transformation happens
A data pipeline is not the same thing as ETL. ETL (extract, transform, load) is one pattern a pipeline can use. A pipeline can also copy data without transforming it, feed a model, or push results back into an operational system.
The difference between ETL and ELT is narrow. Microsoft states that ELT differs solely in where transformation takes place: inside the target data store rather than in a separate engine.
The same guidance gives clear selection rules:
| Choose | When |
|---|---|
| ETL | You need to offload heavy transformations from a constrained target, complex business rules need a specialized engine, or compliance requires curated staging audits before loading |
| ELT | The target is a modern warehouse or lakehouse with elastic compute, and you want to keep raw data for exploration and reprocessing |
For most growing companies on a cloud platform, ELT is the practical default because raw data stays available. For regulated data, a hybrid is common: validate and de-identify before loading, then transform the rest in place.
Batch, micro-batch and streaming
This is the most consequential early decision. Batch processing handles everything currently available on each run. Streaming tracks what it has processed and handles only new data. Microsoft’s Databricks documentation notes that micro-batch suits analytical pipelines with seconds-to-minutes latency, while real-time mode suits sub-second operational workloads such as fraud detection and personalization.
In plain terms:
- Batch runs hourly, nightly or weekly. Right for finance close, weekly reporting and most dashboards.
- Micro-batch runs every few seconds or minutes. Right for operational dashboards and near-fresh analytics.
- Streaming processes each event as it arrives. Right for fraud checks, alerts, live inventory and personalization.
The question to ask is: what decision changes if this data is five minutes old instead of five seconds old? If the answer is none, batch or micro-batch is enough.
What real-time pipelines cost
Real-time is not free. Google Cloud notes that streaming and real-time pipelines are more expensive to build and run than batch, and that cost is a major factor in picking the design. Databricks’ production guidance adds that shorter triggers can increase cloud storage API costs, and that watermarks are how you balance late-arriving data against latency and the state you must hold.
There are also reliability requirements. Microsoft’s stream processing guidance describes error handling, retries and idempotent producers configured for exactly-once delivery as ways to protect data integrity. Streams also must cope with mixed formats, out-of-order events and imperfect data, usually through sliding or tumbling windows for time-based aggregation.
If data volume drives your costs, put numbers on it early. A budgeting method like this one for estimating data collection bandwidth shows how a few inputs turn a vague worry into a figure you can plan around.
Architecture patterns worth knowing
Lambda
Lambda keeps a batch layer for historical accuracy and a speed layer for low-latency results, then merges the two views at query time. It gives you both accuracy and freshness, at the price of maintaining two code paths for the same logic.
Kappa
Kappa starts from the idea that batch is a special case of streaming. Confluent explains that an unbounded stream has a start but no end, while a bounded stream has both, and a bounded stream is a batch. One engine does all transformations, business logic lives in one place, and history is reprocessed by replaying events.
Medallion-style tiers
Organizing storage into raw, cleaned and curated tiers is the pattern most small and mid-size teams should start with. It is simple to explain, easy to audit and works with either batch or streaming ingestion.
| Pattern | Best fit | Main cost |
|---|---|---|
| Batch with tiered storage | Reporting, analytics, most small and mid-size teams | Data is as old as the last run |
| Lambda | Need both historical accuracy and low-latency views | Two code paths to maintain |
| Kappa | Event-driven products with replayable history | Streaming expertise and always-on operations |
Best practices that hold up in production
Databricks lists design principles that match what we see in practice: separate ingestion from transformation, design for idempotency, build in data quality checks, plan for schema drift, use open storage formats, version control everything, treat governance as a first-class concern, and monitor end to end. A few deserve detail.
Make every step safe to re-run. Idempotent jobs let you retry after a failure without duplicating records. This single habit removes a large share of midnight incidents.
Define service levels first. Decide how fresh the data must be, how accurate, and how quickly failures must be fixed. Those targets are the standard every later choice is judged against. Google’s SRE workbook frames pipelines that run as a service around an SLO, graceful handling of degradations, and documentation that catch issues before production.
Load incrementally. Process only what changed rather than reloading everything. It cuts compute time, cost and the window in which something can fail.
Scale with demand. The same SRE workbook recommends autoscaling for streaming and variable workloads, because running peak capacity all day is an expensive and inefficient use of resources.
Plan for schema drift. Sources change columns without warning. Validate incoming structure and alert on changes instead of letting bad data flow downstream.

Designing pipelines for healthcare data
When a pipeline carries electronic protected health information, compliance is a design input, not a final review. NIST’s guide to the HIPAA Security Rule explains that regulated entities must implement reasonable and appropriate safeguards for the confidentiality, integrity and availability of ePHI.
In architecture terms, that tends to mean:
- Separated storage zones. Raw, standardized and curated tiers, with no direct consumer access to raw data, so fewer people and systems touch identifiable records.
- Encryption in transit and at rest, with strong authentication on every access path.
- Audit logging on reads and writes, so you can show who accessed what and when.
- Minimum necessary access. Each downstream consumer sees only the fields it needs, and de-identified data feeds analytics wherever possible.
- Business associate agreements with every vendor that handles the data. Your compliance officer or healthcare counsel should confirm which agreements apply to your setup.
These choices are far cheaper to build in at the start than to retrofit after a pipeline is live.
How to choose your architecture: a short worked example
Imagine a regional clinic group with five locations. Scheduling, billing and patient messaging sit in three different systems, and leadership wants a daily view of no-shows and revenue per provider.
- Freshness. A daily view is enough. That points to batch with an hourly schedule at most.
- Ingestion. Pull from each system’s API or database on a schedule, landing data untouched in a raw zone.
- Transformation. Standardize provider and location identifiers, deduplicate patients, and build curated tables for no-shows and revenue.
- Protection. Restrict the raw zone, encrypt everything, log access, and expose only de-identified aggregates to the dashboard where individual identity is not needed.
- Operations. Add retries, freshness alerts and row-count checks so a silent failure never produces a confident but wrong report.
Notice that streaming never entered the picture. If the same group later wants live appointment-slot alerts, that one use case can get a streaming path while everything else stays batch. Hybrids are normal.
Perspective
Most pipeline trouble we see is not caused by the wrong tool. It is caused by skipping discovery: nobody wrote down who uses the data, how fresh it must be, and what happens when it is wrong.
That is why our process starts with a deep discovery step before any build. Our transparent audit maps your sources, consumers and compliance duties, so the architecture fits your operation instead of a template. Our engineers come from big tech backgrounds and bring enterprise-grade rigor to teams of every size, and we design for HIPAA and SOC 2 compliance from day one.
Our advice: start with the simplest design that meets your freshness target, keep raw data, make every step re-runnable, and add real-time only where a decision truly depends on it. A pipeline built that way grows with you, and we build it so you own it.
Cameron
Work with CoreWorx on your pipeline
If your data lives in disconnected systems and you need it unified, we can help. We start with a Discovery Audit at $999, which maps your sources, users and requirements and is credited toward a build contract. From there you can choose a one-time build you own, from $2,500, or managed AI agents from $1,500 per month for ongoing operational automation. Larger custom platforms are scoped individually; see our custom software cost guide for how MVP and platform projects are priced.

For healthcare teams, our work on HIPAA-compliant healthcare software and a patient portal case study show how compliance shapes the design. To start the conversation, book a Discovery Audit.
If you are planning AI on top of your data, our enterprise runbook for AI agent deployment covers the controls that matter once pipelines feed automated systems.
FAQ
Is a data pipeline the same as ETL?
No. ETL is one pattern a pipeline can follow: extract, transform, then load. A pipeline is the broader workflow and may use ELT, simple replication or streaming instead. The difference is where and when transformation happens.
When should I use batch and when streaming?
Use batch when minutes or hours of delay are acceptable, as with most reporting. Use streaming when a decision must happen within seconds, such as fraud detection or live alerts. Micro-batch is a middle option that covers many needs at lower cost.
Do I need a real-time data pipeline?
Only if a specific decision or customer experience depends on data being seconds old. Real-time pipelines cost more to build and operate, so many teams get what they need from pipelines that refresh every few minutes. Price the requirement before committing to it.
What changes when the pipeline handles health data?
The HIPAA Security Rule requires safeguards for electronic protected health information, so storage zones, encryption, access control and audit logging become part of the architecture. Confirm the specifics for your organization with your compliance officer or healthcare counsel.
Sources
- What is data pipeline architecture? (Databricks)
- What is a data pipeline architecture? (IBM)
- Extract, transform, load (ETL), Azure Architecture Center
- Batch vs. streaming data processing in Azure Databricks
- What Data Pipeline Architecture should I use? (Google Cloud)
- Production considerations for Structured Streaming (Databricks)
- Choose a Stream Processing Technology, Azure Architecture Center
- Data Engineering Architectures: Lambda, Kappa and Beyond (Confluent)
- Improve and Optimize Data Processing Pipelines (Google SRE)
- NIST SP 800-66 Rev. 2, Implementing the HIPAA Security Rule
- Parking Reports and Analytics (MyParkingMgr)
- Estimating scraping bandwidth (Masklabs)