Sunday, 16 August 2026

Data Pipelines Explained — How Data Travels from Source to Insight

We generate data constantly.

Every time someone:

  • makes a payment
  • opens a mobile application
  • places an order
  • searches a website
  • sends an API request
  • accesses a server
  • interacts with an IoT device

some form of data is produced.

But there is a gap between:

Data being generated

and

Data becoming useful information.

That gap is where data pipelines come in.


🚚 Think of a Data Pipeline Like a Supply Chain

Imagine ordering a product online.

The product doesn't simply appear at your doorstep.

It goes through:

Manufacturer
     ↓
Warehouse
     ↓
Transportation
     ↓
Distribution Center
     ↓
Delivery
     ↓
You

A data pipeline works in a surprisingly similar way.

Data Sources
     ↓
Data Ingestion
     ↓
Storage
     ↓
Processing
     ↓
Serving
     ↓
Analytics / ML / AI

The data is generated somewhere, transported, processed, and finally delivered to the place where it creates value.


πŸ—️ What Exactly Is a Data Pipeline?

A data pipeline is a series of processes that move data from one or more sources to a destination while potentially performing operations such as:

  • collection
  • validation
  • transformation
  • enrichment
  • aggregation
  • storage

A simple example:

Application
     ↓
Database
     ↓
Data Pipeline
     ↓
Data Warehouse
     ↓
Dashboard

But real enterprise pipelines are usually much more complicated.



1️⃣ Data Sources — Where Does Data Come From?

The first question in any pipeline is:

Where is the data being generated?

There could be dozens or even thousands of sources.

Structured sources

Oracle Database
MySQL
PostgreSQL
SQL Server

Files

CSV
JSON
XML
Parquet

Applications

Mobile Apps
Web Applications
APIs
Microservices

Machine-generated data

Server Logs
IoT Sensors
Monitoring Systems
Network Devices

This is why modern data platforms need to support many different ingestion methods.


2️⃣ Data Ingestion — Getting Data into the Pipeline

Now we have data.

But how do we get it into our data platform?

That's the job of data ingestion.

There are several approaches.


πŸ“¦ Batch Ingestion

Data is collected and moved periodically.

For example:

11 PM → Collect transactions

↓

12 AM → Load data

↓

1 AM → Process data

This might be perfectly acceptable for a daily financial report.


⚡ Streaming Ingestion

Sometimes waiting until midnight isn't good enough.

Imagine a fraud detection system.

A transaction happens:

₹75,000 transaction
       ↓
Streaming pipeline
       ↓
Fraud detection
       ↓
Alert

The data needs to move almost immediately.

Technologies such as Apache Kafka are commonly used in event-streaming architectures.


πŸ” Change Data Capture (CDC)

Here's another interesting approach.

Suppose an Oracle database contains:

CUSTOMER_ID | BALANCE
101         | 50000

The customer deposits ₹10,000.

Instead of repeatedly copying the entire table, CDC can capture the change:

UPDATE CUSTOMER
SET BALANCE = 60000
WHERE CUSTOMER_ID = 101;

The downstream system receives the change rather than unnecessarily moving everything again.

This can significantly reduce data movement for large databases.



3️⃣ Storage — Where Does the Data Go?

Once data enters the platform, we need somewhere to store it.

And this is where our previous blog becomes relevant.

Remember:

ETL vs ELT?

In traditional ETL, transformation often happens before the data reaches the warehouse.

Modern ELT architectures often look like:

Source
  ↓
Ingestion
  ↓
Raw Data
  ↓
Cloud Storage / Data Lake
  ↓
Transformation
  ↓
Warehouse / Lakehouse

The raw data may be stored in:

  • Object Storage
  • Data Lakes
  • Cloud Warehouses
  • Lakehouses

🏞️ Raw Data vs Processed Data

Suppose an e-commerce company receives this event:

{
  "customer_id": 101,
  "product": "Laptop",
  "amount": 75000,
  "timestamp": "2026-08-04T10:30:00"
}

The raw event could be stored exactly as received.

Later, the pipeline might transform it into:

customer_id
product
amount
transaction_date
region
tax

This separation between raw data and processed data is extremely useful.

Why?

Because tomorrow you might discover a new use for the original data.


4️⃣ Data Processing — Making Data Useful

Raw data isn't necessarily ready for analytics.

We may need to:

  • remove duplicates
  • handle missing values
  • standardize formats
  • join datasets
  • calculate metrics
  • filter records
  • aggregate data

For example:

SELECT
    customer_id,
    SUM(amount) AS total_spend
FROM transactions
GROUP BY customer_id;

Now we're turning thousands of transactions into useful customer-level information.



5️⃣ Data Quality — The Part We Don't See

Here's something that's easy to overlook.

