Compute useful state from events while making lateness, duplication, and replay behavior explicit.
Where to begin
A stream begins with an event contract: identity, version, key, and event time. Follow the lessons through partitioning, windows, state, checkpoints, sinks, and a project that replays delayed events. The same metric must have a defined answer before and after a worker restart.
Read the track
- Streaming Analytics Tutorial
- Stream event contract: identity, version and partition key
- Event-time windows: place each event by occurrence, not arrival
- Watermarks and late events: define when a window becomes final
- Idempotent streaming sinks: make retries safe across failures
- Stateful stream joins: bound waiting time and unmatched records
- Streaming operations: monitor lag, corrections and batch parity
- Project: build a replay-safe receipt event dashboard
- Streaming Analytics: Projects
Choose the right method
State grows with key count and window retention. Set lateness and retention from the decision deadline, then measure memory, backpressure, and checkpoint duration rather than assuming a low average throughput is safe.
Common Mistakes
Exactly-once wording does not make external side effects idempotent. Test duplicate delivery and sink retries, and distinguish a late observation from one that never arrived.
