I'd like some insight/heuristics on how to tackle a specific kind of situation.
Entity A, B have a parent child relationship with Entity C.
Entity A creation is done thru a
POST /createA API in Microservice1 and this microservice has APIs to update, edit and delete an instance of A as well.
Entity C create is done thru a
POST /createC API in Microservice2 and this microservice has APIs to update, edit and delete an instance of C as well.
It is not an option to migrate creation logic of A,B,C into a single component and Microservice1 owns Entity A, while Microservice2 owns Entity C;
Consider the scenario, where a
POST /createA call is made with incorrect data provided for Entity C.
Do we fail the entire request, or do we create A with No reference to C, with an appropriate HTTP status;
given that we cannot verify if Entity C is valid without making a call to