I'm trying to re-building Task Consumer microservice which has below task
- Consume rabbitMQ
- Call to API as per need and add or update database
- Insert initial set up data which will be used by API/UI independently.
I'm not sure whether initial set up data needs to be in Taskconsumer service or I should move it to API . API has access to DB by EFramework code first approach. So might needs to just move my DML/DDL queries to Data access layer which can be triggered by API ? .
what Initial set up data do
- creation of indexes on the same table which are used by API
- Insert Enums, Types etc which is neccessary to run the App etc.
Any suggestion/comments are welcome.
Thanks
Aucun commentaire:
Enregistrer un commentaire