- This microservice is responsible for doing all the CRUD operation in the MySQL database. This is where all the parts objects are stored.
- When the price of a part is updated a record is send to kafka into a topic. A listener in central-unit microservice uses this service to calculate the new price of the part by calling also and external api for currency rates. After the price is calculated the new part object with the new price is send to another topic to kafka as a record where it will be read by a listener in the validation-unit microservice. With this record the validation-unit will update the price of the part in the PostgreSQL database.
- To access this microservice from central-unit microservice you need a value for the header "X-API-Authorization-Key". If the values of the key is not the same as the one in the warehouse-microservice, the service will not grant access.
-
Notifications
You must be signed in to change notification settings - Fork 0
SuperGini/warehouse-microservice
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Releases
No releases published