The present invention provides a method and
system for jointly optimizing microservice
call graph deployment and request routing, the method comprising: obtaining the computing resources required for each microservice, sorting the undeployed
microservices according to the required computing resource size, and sequentially allocating the
microservices requested by the user to the deployed microservice nodes based on the constraint of the remaining capacity of the
server node to obtain a microservice deployment set; clustering and partitioning the tuples of different
microservices; sorting the request flow set obtained by clustering in descending order according to the sum of the arrival rates of the requests of each partition, traversing the
server nodes of the deployed microservices, allocating the microservice requests in each cluster partition to the
server nodes, and directly allocating or splitting the microservice requests to multiple server nodes according to the computing resources owned by the nodes to obtain the microservice request forwarding probability and request routing. The scheme can not only reduce the request service
delay and save computing resources, but also ensure the request success rate.