A pipeline can successfully move data...

and still produce bad results.

Imagine the pipeline says:

Records received: 10,000
Records processed: 10,000
Errors: 0

Looks perfect.

But suppose 2,000 records contain incorrect customer IDs.

The pipeline technically worked.

The data didn't.

That's why production data pipelines need data-quality checks.

Examples:

NULL checks
Duplicate checks
Range validation
Schema validation
Referential integrity
Record count validation

For example:

assert df["customer_id"].notna().all()

This simple check ensures every record has a customer ID.


6️⃣ Data Transformation vs Data Processing

These terms are sometimes used interchangeably, but there is a subtle distinction.

Transformation generally means changing the data.

For example:

USD → INR
Name → Uppercase
Timestamp → Date

Processing is broader.

It can include:

  • transformation
  • filtering
  • joining
  • aggregation
  • validation
  • enrichment

So transformation can be considered one part of data processing.


7️⃣ Serving Layer — Finally, Someone Uses the Data

We've collected it.

Stored it.

Processed it.

Validated it.

Now what?

The final data can be consumed by different systems.

πŸ“Š Business Intelligence

Power BI
Tableau
Oracle Analytics

πŸ€– Machine Learning

Training dataset
↓
ML model
↓
Prediction

🧠 AI Applications

Data
↓
Embeddings / Vectorization
↓
RAG / AI application

πŸ–₯️ Operational Applications

Processed data can also be returned to applications through APIs or other serving mechanisms.





⚡ What About Real-Time Data?

This is where things become really interesting.

Not every pipeline can wait hours.

Consider a banking transaction.

Customer
   ↓
₹50,000 transaction
   ↓
Event
   ↓
Kafka
   ↓
Stream Processor
   ↓
Fraud Model
   ↓
Risk Score
   ↓
Alert

The entire process might need to happen in seconds.

Compare that with a monthly business report.

There, processing once a day might be completely sufficient.

This gives us two broad pipeline patterns:

Batch

Large amount of data
        ↓
Periodic processing

Streaming

Continuous events
        ↓
Continuous processing

And this leads directly into our next topic:

Batch Processing vs Stream Processing


πŸ› ️ A Small Practical Example

Let's imagine we have a CSV containing server performance data:

timestamp,cpu_usage,memory_usage
10:00,35,61
10:01,40,63
10:02,92,81

A simple Python pipeline might look like:

import pandas as pd

# Extract
df = pd.read_csv("server_metrics.csv")

# Transform
df["high_cpu"] = df["cpu_usage"] > 80

# Load
df.to_csv("processed_metrics.csv", index=False)

This tiny example follows the same basic principle as a much larger enterprise pipeline:

Extract
   ↓
Transform
   ↓
Load

The difference is scale, reliability, orchestration, monitoring, and complexity.


🏒 What Does a Production Pipeline Need?

A real production pipeline isn't just:

Read → Transform → Write

It needs to answer questions like:

What if the source database is unavailable?

Retry.

What if 5% of records are invalid?

Quarantine or reject them.

What if the pipeline crashes halfway through?

Resume safely without corrupting the data.

What if the schema changes?

Detect and handle the change.

How do we know the pipeline is healthy?

Monitoring and alerting.

This is where data engineering becomes much more than simply moving data.


πŸ” Observability Matters

A production pipeline should provide visibility into:

  • execution time
  • records processed
  • failures
  • latency
  • data quality
  • throughput

For example:

Pipeline: Customer_Transactions

Status: SUCCESS

Records received: 1,250,000
Records processed: 1,247,892
Rejected: 2,108
Processing time: 14 min
Data quality: 99.8%

Now the team knows what actually happened.


🧠 Putting Everything Together

A modern enterprise data pipeline could look like:

                    DATA SOURCES
                         │
       ┌─────────────────┼─────────────────┐
       ↓                                              ↓                                              ↓
   Databases                               APIs                                     Logs
       │                                             │                                             │
       └─────────────────┼─────────────────┘
                         ↓
                  DATA INGESTION
               Batch / CDC / Streaming
                         ↓
                    RAW STORAGE
                    Data Lake
                         ↓
                 PROCESSING LAYER
              SQL / Python / Spark
                         ↓
                DATA WAREHOUSE
                   / LAKEHOUSE
                         ↓
          ┌──────────────┼──────────────┐
          ↓                                      ↓                                      ↓
      Dashboards                    ML                                  AI

And suddenly our original question has an answer.

How does data travel from source to insight?

It travels through a carefully designed pipeline where each stage has a specific responsibility.


🌱 Final Thoughts

When I first came across the term data pipeline, I imagined something relatively simple:

Data goes from A → B.

But modern data pipelines are much more than that.

