← All insights

Data Engineering

From nightly batch to seconds: designing a streaming lakehouse

How to move analytics from day-old data to near real time without rebuilding everything, and the governance that keeps it trustworthy.

Many organizations still make operational decisions on data that is a day old because their pipelines run as nightly batch jobs. Moving to near real time does not require throwing everything away. It requires changing how data enters the platform and being deliberate about which data actually needs to be fresh.

1. Decide what needs to be fast

Not every metric needs second-level freshness. Start by listing the decisions the business makes and how quickly each one needs data: dispatch and fraud decisions may need seconds, finance reporting can stay daily. This keeps cost under control and focuses engineering effort.

2. Capture changes at the source

Instead of extracting full tables every night, use change data capture from operational databases and stream events into a log such as Kafka. Sources emit what changed, when it changed, and nothing more. This single change usually removes the largest source of latency.

3. Layer the lakehouse

A layered design keeps streaming data understandable. A bronze layer holds raw events as they arrived. A silver layer holds cleaned, deduplicated and conformed records. A gold layer holds business-level tables and metrics. Streaming jobs keep bronze and silver continuously updated, and gold tables are refreshed as often as each use case requires.

4. Make quality checks part of the pipeline

Fast data that is wrong is worse than slow data. Build checks into each layer for schema changes, null rates, duplicates and volume anomalies, and stop bad data before it reaches gold tables. Publish freshness and quality status so consumers know whether they can trust a number right now.

5. Govern from day one

Define one owner and one definition for each core metric, catalog every table, and apply access controls at the platform level. Governance added later is always more expensive, and it is what turns a fast pipeline into a platform that analytics, ML and AI agents can safely build on.

The takeaway

Going from hours to seconds is mostly an ingestion and design problem, not a tooling problem. Capture changes at the source, layer the data, build in quality checks, and be selective about which data really needs to be real time.

GM

Written by

Gautham M

Data Engineer / Architect at Cartesian Corp. Builds lakehouses, streaming pipelines and governed data platforms that feed analytics and AI.

Want to talk this through for your system?

Tell us what you’re building. A senior architect will reply within one business day.

Have a project in mind? I can scope it with you.