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

Contention issue on initial startup with multiple subscribers #2

Open
grumpydev opened this issue Jul 16, 2014 · 0 comments
Open

Contention issue on initial startup with multiple subscribers #2

grumpydev opened this issue Jul 16, 2014 · 0 comments

Comments

@grumpydev
Copy link
Contributor

I have multiple workers that subscribe with the following code:

            this._bus.SubscribeAsync<Message>(this.OnMessageReceived,
                config =>
                    {
                        config.WithSubscription(this._configuration["SubscriptionId"]);
                        config.WithTopic(this._configuration["Topic"]);
                    });

When I fire the workers up for the first time they all hit "TopicDeclare" and try and create the topic, which makes two of them crash with Conflict errors:

image

They start up again fine, as the next time they run they can see the topic already there so don't try and create it.

I guess the topic creation needs some code to handle conflicts and back off for a period then re-check if the topic exists?

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

1 participant