They have to deal with:

  • huge data volumes
  • multiple data formats
  • real-time events
  • data quality
  • failures
  • schema changes
  • security
  • monitoring

And ultimately, the goal isn't simply to move data.

It's to move trusted data to the right place at the right time.

That's what turns raw data into something useful for analytics, machine learning, and AI.

Monday, 3 August 2026

πŸ”„ Why Did the Industry Shift from ETL to ELT?

Understanding the evolution of modern data pipelines.

Imagine You're Moving to a New House...

Suppose you're moving from Mumbai to Bengaluru.

You have hundreds of boxes.

There are two ways to do it.

🏠 Option 1 (ETL)

Before loading the truck, you:

  • remove unwanted items
  • organize clothes
  • label every box
  • throw away duplicates

Only then do you load the truck.

This is:

Extract
↓

Transform
↓

Load

Everything is cleaned before it reaches the destination.


🏠 Option 2 (ELT)

You quickly load everything.

Drive to Bengaluru.

Unload everything.

Then organize your house room by room.

This is:

Extract

↓

Load

↓

Transform

Storage is cheap.

Time is valuable.


This simple analogy immediately makes ETL and ELT intuitive.


Why ETL Was Invented

Twenty years ago...

Storage was expensive.

Databases were not designed to process petabytes of data.

Organizations only wanted:

  • clean data
  • summarized data
  • business reports

So engineers transformed data before storing it.

Example:

Sales System

Remove duplicate records

Convert currencies

Standardize dates

Load into Data Warehouse


 

Then Big Data Changed Everything...

Around the 2010s...

Companies started generating:

  • social media posts
  • IoT sensor data
  • videos
  • clickstream events
  • JSON logs
  • mobile app telemetry

Suddenly...

Nobody knew what data might become useful tomorrow.

So a new idea emerged.

Instead of cleaning data first...

Store everything.

Decide later.


This Is Where ELT Was Born

With cloud platforms like:

  • Snowflake
  • Google BigQuery
  • Databricks
  • Amazon Redshift
  • Oracle Autonomous Database

Storage became cheaper.

Processing became faster.

Instead of spending hours transforming data before loading...

Organizations simply loaded everything.

Transformations happened later using SQL or Spark.



ETL vs ELT — What's Actually Different?

Many people think the only difference is the order of the letters.

It's much deeper than that.

ETL asks:

"What data should we keep?"

ELT asks:

"Let's keep everything first. We'll decide later."

That's a huge mindset shift.


Technical Deep Dive

ETL Architecture

Source Systems

↓

Extraction

↓

Transformation Server

↓

Data Warehouse

The transformation engine performs:

  • Data cleansing
  • Standardization
  • Aggregation
  • Business rules
  • Deduplication

before loading.


ELT Architecture

Source Systems

↓

Data Lake / Cloud Warehouse

↓

SQL Engine

↓

Analytics

↓

Machine Learning

↓

Dashboards

Transformation happens inside the warehouse.



SQL Example

Suppose a sales table contains:

NameAmount
Ram₹500
Ram₹500

ETL

Duplicates removed before loading.


ELT

Load everything.

Then:

SELECT
    customer_name,
    SUM(amount)
FROM sales_raw
GROUP BY customer_name;

The warehouse performs the transformation.


Why AI Loves ELT

Imagine training a fraud detection model.

Today you only need:

  • customer transactions

Tomorrow you realize:

  • browser history
  • device information
  • clickstream logs

also improve predictions.

If you had discarded those during ETL...

They're gone.

ELT keeps the raw data available for future AI projects.

This is one of the biggest reasons modern AI platforms prefer ELT.


Where ETL Still Makes Sense

ETL hasn't disappeared.

It's still useful when:

  • strict regulatory rules exist
  • storage is limited
  • only trusted curated data should be stored
  • legacy systems are involved

Where ELT Excels

ELT is ideal for:

  • cloud-native architectures
  • AI and Machine Learning
  • big data
  • data lakes
  • lakehouses
  • streaming pipelines

Final Thoughts

At first glance, ETL and ELT seem like minor variations of the same pipeline.

But they represent two different philosophies.

ETL was built for an era where storage was expensive and business reporting was the primary goal.

ELT emerged because cloud computing, affordable storage, and AI changed how organizations think about data.

Instead of asking:

"What data should we keep?"

Modern systems increasingly ask:

"What insights might we discover tomorrow if we keep today's raw data?"

That simple shift explains why ELT has become the preferred approach for many cloud-native data platforms.


Checkout my data related blogs:

Data Lake vs Data Warehouse vs Lakehouse

Data Preprocessing in Data Science

Types of Data in Data Science


Data Pipelines Explained — How Data Travels from Source to Insight

We generate data constantly. Every time someone: makes a payment opens a mobile application places an order searches a website s...