Skip to content

How to disable certain EventHandlers when restoring from EventStore #299

Answered by alexeyzimarev
iappwebdev asked this question in Q&A
Discussion options

You must be logged in to vote

There are two things I always suggest:

  • When using catch-up subscriptions for reactions (your handler that triggers NotifyAdminThatBellRinged) must be separated from the subscription that produces read models. It is unconditional, and applies to the next point as well.
  • Reactions should never be replayed, as the previous point suggests. So, storing checkpoints in a database that works great with read models becomes less meaningful. Therefore, when using ESDB I would suggest using a persistent subscription instead as it uses the server-managed checkpointing.

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@alexeyzimarev
Comment options

Comment options

You must be logged in to vote
1 reply
@alexeyzimarev
Comment options

Answer selected by iappwebdev
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants