EventsSourcing-on-Azure-Functions
EventsSourcing-on-Azure-Functions copied to clipboard
Query attribute/binding
Need to have a Query class which can be bound to a parameter on an Azure function with autoresolve properties for query name and unique identifier.
if the unique identifier is not set, use a GUID
This will create an event stream to use to orchestrate execution of the step(s) required to process the query.
Needs to be on a per Domain basis.
The main events / steps of processing a query would be:-
- Query created
- Parameter set
- Validations
- Classifications requested
- Projections requested
- Collations
- Response
Classifications needed:-
- Completed (this allows completed queries to be archives to other storage, for example)
Projections needed:-
- Output targets (as this may be changed while a query is running)
Query functions
- GetQueryState - Get the state of the given query instance
- CompareQueries - Compare the outcome of two query instances (for "what has changed" analysis)