MerrionComputing / EventsSourcing-on-Azure-Functions

A library to demonstrate doing Event Sourcing as a data persistence mechanism for Azure Functions
MIT License
103 stars 20 forks source link

Projections on demand #16

Open MerrionComputing opened 4 years ago

MerrionComputing commented 4 years ago

An intriguing side effect of the "a command or query instance is an entity with its own backing event stream" combined with "notifications are sent when an event is appended to an event stream" is that a projection request can be handled by an azure function spun up specifically for that purpose without the need for an orchestration.

This will allow projections to be executed as a "swarm"..

MerrionComputing commented 4 years ago

(This will also apply to classifiers which are, after all, just specialist projections )

MerrionComputing commented 4 years ago

Projection events are:
Projection Requested - when a command or query decides it needs a classifier done Projection Result Returned - when the classifier result is returned to the command or query

MerrionComputing commented 4 years ago

This is going to need some way of new-ing up a projection instance from the projection type name as I don't want to use the CLR class names explicitly as that would lock-in the implementation to the data.

(No reason why someone might want to use a totally different technology to run projections on demand)