Skip to content

Running a Projection

Duncan Jones edited this page Jan 28, 2019 · 1 revision

#Projections

Projection example - running balance

A projection is a simple function that runs over the event stream of a single entity. It has two steps - first a filter function that says "am I interested in this event" and secondly, for those event types it is interested in, a handler function that does some action using the content of the event.

Projections can be run in parallel and their results aggregated in some fashion in a query handler.

Clone this wiki locally