thinktecture-labs / cloud-native-sample

Sample application to demonstrate how to build, orchestrate, and automate a polyglot cloud-native application
MIT License
32 stars 11 forks source link

Re-architecture PriceWatcher and PriceDropNotifier #106

Open ThorstenHans opened 1 year ago

ThorstenHans commented 1 year ago

From an architectural perspective, the API endpoint for invoking a price-drop should be moved to ProductsService. This would allow us validating the desired productId and ensuring that the product actually exists (without calling a sibling service or building a HTTP monolith).

However, addressing this would result in removing the entire PriceWatcherService from the sample.

WIP

feO2x commented 1 year ago

Hey @ThorstenHans, After having a look at PriceWatcher, ProductsService, and PriceDropNotifierService, I'd change the architecture in the following way: