Who Consumes Data and How It Reaches Them
Meet the consumers of a data platform (analysts, dashboards, applications, machine learning and AI assistants), describe what each needs in terms of freshness, latency, concurrency and cost, and match each need to a serving path, from a warehouse query to a feature table.
Contentsand lesson path
On this page
- Why it matters
- Who the consumers are
- Four questions to ask every consumer
- Serving paths, and one source in several shapes
- Check your understanding
- Apply it
- Review prompt
Lessons of Data Serving & BI
- Who Consumes Data and How It Reaches Them Concept · 20 min
- One Definition per Metric: Building a Semantic Layer Worked example · 25 min
- Lab: A Fast Dashboard That Respects Access Rules Lab · 30 min
- Lab: Reverse ETL from a Mart to an Operational Tool Lab · 25 min
- Low-Latency Serving: Caches, Data APIs and Real-Time OLAP Worked example · 20 min
- Check: Choose and Defend a Serving Path Knowledge check · 8 questions
What you will learn
- Choose a serving path for a consumer (warehouse query, cached extract, data API, real-time OLAP store or feature table) from its freshness, latency, concurrency and cost requirements.
01. Why it matters
A data team can build excellent models and still fail its users, because the last step was wrong. A model that is correct but takes 40 seconds to load in a dashboard will not be used. A churn score that only exists in the warehouse never reaches the support agent who could act on it. A usage chart in a customer-facing app that queries the warehouse on every page view can cost more than the feature earns.
Data serving is the part of data engineering that gets results to the people and programs that use them, in a shape, at a speed and at a cost that fits each one. This skill covers the main ways to do that: a semantic layer so that everyone uses the same definitions, BI dashboards, reverse ETL into operational tools, and low-latency paths for applications. This first lesson gives you the questions to ask before you choose any of them.
02. Who the consumers are
Start from the consumer, not from the tool. Five kinds of consumer appear in most companies, and they want different things.
- Analysts explore. They write new questions every day, join tables in ways nobody planned, and accept a query that takes ten seconds. There are few of them at once.
- Dashboard viewers ask the same questions again and again: the same charts, opened by many people, often at the same time on a Monday morning. They expect an answer in a couple of seconds, and each viewer may be allowed to see only part of the data.
- Applications are programs, often customer-facing. An app asks a small, fixed set of questions, but it may ask them thousands of times a second, and every answer must arrive in milliseconds. It must never show one customer another customer's data.
- Machine learning has two sides. Training reads large, historical tables in batch, and each row must show only what was known at that point in time. Inference, the model making a prediction, often needs a few values for one customer within a few milliseconds.
- AI assistants answer questions in natural language, for example "What was revenue in the North last quarter?". They are a new kind of analyst. They work best when they can pick governed metrics and dimensions from a semantic layer instead of writing raw SQL against tables they half understand, and when each query runs with the permissions of the person asking.
03. Four questions to ask every consumer
Turn each consumer's wishes into numbers, using four questions. People rarely know the answers at first, so ask about the decision the data supports, not about technology.
- Freshness: how old may the data be when it is read? "Before the 07:00 campaign" and "within one minute of the event" lead to very different systems. Freshness is a property of the whole path: the load schedule, any cache and any extract all add to it.
- Latency: how long may one answer take? A person exploring data accepts seconds; a page in an app needs milliseconds. State it as a percentile, such as "95 % of requests within 300 ms", because averages hide the slow requests that users notice.
- Concurrency: how many requests arrive at the same time, at the busiest moment? Five analysts and five thousand app users are different problems even when they ask the same question.
- Cost: what may each query, each user or each month cost? In a warehouse that bills by data scanned or by compute time, cost grows with every repeated query unless something absorbs the repeats.
Add a fifth, access, to every list: who may see which rows and columns, and how that rule is enforced on the serving path.
04. Serving paths, and one source in several shapes
Each serving path trades one requirement against another.
- A warehouse query, directly or through BI, is the most flexible and needs no extra system. It suits analysts and low-concurrency dashboards on data that is hours or a day old.
- A cached result, extract or pre-aggregate stores answers or summaries so that repeated questions are cheap. It suits busy dashboards, at the price of being only as fresh as its last refresh.
- A data API is a small service that answers fixed questions for applications, enforces who may ask what, and usually reads a pre-built table.
- A real-time OLAP store, such as ClickHouse, Apache Pinot or Apache Druid, aggregates fresh streaming data quickly at high concurrency, for user-facing analytics.
- A feature table holds precomputed values per entity, such as a customer, in an online store for fast lookups by key, with an offline copy for training.
- Reverse ETL pushes results into operational tools, such as a CRM, where people already work.
These paths are not competing copies of the truth. They are different shapes of the same modelled data, built for different readers. The example below builds two shapes from one orders table and checks that they agree. You need Python 3.10 or later and pip install "duckdb==1.5.6"; it was run with Python 3.12.
"""One source table, two serving shapes, the same numbers."""
import duckdb
con = duckdb.connect() # in memory; nothing is written to disk
con.execute("""
create table orders as
select i as order_id, 1 + (i * 7919) % 5000 as customer_id,
date '2026-08-01' + (i % 92)::int as order_date,
['North', 'South', 'East', 'West'][1 + (i // 92) % 4] as region,
(5 + (i * 37) % 9500 / 100)::decimal(10, 2) as amount
from range(1, 200001) t(i)
""")
# Shape 1, for a dashboard: one row per day and region, summed once.
con.execute("""create table daily_sales as select order_date, region,
count(*) as orders, sum(amount) as revenue from orders group by all""")
# Shape 2, for an application or a model: one row per customer, read by key.
con.execute("""create table customer_features as select customer_id,
count(*) filter (where order_date > date '2026-10-01') as orders_30d,
sum(amount) filter (where order_date > date '2026-10-01') as spend_30d
from orders group by customer_id""")
def one(sql):
"""Run a query that returns one row and format it as plain text."""
return ", ".join(str(value) for value in con.sql(sql).fetchone())
for table in ("orders", "daily_sales", "customer_features"):
print(f"{table:<18} {one(f'select count(*) from {table}'):>7} rows")
north = "select sum({}) from {} where region = 'North' and order_date >= '2026-10-01'"
print("North, October, from orders: ", one(north.format("amount", "orders")))
print("North, October, from daily_sales: ",
one(north.format("revenue", "daily_sales")))
print("customer 42, from customer_features:", one(
"select orders_30d, spend_30d from customer_features where customer_id = 42"))
print("customer 42, from orders: ", one(
"select count(*), sum(amount) from orders"
" where customer_id = 42 and order_date > date '2026-10-01'"))python shapes.pyorders 200000 rows
daily_sales 368 rows
customer_features 5000 rows
North, October, from orders: 884223.84
North, October, from daily_sales: 884223.84
customer 42, from customer_features: 14, 756.02
customer 42, from orders: 14, 756.02A dashboard showing revenue by day and region reads daily_sales, 368 rows, instead of 200,000 orders. An app or a model asking about one customer needs one row of customer_features, which an online store returns with a single lookup by key. Both give the same answers as the source, which is the property you must test whenever you add a shape. Each new shape is also one more thing to refresh, monitor and secure, so add one only when a consumer's requirements call for it. The rest of this skill builds these paths for real: a semantic layer, a dashboard with access rules and caching, a reverse ETL sync and a low-latency API.
05. Check your understanding
06. Apply it
The skill practice ends with a one-page decision record for a customer-facing usage chart. Start it now. List every consumer of your batch project's star schema, and for each one write down freshness, latency (as a percentile), peak concurrency, cost limit and access rule, with the decision the data supports. Then name a first-choice serving path for each, and one reason to reject the next most obvious path. You will test these choices in the following lessons.
07. Review prompt
Without looking back, name the five kinds of consumer and what each one needs; explain freshness, latency, concurrency and cost, and why latency is stated as a percentile; list six serving paths with one consumer each fits; and explain why every new serving shape must be tested against its source.
References
Your progress
Reading state
Sign in to save that you finished reading this lesson.
Prove this skill
8 questions · about 6 minutes · scored automatically. Marking a lesson as read never demonstrates a skill.