Using Eventuous to build aggregates using server projections like $ce- #326
peteglassey
started this conversation in
General
Replies: 0 comments
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
-
I want to use the IEventStore or IEventReader to build up an aggregate based on an ESDB server projected stream - in my case a category
$ce-xyz
. I found that i always get no events back when using the ReadEvents() extension method on StoreFunctions. When i debug through the ESDB EventStore Eventuous is explicitly filtering out all events from streams that start with $.Is there another way instead of having to fall back to using the ESDB native SDK and reproducing all the logic in Eventuous in my own source? Is there another layer of abstraction i could make use of?
I know it sounds like a slightly odd thing to do, but i want to load all the events (there is likely < 2 or 3 events per stream, and maybe 2 or 3 dozen streams) by category into memory and do some in memory grouping and build up aggregates from that.
How do we build aggregates from a server-side projection using Eventuous?
As a stop-gap, i have a read-model projection which builds what i need quite simply, but i think i would rather prefer to build the state i need from an event stream than get it from a read-model projection.
Beta Was this translation helpful? Give feedback.
All reactions