| CPC G06F 8/433 (2013.01) [G06F 8/65 (2013.01)] | 20 Claims |

|
1. A method for terminating a plurality of microservices to ensure maximal availability comprising:
retrieving a plurality of request queues from the plurality of microservices, wherein a request queue of the plurality request queues contains one or more outstanding requests for one or more microservices;
constructing a plurality of call graphs based on the one or more outstanding requests contained in each request queue of the plurality of request queues;
updating the plurality of call graphs by monitoring the plurality of request queues in response to a completion of an outstanding request, wherein the completion of the outstanding request causes a removal of the outstanding request from a corresponding request queue;
determining that a microservice of the plurality of microservices does not appear in any of the updated plurality of call graphs following the completion of the outstanding request; and
terminating the microservice in response to determining that the microservice of the plurality of microservices does not appear in any of the updated plurality of call graphs.
|