Timeline for How to create an object requires multiple bounded contexts?
Current License: CC BY-SA 4.0
8 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Dec 17, 2021 at 10:19 | history | edited | Doc Brown | CC BY-SA 4.0 |
added 119 characters in body
|
Dec 17, 2021 at 10:11 | vote | accept | Ngọc Nguyễn | ||
Dec 17, 2021 at 9:50 | comment | added | Doc Brown | .. I guess "Sales" would have to query "Warehouse" for this kind of use case, that's quite normal. But that does not imply that every query for a product in "Sales" would require also a query to "Warehouse", I have no idea why you come to this conclusion. | |
Dec 17, 2021 at 9:48 | comment | added | Doc Brown | "When the user queries for the Sales.Product to buy, does the Sales have to check the Product in the Warehouse?" - maybe, that depends totally on how you design your system and your use cases, and how you distribute the information between different parts of the system. Amazon, for examples, can offer you products and prices on their web site even if those products are out of stock (and they show you that information before you buy anything). So in case there is a "Sales" and a "Warehouse" microservice behind that (which I don't know), ... | |
Dec 17, 2021 at 9:44 | comment | added | Doc Brown | "The Product add to Warehouse is the physical product,"- no, both product objects are just a model, implemented in the bits and bytes of your computers. The physical product is what UPS delivers to your home. | |
Dec 17, 2021 at 8:01 | comment | added | Ngọc Nguyễn |
Base on your answer, I can see the Warehouse.Product and Sales.Product are different. The Product add to Sales goes into a catalog. The Product add to Warehouse is the physical product, if I get it right. When the user queries for the Sales.Product to buy, does the Sales have to check the Product in the Warehouse ? If this happens, every query the Sales needs to update the information of Product in Warehouse . Is this true? Is there any better practice?
|
|
Dec 17, 2021 at 7:27 | history | edited | Doc Brown | CC BY-SA 4.0 |
added 383 characters in body
|
Dec 17, 2021 at 7:20 | history | answered | Doc Brown | CC BY-SA 4.0 |