Skip to content
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

Add an id to MessageContext that helps to follow sequences of messages #50

Open
ablanchet opened this issue Apr 26, 2016 · 4 comments
Open

Comments

@ablanchet
Copy link
Collaborator

ablanchet commented Apr 26, 2016

Add a CorrelationId to MessageContext that will help to follow a sequence of messages (commands or events).

It should be fairly simple : a new id is generated and used when a new message is created and then all the following messages that will be created by the handlers of this message will simply use and forward the given correlation id.

This id could be a Guid or something else, like Originator + MessageId + Timestamp ?

@ocoanet
Copy link
Member

ocoanet commented Apr 26, 2016

How do you set or reset the current CorrelationId?

@ablanchet
Copy link
Collaborator Author

With something like this ?

@ltrzesniewski
Copy link
Member

As this will be added to all messages, something short like a GUID should be preferred IMO.

@ablanchet
Copy link
Collaborator Author

@ocoanet was thinking about something optional with an opt-in behavior, maybe a nullable Guid ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants