Kiran Patel
08/30/2023, 1:23 AMreal consumer and provider for the specific data ? I will try to explain through an example,
• CartService : is a consumer of these services - CustomerInformationService, ProductCatalogService and PricingService.
• For the CartService.addItemToCart() operation, It retrieves data from CustomerInformationService and ProductCatalogService and pass it on to the PricingService along with its own data, the current cart and itemToBeAdded. PriciningService uses these combined information to apply the discounts or other free items based on the business rules.
• In this case, CartService really does not dictate what information it is presented by the CustomerInformationService and ProductCatalogService and act as pretty much pass-through.
Questions are -
• How the contracts are supposed to be written by the CartService for the information that it depends on other services?
• How the collaboration supposed to be happened ? Should PricingService be aware about the contract of the CustomerInformationService and ProductCatalogService ?
PS: this is my first message in the PACT community after 4 years. I have my own views on the above, but would like to get community views as well.Matt (pactflow.io / pact-js / pact-go)
Matt (pactflow.io / pact-js / pact-go)
Kiran Patel
09/12/2023, 7:18 AMMatt (pactflow.io / pact-js / pact-go)
Kiran Patel
09/12/2023, 8:05 AMKiran Patel
09/13/2023, 4:00 AMMatt (pactflow.io / pact-js / pact-go)