The-Inevitable-Event-Centric-Book icon indicating copy to clipboard operation
The-Inevitable-Event-Centric-Book copied to clipboard

Problem: Define the word Projection

Open ylorph opened this issue 5 years ago • 4 comments

ylorph avatar Sep 06 '19 12:09 ylorph

In the context of event sourcing

A projection is a function that can be applied to an ordered set of events to produce some aspect of the state resultant from those events.

For each event in the set it needs to decide: (1) Do I care about this event (usually do I care about this type of event) (2) If so, what do i do as a result of it

MerrionComputing avatar Dec 11 '19 14:12 MerrionComputing

Suggestions: Mention CQRS and the fact that a projection is often a denormalised, read model tailored for performant reads.

Papipo avatar Feb 18 '20 10:02 Papipo

A projection flattens time out into space, "pooling" information into data structures.

Also worth remembering the original metaphor:

image

bwatts avatar Oct 09 '20 14:10 bwatts

My preference is to call anything that reacts to a (domain)event as a "reactor". Reactors that project are only a subset of all reactor types.

damianh avatar Oct 09 '20 14:10 damianh