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

Analysis: should classifiers take parameters? #22

Closed MerrionComputing closed 4 years ago

MerrionComputing commented 4 years ago

It seems to me that business questions might need to have parameters - for example in the bank accounts domain you might want to have a query for all accounts with a balance greater than [x] or a last transaction date less than [y].

Any cached results of this classifier would need to include the parameter(s) in such a way that the cached value would only be used if the parameters exactly matched.

MerrionComputing commented 4 years ago

This makes sense - you might (for example0 have a classifier "balance is above x" in which case it surely makes sense to have that x as a parameter.