Reputation: 119
So I've this Microservice architecture where there is an ApiGateway, 2 microservices i.e., Configurations. API
and API-1
. The Configuration. API
is mainly responsible to parse the JSON request and
access the DB and update Status tables, also to fetch required data, it even adds up more values to the JSON request and send it to the API-1. API-1 is responsible to just generate report based on the json passed.
Yes I can merge the configurations. API
to the API-1
and make it a single service/container but the requirement is not to merge and create two different components i.e., 1 component purely based on
fetching the data, updating the status while the other just to generate the reports.
So here are some questions:
configuration.API
or is there a better way to achieve this.Thank you.
Upvotes: 0
Views: 358
Reputation: 1082
but the requirement is not to merege and create two different components
and that is your reason and also base on the fact
also to fetch requried data, it even adds up more values to the JSON request and send it to the API-1
i think the second one makes scenes more. how ever i cant understand why you change the database position since you said the configuration service is responsible for that.
Upvotes: 1