Microservices
preferable using messaging if possible
Event functions. Bindings in Azure functions remove need to write boiler plate code.
Order class just has everything to do with adding and maintaining an order but nothing to do with database or any other logic.
Domain model classes do not contain any data access code.
This is where you have the repository layer.
As database query is hardcoded into the function this cannot be mocked. We need to use an abstraction.
Comments
Post a Comment