-
Notifications
You must be signed in to change notification settings - Fork 125
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Command ID / Message ID #364
Comments
@paneq I think the |
I would also potentially push for |
At some point probably, but I don't have a vision for it yet.
Well, we could maintain both getters and setters... |
Yo, in relation to #346 #362
I wanted to achieve common API for getting command ID's and event ID's.
Right now for event's the API is
event_id
.command_bus
does not impose any structure on commands right nowevent_id
does not sound like a good API for command ID's that could be used by#correlate_with()
which currently looks like:I think both (events and commands) are messages so it feels natural for me to assume
message_id
as the common interface. That would mean addingmessage_id
reader toRubyEventStore::Event
and changing the codecorrelate_with
code to:Does that make sense in your opinion?
For
commands
we are still not going to enforce/assume any schema or class etc. But if they follow themessage_id
interface, they could be used as an argument tocorrelate_with
:The text was updated successfully, but these errors were encountered: