Replies: 1 comment
-
🙌
In RES we have:
Finally there's raw approach of reading the events you want and processing them with handlers manually: event_strore.read.stream("some-stream").from(event_id).map do |event|
my_handler.my_method(event)
...
end
My colleague @swistak35 has been working on persistent projections toolkit, that'd be probably the best start for code: #1025 There's a couple of blogposts on the topic too: |
Beta Was this translation helpful? Give feedback.
-
I'm currently playing around with rails_event_store and I like what I'm seeing.
I have some experience with EventSourcing/CQRS and would like to build projection that persist events as read models. I found code in one of the example application and it makes sense.
One thing I'm wondering though is what if I start developing these projections after I already have a couple of events in the database. From what I can see these event will completely be ignored?
The way I'm used to building is have a way for the projection to know where to start. Usually by just writing metadata and the last seen event to a database and then starting from the beginning if this metadata is missing. I figured this is not too hard to build but I was wondering if there are existing helpers for this?
Beta Was this translation helpful? Give feedback.
All reactions