質問

In the screecast presentation Jonathan Oliver gave regarding his EventStore implementation He mentioned the ability to query the events, for example to make a complex temporal query. From what I understand this is done through updating a read model or creating projections after the eventstore is updated - however I can't seem to see any examples of this using the J.O's implementation. Any links to or examples would be great!

役に立ちましたか?

解決

The querying mechanism of EventStore v3.x is a little...sub par at this stage. But technically speaking, that was never the intended purpose of the EventStore in the first place. Instead, it was to persist the events and make them available for future use. That being said, you're welcome to use whatever querying mechanism you feel is necessary to pull the events out of the underlying data store and to run them through your code to "project" the events into a particular view or read model.

他のヒント

Article that describes temporal query is e.g. http://codeofrob.com/entries/evented-github-adventure---temporal-queries,-who-doesnt-trust-their-hardware.html It is based on projections and you can see a nice example there.

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top