-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
Changes to make LocalDistributedEventBus able to use outbox/inbox patterns #21965
base: dev
Are you sure you want to change the base?
Changes to make LocalDistributedEventBus able to use outbox/inbox patterns #21965
Conversation
@hikalkan Do you think the |
@maliming Yes, it should support. This is necessary for modular monolith applications where each module has a separate physical database. |
I will add a test app to make sure it works as expected |
hi @hikalkan If this is not a design, you can merge this PR, I have tested it in a real application. You have I changed the code to add an event to all inboxes/outboxes. 95bd271 await eventOutbox.EnqueueAsync(outgoingEventInfo);
return true; abp/framework/src/Volo.Abp.EventBus/Volo/Abp/EventBus/Distributed/DistributedEventBusBase.cs Lines 120 to 143 in 489c74f
abp/framework/src/Volo.Abp.EventBus/Volo/Abp/EventBus/Distributed/DistributedEventBusBase.cs Lines 167 to 197 in 489c74f
|
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## dev #21965 +/- ##
==========================================
+ Coverage 52.01% 52.02% +0.01%
==========================================
Files 3183 3184 +1
Lines 102337 102380 +43
Branches 7773 7780 +7
==========================================
+ Hits 53227 53260 +33
- Misses 47462 47469 +7
- Partials 1648 1651 +3 ☔ View full report in Codecov by Sentry. |
Description
The existing LocalDistributedEventBus doesn't make use of the outbox/inbox patterns if these are enabled.
With these changes, we make it possible to use those mechanisms while still publishing through LocalEventBus.
Resolve #22053
Checklist