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

Use Promise.allSettled when dispatching to handlers #126

Closed
adenhertog opened this issue Aug 3, 2021 · 0 comments · Fixed by #168
Closed

Use Promise.allSettled when dispatching to handlers #126

adenhertog opened this issue Aug 3, 2021 · 0 comments · Fixed by #168
Labels
bug Something isn't working good first issue Good for newcomers

Comments

@adenhertog
Copy link
Contributor

When multiple handlers receive the same message, a rejection in one shouldn't stop processing in others. This isn't the case due to the use of Promise.all in ServiceBus.dispatchMessageToHandlers.

Consider using Promise.settledAll and only failing the message after all work has completed and there's at least one rejection.

@adenhertog adenhertog added good first issue Good for newcomers bug Something isn't working labels Aug 3, 2021
adenhertog added a commit that referenced this issue Nov 21, 2021
* use promise.allSettled() during message dispatch

* enhance docs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant