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

Supervisor for Subscription processes #8

Merged
merged 3 commits into from
Feb 28, 2018

Conversation

jfornoff
Copy link
Contributor

This PR adds a SubscriptionsSupervisor, which is responsible for keeping track of the currently started Subscriptions.

This removes the need for manual bookkeeping in Commanded.EventStore.Adapters.Extreme and we can port it from a GenServer to a plain module.

This fixes an issue where Commanded.EventStore.Adapters.Extreme could crash and forget about the subscriptions that were already started, which could cause duplicate Subscription-processes to be started, until the maximum subscriber count of EventStore is reached.

Please feel free to make any adjustments :-)

Jan Fornoff added 3 commits February 23, 2018 17:42
SubscriptionsSupervisor is responsible for keeping track of the
currently started Subscriptions.

This removes the need for manual bookkeeping in
Commanded.EventStore.Adapters.Extreme.

Additional code will be removed after this.
Commanded.EventStore.Adapters.Extreme no longer needs to be stateful,
therefore it no longer needs to be a GenServer.
@jfornoff
Copy link
Contributor Author

Not sure what it's about the CI that is causing issues over there, the tests are all green on my machine now

@slashdotdash slashdotdash merged commit 5f02f3c into commanded:master Feb 28, 2018
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.

None yet

2 participants