Beginner Examples
Beginner Examples
Beginner Examples
Sort these examples by the decision’s useful delay, not by the number of events. The freezer alert benefits from current evidence, whereas a monthly summary can wait; the delayed reading and live dashboard examples then show why timing and presentation still need durable rules.
A live freezer alert usually belongs on the stream path because its action value falls if it waits for a daily report. A monthly energy summary can remain a batch result when no consumer acts on partial totals. That contrast makes the consumer’s useful delay—not event volume—the first design test.
Timing semantics come next. Evaluate a delayed sensor reading with its event-time and late-event rule instead of discarding it solely because it arrived after newer records. A dashboard may show the latest received value quickly, but the durable stream record must still identify later corrections. These examples connect the decision for streaming to the evidence needed when arrival order and display order diverge.