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!