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

Link subscriber to subscription #11

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

timbuchwaldt
Copy link
Contributor

Otherwise a dying subscription leaves the subscriber alive.

@slashdotdash
Copy link
Member

@timbuchwaldt Have you seen a subscription process go down without being restarted by the supervisor?

The subscriptions supervisor is supposed to restart the subscription process when it terminates abnormally. Restarting should reconnect to the event store and continue sending events to the subscriber.

@timbuchwaldt
Copy link
Contributor Author

Hey.
That is very strange, I am 95% sure we had an issue that went away once we switched to my fork with this change. Sadly I have been way to deep into debugging all sorts of libraries we have been using and my brain garbage collected the details. I'll get back to you once I am able to remember why we had this problem.

@slashdotdash
Copy link
Member

slashdotdash commented Mar 15, 2018

If this change improves things then we'll also need to change the restart strategy in the subscriptions supervisor from :transient to :temporary so that it doesn't get restarted on shutdown.

Instead of restarting the subscription, the subscriber process should be supervised (e.g. Commanded event handler) and then can create a new subscription when either subscriber or subscription go down. This is similar to how the Elixir EventStore subscription process works.

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

Successfully merging this pull request may close these issues.

2 participants