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

[General Question] revisionGuard usage? #50

Closed
AlexandreRoba opened this issue Aug 15, 2016 · 2 comments
Closed

[General Question] revisionGuard usage? #50

AlexandreRoba opened this issue Aug 15, 2016 · 2 comments

Comments

@AlexandreRoba
Copy link

Hi there, first thanks for all this open sourced cqrs component. They are of great value. I was wondering if you could point me to some documentation that describes what is the revisionGuard used for? I'm familiar with CQRS and I have followed Greg young intensive CQRS weekend seminar but I do not record having heard of the revision guard :( thanks for any help.
Alex.

@adrai
Copy link
Contributor

adrai commented Aug 15, 2016

HI Alexandre!

The revisionGuard is an optional part. (my invention)

If you need your events to be handled in order and your system(messaging layer) does not guarantee it and you have a revision number on your events (incremental number for the event stream) the revisionGuard ensures the ordered handling of the events.

for example if the received events are:

  1. evt0
  2. evt2
  3. evt1

the revisionGuard will handle it that way:

  1. evt0
  2. evt1
  3. evt2

and if there is a some missing events (i.e. if evt1 is never received) after a configurable timeout and EventMissing will be fired => https://github.com/adrai/node-cqrs-eventdenormalizer#wire-up-event-missing-optional

@AlexandreRoba
Copy link
Author

Hi adrai, great, thanks for the clarification.

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

No branches or pull requests

2 participants