Azure / reddog-code

Source code repository for the reddog demo, brought to you by the Cloud Native Global Black Belt Team.
MIT License
164 stars 106 forks source link

OrderService Crud? #64

Open feveden opened 1 year ago

feveden commented 1 year ago

Hİ, The OrderService microservice is described as a simple CRUD API in the table of services description, but nowhere in the code there exists any crud operation. The service just gets the orders from the Virtual Customer microservices and publishes them onto the pubsub event bus as far as I can see. Is there anything that I am missing? Could you please clarify?

lynn-orrell commented 1 year ago

Hey @feveden, that is correct. VirtualCustomers, today, is just used as a simple load generator to drive the dashboard metrics. OrderService is the entrypoint into the system in which you could easily stand up a PowerApp or web-based order entry UI in front of to handle human transacted orders. The OrderService is responsible for taking a CustomerOrder model (which doesn't contain attributes such as UnitPrice) as input and transposing it into an OrderSummary (after doing a product lookup) that the rest of the services utilize. So, you are correct in noting that the OrderService doesn't contain the Read, Update and Delete portions of CRUD.