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

How to combine different module use cases #236

Open
AkinSabriCam opened this issue Dec 20, 2021 · 1 comment
Open

How to combine different module use cases #236

AkinSabriCam opened this issue Dec 20, 2021 · 1 comment

Comments

@AkinSabriCam
Copy link

AkinSabriCam commented Dec 20, 2021

Hi @kgrzybek, firstly thank you for this great repository.
I would like to talk about a case that I have in my project.
For instance, we have 2 modules in our project. Let's call them Reservation and Profile modules
I want to update my profile and before updating should check the reservation status which includes that profile.
So, we have a process that includes 2 different modules use cases

Would you suggest that using IProfileModule and IReservationModule interfaces in the same endpoint or another handler?
or Would you suggest that we should define these aggregates in the same module?
or any other suggestion?

@adturpin
Copy link

adturpin commented Jan 2, 2023

Hello,
May i suggest to see the problem from module point of view.
When your Reservation Module update the status you can send domain even and catch with your Profile Module (apply some business transformation) and store the result, than you don't need to interact with many modules.

This is Hollywood Principle : "Don't Call Us, We'll Call You"

This issue is a bit older mmaybe you have found an other solution to share, I hope my comment can help you

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

No branches or pull requests

2 participants