Skip to the workspace
Pebellslearn by building
The Data Engineering Lifecycle  ›  Capstone Project

Data Serving

Data Serving 12 minServing delivers data to dashboards, analysts, models and operational tools in the shape and freshness each needs, built on one shared definition of every business term.

data engineer / Data Serving

Explore each scene at your own pace.

01 · The rule

The rule

Data Serving

PedalCity's ride data finally sits clean in the warehouse. Now four different consumers want it: the ops dashboard, the finance team, a forecasting model and the marketing tool that emails lapsed riders. Each needs a different shape, at a different freshness. Serving is the last stage of the lifecycle and the only one users actually see.

The rule

Serve each consumer the shape and freshness it needs, with one shared definition.

  • Shape: dashboards want small, pre-summarised tables (rides per station per day). Analysts want detailed, well-named tables they can slice freely. Models want one row per thing being predicted, with many input columns (features). Operational tools want records pushed back into them.
  • Freshness: how old the data may be when it is read. Agree it per consumer and write it down, for example: "the ops dashboard reflects every ride up to midnight by 03:00."
  • One shared definition: "a ride" must mean the same thing everywhere. If finance counts rides under one minute and ops does not, two teams will bring two numbers to the same meeting.

PedalCity writes the definition once, in one table that every consumer builds on:

CREATE VIEW completed_rides AS
SELECT *
FROM fact_rides
WHERE ended_at IS NOT NULL
  AND duration_min >= 1;   -- shorter "rides" are failed unlocks

Pushing warehouse data back into operational tools, such as a marketing or support system, is called reverse ETL. It is still serving: the consumer just happens to be another application.

Scene 1 of 5
Hover to wake the cannons. Drag to move, or use arrow keys when focused. Press Enter to fire a shot.