Bounded and Unbounded Dataflow

Use one logical operation on finite and ongoing inputs while giving each version an appropriate progress and output contract.

Source
Anbloq
Language
English
Created
Updated
Chapters
2
Reading time
1 min
In this article2 chapters
  1. Finite inputs eventually have an end
  2. State grows according to the chosen observation

Finite inputs eventually have an end

A batch grouping can wait until its source is exhausted before emitting the final count for each key. For a continuing source there may be no final global count. An unbounded pipeline can still apply the same combine rule within windows, with updates and finality defined by progress. Unlimited input size also challenges operations that require keeping all prior records.

State grows according to the chosen observation

A running sum retains a compact state, while exact deduplication of arbitrarily old identifiers can require unbounded history. Windowing and retention trade historical coverage for bounded resources. Specify whether results are final values, revisions or deltas. Streaming windows define local time groups. Distributed stream processing connects progress and delivery obligations across a larger system.[1][2]

References

  1. Tyler Akidau et al., The Dataflow Model ↩
  2. Apache Beam, Programming Guide ↩