Questions tagged [rails-event-store]
The rails-event-store tag has no usage guidance.
12
questions
0
votes
1
answer
32
views
Rails AggregateRoot "on" handlers not detected as instance methods
In Rails event store, AggregateRoot has DSL methods that result in blocks with this shape:
class X
extend AggregateRoot::OnDSL
class MyEvent < RailsEventStore::Event; end
on MyEvent do |...
0
votes
0
answers
45
views
How to decide what to name a stream in Rails Event Store
This is a bit of a newb question but I struggle with how to decide what a stream should be called and I can't seem to find documentation on how to go about it.
For instance, a lot of the examples in ...
0
votes
0
answers
38
views
Versioning events in Rails Event Store
I am currently developing an event sourced system using Rails Event Store.
There is a need to version events over time (new fields that need a default value or renaming of existing fields). It seems ...
0
votes
1
answer
237
views
Does every published Rails Event Store event have a timestamp?
Does every Rails Event Store event that's been published automatically get assigned a timestamp? I'm trying to build functionality that relies upon a timestamp automatically being present for events ...
1
vote
1
answer
110
views
Should domain object be created by event handler in aggregate
When we call domain action on Aggregate we pass some primitives/domain_objects we validate some business rules and apply domain event at the end. and when we apply event finally we update the state of ...
1
vote
2
answers
1k
views
Where to create Value Objects in CQRS & DDD flow
I am struggling with construction of ValueObjects during life cycle of a command.
Here is my situation:
Command Request comes to controller action.
Create command object with request params.
Pass ...
1
vote
1
answer
89
views
Subscribe only to a single stream with RailsEventStore
I intend to project a persistent read-model into a relational database with RailsEventStore.
To make this possible I need an input stream with a fixed order and without duplicated events. Therefore I ...
0
votes
1
answer
132
views
Remove subscriptions in RailsEventStore
I am trying to build a persistent relational projection of an event stream in a event-sourced/CQRS and DDD-inspired Rails 5.2.x application using RailsEventStore.
To have my projector receive ...
1
vote
1
answer
230
views
Persistent relational projections in RailsEventStore
I am trying to build a CQRS and event sourced Rails 5.2.x application using RailsEventStore.
Now I would like to project my event stream into a relational model, ideally just using ActiveRecord and ...
1
vote
1
answer
358
views
Cleanly validating event schemas in RailsEventStore
I am building a CQRS and event sourced application with Rails and RailsEventStore. In RailsEventStore it seems you are supposed to inherit classes that represent events from RailsEventStore::Event.
...
0
votes
1
answer
115
views
How can I duplicate a RailsEventStore event while maintaining meta-data
The scenario is that I have two ActiveModels: Invitation and Guest.
I've published a bunch of events to the event stream of an invitation and at some point that invitation is accepted and subsequently ...
0
votes
1
answer
367
views
What's the proper connection string to MySQL db for ActiveRecord on TravisCI?
Here is one of my problematic builds:
https://travis-ci.org/RailsEventStore/rails_event_store_active_record/jobs/268876871
Here is the error:
Mysql2::Error:
Access denied for user 'travis'@'%'
to ...