What does a data engineer actually do, and does my business need one?
TL;DR
Difficulty: Beginner
A data engineer builds and runs the system that moves data from where it is created to where it is used, and makes sure it arrives complete, on time and correct.
- The lifecycle: generation, storage, ingestion, transformation and serving, with security, data management, DataOps, architecture, orchestration and software engineering underneath.
- For most small businesses the problem is correctness, not size: five years of orders at a shop taking 1,980 a month is about 119,000 rows.
- You need data engineering when reports combine several systems, take days, disagree, or feed automated decisions. Start small: a read replica, then a warehouse with dbt, tests and a schedule.
Your shop says one revenue figure, Google Analytics another, your spreadsheet a third. Data engineering is the work that turns that into one number you can trust. This first chapter of the series explains what a data engineer actually does, stage by stage, walks through one online shop's entire data landscape, and helps you decide whether your business needs this work yet.
The short answer: a data engineer makes numbers you can trust
A data engineer builds and runs the system that moves data from the places where it is created to the places where people use it, and makes sure it arrives complete, on time and correct. That is the whole job in one sentence. Everything else in this article is what that sentence means in practice.
Most businesses never notice that they need this. They notice the symptom instead: two reports that should agree and do not, a Monday morning spent in spreadsheets, a marketing figure nobody quite believes. Data engineering is the cure for that symptom, and like most cures it is worth knowing before you need it.
This is the first chapter of a series of 28. The series walks from the basics every data engineer must know, through a long and detailed block on cleaning raw data, to the expert topics of a data platform. This chapter draws the map. It answers two questions: what does a data engineer actually do, and does your business need one yet?
Example: one question, three answers
Throughout this series I use one invented business. Wrenfield Home is an online homeware shop in Leeds (wrenfieldhome.example). Priya owns it. Callum is her developer, and over time he has also become her data engineer. The shop sells about 1,400 products and takes about 1,980 orders a month, at an average order value of £72 including VAT.
On the first Monday of November, Priya asks a plain question: "How much did we really take in October, after returns?" She gets three answers.
- The shop's admin screen shows 1,980 orders at £72, so £142,560 including VAT.
- Google Analytics 4 (GA4) shows about 15% fewer purchases than the shop, because some visitors decline cookies or block tracking. So it reports 1,980 × 0.85 = 1,683 purchases, and 1,683 × £72 = £121,176.
- Callum's spreadsheet takes away returns. Returns run at 9% of orders, so 1,980 × 0.09 = 178.2, about 178 returned orders. If each return is a full refund at the average value, that is 178 × £72 = £12,816. So £142,560 minus £12,816 = £129,744 including VAT. Without the 20% VAT that is £129,744 ÷ 1.2 = £108,120.
Three numbers: £142,560, £121,176 and £108,120. None of them is a lie. Each answers a slightly different question from a different system. And there is a fourth problem hiding underneath: the warehouse company that handles returns sends its file up to five days late, so on 1 November Callum's spreadsheet only knows about some of October's returns.
A data engineer's work is to make sure that when Priya asks "how much did we take", there is one agreed definition, one pipeline that computes it the same way every time, and a note that says how complete the latest month is. The rest of this article shows how.
Where the job came from
The title "data engineer" is younger than most people think. For decades the same work was called business intelligence, data warehousing or "ETL", short for extract, transform, load: take data out of a system, reshape it, put it into a reporting database.
In January 2017, the engineer Maxime Beauchemin wrote an essay called The Rise of the Data Engineer. He described the field as "a superset of business intelligence and data warehousing that brings more elements from software engineering", and said that data engineers "build tools, infrastructure, frameworks, and services".1 That last part is the shift. The old reporting specialist worked inside a tool. The data engineer writes software, with version control, tests and deployments, whose product happens to be data.
Example: the same task, then and now
Ten years ago, Wrenfield Home's monthly report would have been built like this: once a month, someone exports orders to a CSV file, opens it in Excel, deletes the test orders by eye, pastes in the returns from the warehouse's email, and saves "Report October FINAL v3.xlsx".
The engineered version does the same steps as code. A script fetches the orders every night. A second step removes test orders by a written rule. A third joins returns as they arrive. A test checks that the order count matches the shop. The report reads from the result. If Priya asks in March why October changed, Callum can show her exactly which late returns arrived on which day, because every step is recorded. The steps are the same. The difference is that the engineered version can be rerun, checked and explained.
The data engineering lifecycle in five stages
The clearest description of the job I know comes from Joe Reis and Matt Housley's book Fundamentals of Data Engineering (O'Reilly, 2022). They describe a lifecycle of five stages: generation, storage, ingestion, transformation and serving.2 Data is born somewhere, it is kept somewhere, it is moved, it is reshaped, and it is handed to the people and systems that use it.
The stages are not a strict sequence. Storage, for example, happens at every step, and that is why the authors place it underneath the others rather than in a line. But as a map it works, and every chapter in this series sits somewhere on it.
Generation: where data is born
Generation is every system that creates data: the shop, the payment providers, the analytics tag, the ad platforms, the warehouse company, the people typing into spreadsheets. The data engineer usually does not own these systems. They need to understand them deeply all the same: what each row means, when it is written, when it can change, and what happens when something goes wrong.
Example: an order is born in Solidus. Wrenfield Home runs on Ruby on Rails and Solidus, an open source eCommerce platform, with a PostgreSQL database. When a customer pays, Solidus writes a row in the table spree_orders, with columns such as number, state, total, included_tax_total, completed_at, email and currency, and one row per product in spree_line_items, with order_id, variant_id, quantity and price.3 Callum needs to know that completed_at is the moment the order was placed, that state later changes to canceled or returned, and that total includes shipping and VAT. None of that is visible in a report. All of it changes the numbers.
Storage: where data is kept
Storage is where data lives at each step: the shop's own database, files on a server, a cloud warehouse. The choice decides how fast questions can be answered, what they cost and who can see the data. For a business of Wrenfield Home's size, the honest options are a second PostgreSQL database used only for reporting, or a cloud warehouse such as Google BigQuery, Snowflake, Amazon Redshift or ClickHouse. A later chapter in this series compares them in depth.
Example: a location for the warehouse. Callum chooses BigQuery, because Wrenfield Home already sends its GA4 data there. BigQuery asks for a location when he creates each dataset, and London is available as the region europe-west2.4 He picks it so that customer data stays in the UK, and writes the choice down in the project notes. This is a five minute decision that is painful to change later, because a dataset's location cannot be edited, only copied.
Ingestion: moving data in
Ingestion is moving data from the source systems into storage. It sounds like the boring bit. It is where most pipelines break, because it is where you depend on systems you do not control: an API changes a field, a file arrives late, a password expires.
Example: four ways in for four sources. At Wrenfield Home the GA4 data arrives by itself, because Google writes one table per day, named events_YYYYMMDD, into BigQuery.5 The Google Ads cost data must be fetched through the Google Ads API with a reporting query.6 Stripe offers a payout reconciliation report that lists which transactions make up each bank payout.7 And the warehouse company drops a CSV file on a server every morning. Four sources, four completely different ways in, each with its own way of failing.
Transformation: making raw data useful
Transformation turns raw data into something people can use: fixing types, renaming columns, removing test orders, joining returns to orders, computing net revenue. This is where the business rules live, and where cleaning happens. It is the stage this series spends the most time on, because it is where a number becomes right or wrong.
Example: from three answers to one. Callum writes one transformation that defines October's net revenue for Priya: completed orders, minus cancelled orders, minus test and staff orders, minus refunds and returns, without VAT. He writes the rule down, gives it a version number, and the report shows "returns known up to 4 November" under the figure. Priya now gets one number, and she knows how final it is.
Serving: handing data to people and systems
Serving is giving the transformed data to whoever uses it: a dashboard, a spreadsheet, a forecast, a marketing tool, an ad platform that bids on conversion values. The work is not finished when the table exists. It is finished when the right person uses it to make a decision.
Example: one table, three users. The same clean orders table feeds Priya's monthly report, the demand forecast that decides how many oak side tables to reorder, and the list of high value customers that goes to the newsletter tool. If the table is wrong, all three are wrong at once. That is why serving is where trust is won or lost.
The six undercurrents that run under every stage
Reis and Housley add six "undercurrents" that run under all five stages: security, data management, DataOps, data architecture, orchestration and software engineering.2 These are the parts that separate a pipeline that works today from one that still works next year.
| Undercurrent | What it means in plain words | At Wrenfield Home |
|---|---|---|
| Security | Only the right people and programs can see or change data | Callum's loader can read the shop database but never write to it |
| Data management | Definitions, ownership, quality, privacy and retention | "Net revenue" is written down once, with Priya as its owner |
| DataOps | Running pipelines like software: monitoring, alerts, incident handling | A failed night run sends Callum a message before 7am |
| Data architecture | How the pieces fit together, and why | Raw data is kept unchanged, clean tables are built from it |
| Orchestration | Running the steps in the right order, at the right time, with retries | Returns are loaded before the returns report is built |
| Software engineering | Code, version control, tests, reviews, deployments | Every SQL model lives in Git and has tests |
Example: the undercurrent that saves a Tuesday
On a Tuesday in spring, the warehouse company's server rejects Callum's login, because they rotated passwords without telling anyone. Without the undercurrents, the pipeline runs anyway, loads nothing, and the returns report quietly shows zero returns for the day. Priya sees a great day and moves on.
With the undercurrents, three things happen. Orchestration notices the file step failed and does not build the report on top of it. DataOps sends Callum an alert at 6.15am. Data management means the report shows "returns data last updated Monday" instead of a confident zero. The fault is the same. The outcome is entirely different, and that difference is most of what a good data engineer is paid for.
What a pipeline is, part by part
"Pipeline" is the word you will hear most. A pipeline is a series of steps that takes data from a source, through checks and changes, to a destination, automatically and repeatably. Every pipeline, however large, has the same parts.
| Part | What it does | The question it answers |
|---|---|---|
| Source | The system or file the data comes from | Where does this data come from, and who owns it? |
| Extract | Reads the data out of the source | What exactly arrived, and when? |
| Load | Writes it, unchanged, into storage | Is there always a way back to the original? |
| Transform | Types, cleans, applies business rules, models | What does this data mean for the business? |
| Test | Checks counts, keys, values and freshness | Is it right, and is it complete? |
| Serve | Puts the result where people and tools use it | Who uses this, and for what decision? |
| Schedule | Runs every part in order, at set times | When does it run, and what waits for what? |
| Monitor | Watches each run and alerts on trouble | Will Callum know before Priya does? |
Two rules hold for every part. First, keep the raw data exactly as you received it, with a note of where and when it came from. If a rule turns out to be wrong, you rerun the transformation from the raw data. If you overwrote the raw data, the mistake is permanent. Second, make every step safe to run twice. A step that adds yesterday's rows again when it is rerun will double your revenue the first time someone presses "retry". Engineers call this property idempotence: running the step once or five times gives the same result.
Example: the warehouse returns file, step by step
The warehouse company (a third party logistics provider, or 3PL) sends Wrenfield Home a file of yesterday's returns every morning. It looks like this:
RMA;SKU;QTY;RETURNED_AT;REASON
R-20481;WRN-10234;1;24/10/2026 17:42;Café table leg scratched
R-20482;WRN-11807;2;24/10/2026 18:05;Wrong colour
Five details in two lines will break a careless pipeline. The fields are separated by semicolons, not commas. The file is encoded as Windows 1252, an old Microsoft character set, so the "é" in "Café" turns into garbage if you read it as UTF 8, the standard encoding of the web. The SKU has a prefix, WRN-, that the shop does not use. The time stamp has no time zone, and it is UK local time, while the shop stores everything in Coordinated Universal Time (UTC). And the date is day first, which an American tool will happily read as the 24th month. The CSV format itself is only loosely standardised. RFC 4180 describes the common form, with commas, and many real files ignore it.8
Here is the extract and load step in Python with the pandas library. It does deliberately little: it reads the file the way the 3PL wrote it, keeps every value as text and adds two columns that record where and when the data came from.
from datetime import datetime, timezone
import pandas as pd
def load_3pl_returns(path: str) -> pd.DataFrame:
"""Read the 3PL returns file exactly as delivered. No cleaning here."""
df = pd.read_csv(
path,
sep=";", # the 3PL uses semicolons, not commas
encoding="cp1252", # Windows 1252, so "Café" survives
dtype=str, # keep every value as text, type it later on purpose
keep_default_na=False, # an empty cell stays "", it does not become NaN
)
df["_source_file"] = path
df["_loaded_at"] = datetime.now(timezone.utc)
return df
The transformation comes later and separately, in SQL: strip the WRN- prefix to match the shop's SKU, parse 24/10/2026 17:42 with an explicit day first format, convert it from UK local time to UTC, and join it to the order. Keeping the two apart means that when the 3PL changes its file next year, only one small step changes, and the original files are still there to reprocess.
The whole data landscape of one online shop
A small online shop has more data sources than most owners would guess. Listing them is the first thing a data engineer does in a new business, because you cannot design anything until you know what exists, how it arrives and what is wrong with it.
Here is the complete landscape of Wrenfield Home. Every chapter of this series works with these same sources and these same known problems.
| Source | What it holds | How it arrives | How often | Known problem |
|---|---|---|---|---|
| Shop database (Solidus on PostgreSQL) | Orders, line items, customers, addresses, products, payments, refunds, returns | Read from a replica | Nightly, later hourly | 3.1% duplicate customer accounts, about 40 test and staff orders a year, legacy prices stored as floating point numbers, country as free text in old addresses |
| GA4 BigQuery export | Website events: page views, add to basket, purchases | Written by Google into BigQuery | Daily | About 15% fewer purchases than the shop, because of consent and blockers |
| Google Ads and Meta Ads | Spend, clicks, impressions, platform reported conversions | APIs | Daily, with corrections for several days after | Platforms revise recent days, and each counts conversions its own way |
| Stripe and PayPal | Settlements: payments, fees, refunds, payouts | Reports and files | Daily | Amounts after fees, grouped by payout date, not order date |
| 3PL warehouse | Shipments and returns | Semicolon CSV, Windows 1252, on a server | Daily | Own SKU format with a prefix, local time without a zone, returns up to five days late |
| Supplier feeds | Product data, stock, dimensions | CSV and XML | Daily or weekly | One supplier sends dimensions in mm, the others in cm |
| Newsletter tool | 38,000 subscribers, opens, clicks, consent | Export | Weekly | Email addresses in a different case from the shop |
| Customer service tool | Tickets, reasons, linked orders | Export or API | Daily | Order numbers typed by hand |
| Marketing costs spreadsheet | Costs outside the ad platforms: agencies, samples, influencers | A sheet kept by hand | Whenever someone remembers | Free text, gaps, the odd typo |
About 2% of orders also have a missing or invalid phone number, and the time stamps from the 3PL are local time while the shop stores UTC. None of these problems is unusual. A later chapter in this series is entirely about why raw data is never clean.
Example: drawing the landscape
Callum draws the landscape before writing a line of code, as a picture Priya can follow. Every source lands in a raw layer unchanged. A staging layer fixes types and names. Tests run. Only if they pass do the modelled tables, called marts, get rebuilt. Reports and data science read only from the marts, never from the raw data.
How big is the data, really?
Data engineering is often sold as a problem of size: "big data", clusters, streaming. For most small and medium businesses, that is the wrong picture. Their data is small. Their problem is correctness, not volume.
It is worth doing the sums, because they decide which tools are sensible and what they will cost.
Example: the shop's data, counted
The order table is the heart of the business, and it is tiny by database standards. At 1,980 orders a month, that is about 23,760 a year, and over five years of history about 23,760 × 5 = 118,800 orders. If each order holds 2.3 products on average (an invented figure for the example), that is about 118,800 × 2.3 = 273,240 line items. Any database, including the shop's own PostgreSQL, answers questions about a quarter of a million rows in well under a second.
GA4 is where the volume is. With 110,000 sessions a month and, say, 18 events per session (also invented for the example: page views, scrolls, add to basket and so on), the shop produces 110,000 × 18 = 1,980,000 events a month, or about 1,980,000 ÷ 30.4 ≈ 65,000 events a day. Google's daily BigQuery export for a standard GA4 property is limited to 1 million events a day.5 Wrenfield Home uses about 6.5% of that, so it has plenty of room to grow.
If each event takes about 1.5 KB in BigQuery (another rough, invented assumption, since the real size depends on the parameters you send), a month of events is about 3 GB and a year about 36 GB. That is a real table, but it is not "big data" in any sense that needs special machinery.
| Data | Rows a year | Rows over five years | Pressure |
|---|---|---|---|
| Orders | 23,760 | 118,800 | Correctness |
| Line items (2.3 per order, invented) | 54,648 | 273,240 | Correctness |
| GA4 events (18 per session, invented) | about 23.8 million | about 119 million | Some volume, mostly cost of queries |
| 3PL returns rows (9% of orders) | about 2,140 | about 10,700 | Timeliness: up to five days late |
What a small warehouse costs to query
BigQuery's on demand pricing charges for the data each query reads, and the first 1 TiB (tebibyte, 1,024 GiB) of query data processed each month is free. The first 10 GiB of storage each month is also free.9 So a useful way to judge whether costs matter is to ask how many times a month you could scan your largest table before you pay anything for queries.
Here is the number of full reads of the table that fit into the free allowance, is the free query allowance per month, and is the size of the table that each query reads. It is a simple ratio, explained in Foundations: ratios and rates.
Example: how often Callum can read a year of GA4 data for free. One year of events is about 36 GB, which is about 33.5 GiB, because 36 × 10⁹ bytes ÷ 1,073,741,824 bytes per GiB ≈ 33.5. The free allowance is 1,024 GiB.
So : Callum could read the entire year of events about 30 times a month before paying for a single query. In practice he reads far less, because a well built table lets a query read only the days and columns it needs. Storage beyond the free 10 GiB is charged per GiB per month, in US dollars, at prices that differ by region, so check the current price page for your region before you plan a budget. A later chapter on performance and cost goes into this in detail. The lesson for now: for a business of this size, the warehouse bill is rarely the problem. Time spent on wrong numbers is.
Data engineer, analyst, scientist: who does what
People mix these three roles up constantly, and job adverts make it worse. In one paragraph: the data engineer builds and runs the pipelines and the tables, so that data arrives complete, correct and on time. The data analyst uses those tables to answer business questions and build reports. The data scientist uses them to build models that predict or explain, such as a demand forecast or a customer's expected lifetime value. In a small business, one person often wears two or all three hats, and that is fine as long as everyone knows which hat is on. I have written a whole article on who does what between data engineers, scientists and analysts, and another on how the three roles grow an eCommerce or SaaS business in practice.
Example: one question, three roles
Priya asks: "Should we stop selling the lowest priced candle range?"
- Callum, as data engineer, makes sure the line items, returns, payment fees and product costs all reach the warehouse, joined correctly at the level of one product in one order.
- As analyst, he computes the contribution margin of the range after returns and fees, and shows it next to the others.
- As data scientist, he estimates how many candle buyers go on to buy other products, so that dropping the range does not cut off a stream of new customers.
The analyst's answer is only as good as the engineer's tables, and the scientist's model is only as good as both.
How much of the job is cleaning and moving data
There is a famous claim that data people spend 80% of their time cleaning data. I could not trace it to a reliable primary source, so I do not use it. There is a dated survey that asked the question directly. In Anaconda's 2020 State of Data Science survey, 2,360 people from more than 100 countries answered an online questionnaire between 12 February and 20 April 2020. Asked to split their working time across tasks, the 1,099 respondents to that question reported 19% on data loading and 26% on data cleansing, so 45% together, ahead of visualisation (21%) and the three modelling tasks (11%, 12% and 11%).10
Read it for what it is: a self reported survey of data scientists and analysts, run by a company that sells data science software, with respondents recruited through social media and its own mailing list. It is not a measurement of your business. But the direction is plain: where pipelines are weak, highly paid analysts and scientists spend a large share of their week doing a data engineer's job by hand.
Example: what 45% looks like in Callum's month
Before any pipeline existed, Callum kept a rough log of his reporting time for one month (the hours are invented for the example). Exporting orders, ads and returns: 4 hours. Fixing and matching them in spreadsheets: 7 hours. Building the report itself: 3 hours. Total 14 hours, of which 4 + 7 = 11 hours, or 11 ÷ 14 ≈ 79%, is loading and cleaning. Even in a shop this small, the plumbing eats most of the reporting time. That is the time a pipeline gives back.
What a data engineer does in a typical week
Job titles are abstract. A week is concrete. Here is what the work looks like once a business has a small pipeline running. The proportions differ by business, but the kinds of task do not.
| Task | What it involves | Why it matters |
|---|---|---|
| Check the overnight runs | Read alerts, look at freshness and row counts | Problems are found before anyone opens a report |
| Add or fix a source | A new supplier feed, a changed API field | Sources change without asking |
| Write and review transformations | SQL models, business rules, tests | This is where numbers become right |
| Answer "why does this not match?" | Trace a number back to the raw rows | Trust is kept one question at a time |
| Document | Definitions, owners, known gaps | Next year's colleague, or next year's you, depends on it |
| Look after access and privacy | Who can see personal data, what is deleted when | It is the law, and it is the customers' data |
| Watch cost and speed | Slow or expensive queries | Small leaks become real money over a year |
Example: a Thursday morning alert
At 7.40am Callum sees an alert: yesterday's Meta cost data has 312 rows instead of the usual 480 or so. He checks the API response stored in the raw layer and finds that Meta returned only the first page of results, because his code stopped following the "next page" link after a change to the response. He fixes the code, writes a test that feeds it a two page response, reruns yesterday's load and confirms 478 rows. Without the row count check, the cost per order in Friday's report would have looked about a third better than it was, and Priya might have raised the Meta budget on the strength of a bug.
The skills a data engineer needs
The core skills are fewer than job adverts suggest, and deeper. In order of how often they matter:
- SQL, properly: joins and what they do to row counts, NULL, window functions, time zones. Almost every transformation is SQL. A later chapter in this series is devoted to the SQL traps that return a wrong number without an error.
- Data modelling: deciding what one row of a table means, its grain, and designing tables around the questions people ask.
- One programming language, usually Python, for the parts SQL cannot do: calling APIs, reading awkward files, testing.
- The tools of software engineering: Git, code review, automated tests, deployments. I work test first and put every release through a test gate and a release register, and the same habits apply to data. If you are new to the idea, start with test driven development explained.
- The warehouse and a transformation tool: for example BigQuery and dbt, a tool that turns SQL select statements into tested, documented tables.11
- Orchestration: running steps in order with retries, from a simple scheduled job to tools such as Apache Airflow, which describes workflows as a DAG (a directed acyclic graph, meaning steps with arrows that never loop back), or Dagster, which organises work around the data assets it produces.1213
- The business: what an order, a refund and a return mean in this shop. This is the skill that is hardest to hire and quickest to undervalue.
Example: the SQL behind Priya's question
Here is the first version of "October revenue as the shop sees it", run against a read only copy of the shop database. It is short, and it already holds three decisions a data engineer has to get right.
-- PostgreSQL. Solidus stores completed_at in UTC.
-- October in London runs from 1 Oct 00:00 BST (= 30 Sep 23:00 UTC)
-- to 1 Nov 00:00 GMT (= 1 Nov 00:00 UTC), because the clocks went back on 25 Oct.
SELECT
count(*) AS orders,
sum(total) AS revenue_incl_vat,
sum(included_tax_total) AS vat_included
FROM spree_orders
WHERE completed_at >= TIMESTAMP '2026-09-30 23:00:00'
AND completed_at < TIMESTAMP '2026-11-01 00:00:00'
AND state <> 'canceled';
First, the month boundary: the shop stores UTC, Priya thinks in UK time, and October 2026 starts during British Summer Time and ends after the clocks go back. Get this wrong and orders from late on 30 September land in October. Second, total includes shipping, so "revenue" here means what the customer paid, not product sales. Third, it says nothing yet about test orders, refunds or late returns. Each of those is a business rule, and each gets its own chapter later in this series.
Signs your business needs data engineering
Not every business needs a data engineer, and certainly not a full time one. These are the signs that it is time to invest. One sign alone rarely justifies it. Three or more usually do.
| Sign | What it looks like | What it costs |
|---|---|---|
| The same number differs between reports | Revenue in the shop, GA4 and the bank never agree, and nobody can say why | Meetings spent arguing about which number is right |
| Reporting takes days of manual work | Exports and spreadsheets every month | Senior time spent copying and pasting |
| Data lives in more than two systems that must be combined | Orders, ads, payments and stock in separate tools | Nobody can see margin per channel |
| Decisions wait for data | "Ask again next week" | Slow reactions to stock, ads or prices |
| Ad platforms or models are fed data automatically | Conversion values, audiences, forecasts | A data error turns into wasted spend or wrong stock |
| Nobody can say where a number came from | A figure in the board pack with no trail | Trust drops, and with it the use of data at all |
Signs it does not need it yet
The honest answer is often "not yet". You probably do not need data engineering if your questions are answered by one system's built in reports, if a monthly export takes less than an hour, if nobody makes automated decisions on the data, and if the numbers you use already agree with the bank. In that case, write down your definitions (what counts as an order, what counts as revenue), keep exports in one place, and revisit in six months. Clear definitions in a spreadsheet beat an expensive pipeline that computes the wrong thing. The glossary of eCommerce numbers is a good place to start those definitions.
Example: Wrenfield Home runs the checklist
Wrenfield Home's monthly report combines the shop, GA4, Google Ads, Meta, Stripe, PayPal and the 3PL: seven systems. Assembling it takes Callum about 14 hours. The shop, GA4 and Callum's spreadsheet disagree on October's revenue by up to £34,440 (£142,560 minus £108,120). And Google and Meta bid on conversion values the shop sends them, so an error there spends real money. Four signs out of six. Wrenfield Home needs data engineering, and the decision flow points to a small pipeline, not a large platform.
Is it worth it? A simple payback sum
A pipeline is an investment of time. The simplest way to judge it is to ask how many months of saved manual work pay back the time it takes to build.
Here is the payback time in months, is the hours needed to build the pipeline, is the hours a month the manual process takes today, and is the hours a month needed to look after the pipeline once it runs. The bottom of the fraction is the monthly saving. Ratios like this are explained in Foundations: ratios and rates.
Example: Callum's sum. Callum estimates 60 hours to build the first pipeline for the monthly report: sources, raw layer, staging, the revenue rule, tests and a schedule. Today the report takes 14 hours a month. Once the pipeline runs, he expects about 3 hours a month for alerts, small fixes and reviews. All three figures are invented for the example.
So months. After that, the pipeline saves 11 hours a month. The sum leaves out the larger benefit, which is harder to count: decisions made on the right number. If one wrong Meta budget decision a year is avoided, that alone may be worth more than the build.
A word of honesty about the inputs. Build estimates for a first pipeline are usually too low, because the first source always hides surprises. Double and the payback becomes 120 ÷ 11 ≈ 10.9 months, which is still a good investment. If the sum only works with an optimistic estimate, wait.
How to get data engineering without hiring a full time engineer
A data engineer is a role, not necessarily a person on the payroll. For a business of Wrenfield Home's size there are four realistic stages, and you move up only when the one below stops being enough.
| Stage | What it is | When it is enough |
|---|---|---|
| 1. Exports and definitions | Built in reports, monthly exports, one spreadsheet with written definitions | One or two systems, a monthly report under an hour |
| 2. A read replica and SQL | A read only copy of the shop database and a set of saved, reviewed SQL queries | Questions mostly about orders and customers |
| 3. A warehouse with dbt and a scheduler | Several sources loaded daily into BigQuery or PostgreSQL, transformed and tested with dbt, run by a scheduled job with alerts | Several sources, reports that must agree, automated decisions |
| 4. An orchestrator, and later streaming | Dagster or Airflow, more sources, near real time only where it pays | Many dependencies, several people, a business that acts within minutes |
A read replica is a second copy of the database that the main database keeps up to date and that accepts only read only queries. PostgreSQL calls this a hot standby.14 It lets you query the shop's data without slowing down the checkout, which is the first rule of reporting on a live shop: never run heavy queries against the database customers are buying from.
Who does the work at each stage is a separate question. A developer who knows the shop well, like Callum, can grow into stages 2 and 3, with outside help to set up the foundations. A specialist on a fixed engagement can build stage 3 and hand it over with documentation and tests. A full time data engineer starts to make sense at stage 4, or when several people depend on the data every day. I build shops on Ruby on Rails and Solidus and run data science work such as forecasting, lifetime value and segmentation for clients, so stage 3 is where I usually meet a business. I publish my prices openly, so you can check whether an engagement makes sense before you get in touch.
Example: a twelve month plan for the shop
Callum and Priya agree a plan in three steps. In the first month, a read replica of the shop database and five reviewed SQL queries for the questions Priya asks most. In months two to four, BigQuery in London, the shop, GA4, ad costs and the 3PL loaded daily, a dbt project with staging and marts, tests on every key, and a scheduled job that alerts Callum. From month five, payment settlements, supplier feeds and the marketing spreadsheet, and the first forecast built on clean data. An orchestrator such as Dagster waits until the scheduled job becomes hard to manage. Streaming waits until a decision genuinely needs data within minutes, which for this shop may be never.
If you want to see how such a warehouse is wired to a Rails and Solidus shop, I have described it step by step in setting up Google BigQuery for a Rails and Solidus shop.
What "good" looks like
How do you know whether the data engineering in your business is any good, whether you built it, hired it or inherited it? Five properties, each of which you can check without reading any code.
One trusted number per question
Every important question has one definition, written down, with an owner, and every report uses it. "Revenue" without a definition is three numbers in three meetings. When systems legitimately differ, as the shop, GA4 and the ad platforms always will, the difference is explained, not argued about. I have written a separate article on reconciling analytics, ads and orders.
Example: net revenue, defined once. Priya and Callum write: "Net revenue for a month is the sum of completed orders placed in that month in UK time, without VAT, excluding cancelled, test and staff orders, minus refunds and returns for those orders known at the time of reporting. Owner: Priya. Version 1, 3 November 2026." The definition sits next to the report, and every chart that says "net revenue" uses it.
Reproducible
Run the same pipeline on the same raw data and you get the same numbers, today or in a year. That needs the raw data kept, the code in version control and the rules versioned. When a number changes, you can say exactly why: new data arrived, or a rule changed.
Example: why October changed. In March, Priya notices that October's net revenue is £214 lower than in the November report. Callum checks: a customer returned an order in January, more than two months after buying, and the rule counts returns against the month of the order. The raw 3PL file from January holds the row, the rule version is unchanged, and the explanation takes five minutes instead of an afternoon.
Documented
Every table says what one row means, where it comes from, who owns it and what is known to be wrong with it. Documentation that lives next to the code, as it does in dbt, stays up to date far more often than a separate wiki.
Example: a table that explains itself. The documentation of fct_orders reads: "One row per completed order. Source: spree_orders via the read replica. Excludes test and staff orders (rule v1). Known gap: about 2% of orders have no valid phone number, so phone based matching misses them." A new analyst can use the table safely on day one.
Tested
Automated checks run on every load: keys are unique, required fields are present, values are in the allowed set, every order points to a customer that exists, data is fresh. When a test fails, the run stops before the wrong number reaches a report. dbt calls these data tests, and they are written in a few lines of YAML next to the model.15
Example: the tests on Wrenfield Home's orders. This is part of Callum's dbt project. It warns if the 3PL returns have not been loaded for 26 hours and fails after 50, and it checks that order numbers are unique and present and that every order points to a known customer. The syntax follows current dbt, where freshness moved under config in version 1.9 and the test arguments under arguments in version 1.10.5.1615
version: 2
sources:
- name: threepl
schema: raw_threepl
config:
freshness:
warn_after: {count: 26, period: hour}
error_after: {count: 50, period: hour}
loaded_at_field: _loaded_at
tables:
- name: returns
models:
- name: fct_orders
description: "One row per completed order, test and staff orders removed (rule v1)."
columns:
- name: order_number
data_tests:
- unique
- not_null
- name: customer_id
data_tests:
- relationships:
arguments:
to: ref('dim_customers')
field: customer_id
A small detail an experienced engineer will appreciate: dbt's relationships test skips NULL values, so an order with no customer at all passes it. If every order must have a customer, add not_null as well. Guest checkouts in Solidus have no user_id, which is exactly why Callum's model gives every guest a customer key built from the email address before this test runs.
Monitored
Tests check what you thought of. Monitoring watches for what you did not: a table that stops growing, a column that suddenly fills with NULL, a run that takes three times as long. The goal is simple: you hear about a problem before the person reading the report does.
Example: a quiet Saturday. On a Saturday the shop takes 61 orders, against a usual 55 to 75. Monitoring stays silent, correctly. On the next Saturday the load brings in 4 orders. Nothing has failed technically, every test passes, but the volume check flags it, and Callum finds that the read replica stopped updating at 9.12am. Without monitoring, that would have been a "slow Saturday" in Monday's report.
Personal data comes with the job
Almost every pipeline in an online shop carries personal data: names, email addresses, delivery addresses, order histories. A data engineer copies it into new places, and every copy is covered by data protection law. This is general information, not legal advice.
In the UK the rules are the UK GDPR and the Data Protection Act 2018, as amended by the Data (Use and Access) Act 2025.17 Article 5 of the UK GDPR sets out the principles, among them data minimisation, accuracy and storage limitation, and it makes the business responsible for being able to show that it complies.18 The Information Commission (formerly the Information Commissioner's Office, ICO) explains each principle in plain English.19 For a pipeline, three of them matter every day. Copy only the personal data a report actually needs. Keep it accurate, which is a legal reason to clean data, not only a business one. And keep it only as long as you need it, which means a warehouse needs deletion rules too.
Example: the newsletter export
Callum wants to analyse which newsletter subscribers buy. The newsletter tool's export holds names, email addresses, signup source and consent status for 38,000 people. He does not need names, so he leaves them out of the load. He joins on a normalised email address in the staging layer and keeps the email itself only in a restricted table, so that the marts hold a customer key, not an address. He also carries the consent status through, so that nobody later builds an advertising audience from people who did not agree to marketing. A later chapter covers privacy engineering in pipelines in full.
A map of this series
Here is where the series goes from here, so you can jump to what you need. One chapter appears every Tuesday and Friday until 2 March 2027.
| Part | Chapters | The question each part answers |
|---|---|---|
| The basics | 2 to 6: the cost of dirty data, where raw data comes from, data types and formats, data modelling, SQL traps | What every data engineer must know before cleaning anything |
| Measuring quality | 7 and 8: data quality dimensions, data profiling | How dirty is the data, measured, not guessed? |
| Cleaning raw data | 9 to 14: when to clean, missing data, duplicates and entity resolution, standardising values, outliers, business rules | Every cleaning technique, worked on this shop's data |
| Keeping clean data honest | 15 to 18: cleaning pipelines and layers, storing clean data, versioning and history, reporting on cleaned data | Where clean data lives, and how to report on changed data without losing trust |
| Moving and running data | 19 to 21: ETL, ELT, batch and streaming, incremental loading and change data capture, orchestration | How data gets in, reliably, every day |
| Running a platform | 22 to 28: testing pipelines, observability, metadata and a semantic layer, privacy engineering, performance and cost, streaming in depth, a reference architecture | The expert topics, ending with the full platform for a growing business |
Example: three readers, three routes
Priya, as an owner, reads chapter 2 on what dirty data costs, chapter 9 on when to clean, chapter 18 on reporting honestly on cleaned data, and the reference architecture at the end. Callum reads everything in order. An experienced data engineer joining a new company might start at chapter 8 on profiling, then go straight to the cleaning block and the chapters on testing and observability.
Conclusion
A data engineer builds the system that turns data from many sources into numbers a business can trust: generated in the shop and its partners, stored, ingested, transformed and served, with security, data management, operations, architecture, orchestration and software engineering running underneath. For most small and medium businesses the challenge is not size. Wrenfield Home's five years of orders fit in a quarter of a million rows. The challenge is correctness: one definition per question, raw data kept, every step safe to rerun, tested, documented and monitored.
You need data engineering when reports combine several systems, take days to assemble, disagree with each other, or feed automated decisions. You do not need it yet when one system's reports and a page of written definitions answer your questions. When you do start, start small: a read replica, then a warehouse with dbt, tests and a schedule, and only later an orchestrator or streaming. The next chapter looks at what actually goes wrong, and what it costs, when nobody does this work.
