Home:ALL Converter>Microservice architecture - Data initialization

Microservice architecture - Data initialization

Ask Time:2020-05-12T16:13:39         Author:Flo

Json Formatter

we are trying to create a microservice based software.

I like the thought, that all services should work on it own and hold all data that it needs. Also i like the concept that i hold datas up-to-date by messaging, so sending Created/Updated/Deleted events.

But now i stand in front of a problem, i will call it "data-initialization".

So ServiceA needs some data from ServiceB and had subscribed to all needed Events for that. Problem: ServiceA is an optional service so it can happen that ServiceA starts later (maybe a few weeks) then ServiceB.

So now i can do a data-initialization? A few thoughts to that:

  • REST-Call: But what if the data are really big? HTTP is sync-call so it blocks me a long time? Possible that there are too much data for an HTTP-Request?

  • other ways / ideas?

Thanks & Regard!

Author:Flo,eproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/61746798/microservice-architecture-data-initialization
yy