Real-time for what? Batch is not retired.
Batch, microbatch, streaming, CDC, watermark. Different terms, different guarantees, and different ways to make your head hurt.
Start with how long a decision can wait. A monthly tax report and an out-of-stock alarm do not need the same freshness. If the decision is made tomorrow, a five-second pipeline may add cost without benefit. If it has to be made now, the overnight batch may arrive after the problem has already resolved itself.
Set the boundary from the source event until the data can actually be used, not just when the last job ended.
Batch processes a bounded collection. Streaming processes a flow that can continue indefinitely. Microbatch groups work into short intervals. Implementations can blur the terms, so write down the guarantees: lateness, completeness, ordering, and how to repair outputs. “Real-time” without a number is a mood.
CDC is not a synonym for streaming analytics
Change data capture reads changes from a database. Its consumers can still process them in batches or continuously. A change event is not necessarily a business event. Updating one row might be a technical correction; one purchase could touch several tables.
Understand the initial snapshot, log position, deletes, schema changes, and source-log retention. In the store example, payment status changes need to be linked to the correct order. If a connector falls behind beyond log retention, an ordinary restart may not be enough. The runbook needs to cover resnapshotting and reconciliation.
A healthy connector does not automatically mean the entire mart is fresh.
Event time differs from arrival time
An order is made at 10:00, but a phone sends it only at 10:20. Grouping by arrival time can put the event in the wrong interval. Apache Beam provides concepts of event time, windows, watermarks, and triggers for managing this problem.
A watermark estimates event-time progress. It is not a letter guaranteeing that no late data will arrive. Imagine a ten-minute dashboard published at 10:10. If late data comes in, choose a revision, an additional output, or a correction path. Consumers need to know whether a value is provisional or final under the selected policy.
Ignoring late data can be a deliberate choice, but its impact needs to be visible.
Exactly-once has system boundaries
An engine's processing guarantee does not automatically extend to every external side effect. The sink, transaction, checkpoint, and idempotency design determine whether the final result can safely be repeated. Sending email or charging a payment needs its own contract.
Do not translate the slogan “exactly-once” into “every action across the internet definitely happens once.”
For order aggregation, upserting by identity and version can help with replay. For notifications, store an idempotency key and delivery status. Test failure after a sink accepts data but before a checkpoint is saved. That is where presentation diagrams usually start sweating.
Choose a mode the team can operate
The Lambda pattern keeps batch and fast paths. Its benefit needs to be weighed against the risk of maintaining two logic implementations. A Kappa-style pattern relies on logs and reprocessing. Historical replay still needs capacity and retention. Both are design choices, not a mandatory promotion.
One recoverable batch is better than streaming that only one person understands.
Measure source lag, consumer lag, time until the mart is ready, correction percentage, and cost per unit of data. Test peak load, late events, and recovery. If a five-minute microbatch meets the store's needs with simpler operations, that is an engineering win. No need to apologize for not being at the millisecond level.
Decision checklist: Measure freshness as experienced by the consumer. Define late-data and output-revision policies. Test replay and side effects at the sink boundary.
Sources and reading limits: Primary references reviewed 7 November 2026. The store and diagrams are RapiApp illustrations. This series compares patterns and responsibilities. It is not a vendor ranking or a claim that one stack fits every team.
References: Apache Beam, “Basics of the Beam model”; Debezium, “PostgreSQL connector”; Google, “The Dataflow Model.”
Series navigation: Follow the series from source to operations. 01 / Pipelines change with the times. The core problems often stick around. 02 / ETL vs ELT. The letters move, the responsibility should not disappear. 03 / What is real-time for? Batch is not retired. 04 / A bucket full of files is not automatically a lakehouse. 05 / One source, three destinations: dashboard, prediction, and AI answer. 06 / A mature pipeline can be repaired, not merely run. Go deeper on data identity and contracts.