Git Product home page Git Product logo

Comments (6)

yordis avatar yordis commented on July 29, 2024

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.

taverngoal avatar taverngoal commented on July 29, 2024

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.

yordis avatar yordis commented on July 29, 2024

Are you deploying 3 different apps or just one?

from commanded.

taverngoal avatar taverngoal commented on July 29, 2024

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.

yordis avatar yordis commented on July 29, 2024

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.

taverngoal avatar taverngoal commented on July 29, 2024

Thanks for your suggest πŸ˜„

from commanded.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.