fold

Combining a sequence of records one by one into a single result, such as the latest value or a running total per key.

In more detail

Folding a topic from offset zero always gives the same result, which is how a consumer builds a table or view from a stream. Summing a list and building a lookup table of latest values are both folds.

Related terms

Taught in

References