i'm new to the whole Microservice architecture so pardon my unstructured questions:
Context: The business needs customers to be able to select commodities, calculate the cost of these commodities based on certain business rules to do with the amount of commodities selected, currency and other rules that affect the calculation result. So:
- there is need to invoke an exchange reference service for currency rates
- Get selected commodities from user interface
- Invoke a calculation engine to return the calculation result done based on the business rules
Q1. What would be the best format to write this calculation microservice specification to pass on for development?
Q2. In an ideal architecture will the calculation engine sit in the commodities database or as a separate service?
Q3. Any model way(microservices) to architect this with the dependencies mentioned in 1,2 and 3 above?