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

[1.x] Make IntegrationBroker safer. Adjust SubscriptionService for standalone event producers. #1423

Merged
merged 9 commits into from Nov 23, 2021

Conversation

armiol
Copy link
Contributor

@armiol armiol commented Nov 22, 2021

This changeset addresses #1349 and #1370.

In particular, the internals of IntegrationBroker were made more thread-safe.

Also, SubscriptionService now properly locates the Bounded Context when subscribing to events produced by standalone producers, such as AbstractCommandHandler or AbstractEventReactor descendants. Previously, these dispatchers did not register themselves in Stand. Therefore, SubscriptionService was failing to find the target Bounded Context and always ended up creating a number of redundant event subscriptions in each known Bounded Context.

@armiol armiol self-assigned this Nov 22, 2021
@armiol armiol changed the title Make IntegrationBroker safer. Adjust SubscriptionService for standalone event producers. [1.x] Make IntegrationBroker safer. Adjust SubscriptionService for standalone event producers. Nov 22, 2021
@armiol armiol marked this pull request as ready for review November 22, 2021 18:21
@armiol armiol requested a review from a team November 22, 2021 18:21
Copy link
Contributor

@dmdashenkov dmdashenkov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM once the tests pass.

@codecov
Copy link

codecov bot commented Nov 23, 2021

Codecov Report

Merging #1423 (17b33e9) into 1.x-dev (902ed12) will decrease coverage by 0.00%.
The diff coverage is 81.25%.

@@              Coverage Diff              @@
##             1.x-dev    #1423      +/-   ##
=============================================
- Coverage      91.00%   91.00%   -0.01%     
- Complexity      4807     4811       +4     
=============================================
  Files            616      616              
  Lines          15282    15294      +12     
  Branches         864      864              
=============================================
+ Hits           13908    13918      +10     
- Misses          1101     1103       +2     
  Partials         273      273              

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