You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After implementing my own "framework" to handle the UoW, local bus, CQRS, inbox/outbox etc, I realized how much work goes into it and how much maintenance it requires.
As such I started to explore ABP, looking to replicate the modular monolith I started to build.
In my setup (simplification), I have each bounded context split into: domain, application, API (rest), Data (ef core) ... , and a simple context csproj to bundle everything into a singleton. For DI inside the context I use Autofac.
These contexts are then registered under a single host executable and they share minimal code. The most important would be a local event bus (singleton) which is injected in each context.
I was looking for a similar example in the samples but I either missed it or there isn't any to use the "LocalDistributedEventBus" in a similar manner to my setup.
I would be glad to help build an example if anyone can guide me a bit in the right direction.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello,
After implementing my own "framework" to handle the UoW, local bus, CQRS, inbox/outbox etc, I realized how much work goes into it and how much maintenance it requires.
As such I started to explore ABP, looking to replicate the modular monolith I started to build.
In my setup (simplification), I have each bounded context split into: domain, application, API (rest), Data (ef core) ... , and a simple context csproj to bundle everything into a singleton. For DI inside the context I use Autofac.
These contexts are then registered under a single host executable and they share minimal code. The most important would be a local event bus (singleton) which is injected in each context.
I was looking for a similar example in the samples but I either missed it or there isn't any to use the "LocalDistributedEventBus" in a similar manner to my setup.
I would be glad to help build an example if anyone can guide me a bit in the right direction.
Thank you.
Beta Was this translation helpful? Give feedback.
All reactions