- ABP Framework version: v7.2.3
- UI Type: Blazor Server
- Database System: EF Core (SQL Server) /
- Tiered (for MVC) or Auth Server Separated (for Angular): yes
- Exception message and full stack trace:
- Steps to reproduce the issue: Currently, I have two modules (Product Module and Order Module) developed in a modular fashion using NuGet dependencies. The Contracts in the Order Module depend on the Contracts in the Product Module. Now, I need to implement a feature in the Product Module to query the quantity of products in transit in the product inventory table. This requires calculating the quantity of products in ongoing orders in the Order Module. I'm considering using local events to achieve this, where changes in products in orders trigger updates in the quantity of products in transit in the Product Module. However, it's not advisable for the domain of the Order Module to depend on the domain of the Product Module, is it? Can you provide some advice or suggest a better approach? Thank you.
5 Answer(s)
-
0
hi
You can consider the ETO, which is defined on the
Domain.Shared
module.https://docs.abp.io/en/abp/latest/Distributed-Event-Bus#event-transfer-object
Or the
Integration Services.
https://docs.abp.io/en/abp/latest/Integration-Services
-
0
hi
You can consider the ETO, which is defined on the
Domain.Shared
module.https://docs.abp.io/en/abp/latest/Distributed-Event-Bus#event-transfer-object
Or the
Integration Services.
https://docs.abp.io/en/abp/latest/Integration-Services
Can I query the quantity of goods in an order in the order module directly from the product module? This eliminates the need for redundant fields
-
0
hi
Yes.
https://docs.abp.io/en/commercial/latest/startup-templates/microservice/interservice-communication
-
0
hi
Yes.
https://docs.abp.io/en/commercial/latest/startup-templates/microservice/interservice-communication
But I am not using microservice template,I use the multi-module nuget management mode
-
0
hi
Does that solve your problem?
https://support.abp.io/QA/Questions/6505/Problems-encountered-in-abp-multi-module-development#answer-3a10223f-af27-d950-55bd-7235ba2e9c49