Comments (6)
If that is the case, what is the motivation to have multiple Apps instead of Routers per Module and a single App?
Based on the information shared, it doesnβt sound proper to me.
from commanded.
Thanks for reply
I have a multi-module in an umbrella project, modules have some dependencies with each other. such as Notification Module
, Order Module
and Payment Module
. Notification
will listen event of Order
and Payment
, and notify users. three modules have it owned Commanded Application
and eventstore
. if so, they can't listen events each other(different eventstore).
but, the three Commanded Application
with the same eventstore
οΌit works. (I can put eventstore application
to a common dependency module.)
I know, this is not best practice of commanded
probably. or there is any way could let Notification Module
listen events from difference event source by eventstore
? I could avoid building message queue service
π
Perhaps I could use eventstore Subscription separately, but I really like EventHandler of Commanded
, especially the whole moduels have Commanded Application
.
from commanded.
Are you deploying 3 different apps or just one?
from commanded.
Just one app. modules in same deploying. Notification Module, Order Module and Payment Module
have different projection db but prefer the same eventstore.
from commanded.
Then I do not see why you would want a different Commanded.Application
for each module.
For this particular situation, it sounds like an anti-pattern that I would probably recommend removing, personally speaking, and composing the routers into a single Commanded.Application
module.
Being said, maybe they would take your suggestion π€·π»ββοΈ; just trying to help you based on my experience.
from commanded.
Thanks for your suggest π
from commanded.
Related Issues (20)
- Process manager router option not working
- Lessons learned from performance optimization - an unlikely culprit HOT 3
- no function clause matching in Commanded.Commands.Dispatcher.telemetry_stop/3 HOT 1
- Docs questions
- Stacktrace in event handler error? HOT 2
- Paralelization Strategies in EventHandlers
- Should Commanded.Event.Handler support messages from swarm? HOT 2
- Event retention policies?
- Process Manager state serialization breaks when using a custom TypeProvider with the JsonSerializer
- `Commanded.ProcessManagers.ProcessManager.identity/0` function returns `nil` in unit tests
- no function clause matching in Commanded.Event.Handler.partition_event/4 HOT 1
- EventstoreDB is sunsetting the TCP protocol HOT 1
- Is it a bad practice for an event handler to depend on a projector completion? HOT 2
- Snapshotting 2 Aggregates having same identity
- Is it possible to log contents of InMemoryEventStore on failed test?
- Ecto Sandbox, Projections and In Memory adapter HOT 3
- Aggregate throws error when execute returns more than 1000 events.
- Individual stream events handling HOT 2
- Skipped event with concurrency enabled HOT 9
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from commanded.