×

Aggregating requests among microservices

  • US 10,599,498 B2
  • Filed: 11/14/2017
  • Issued: 03/24/2020
  • Est. Priority Date: 06/15/2017
  • Status: Active Grant
First Claim
Patent Images

1. A computer program product for processing requests among microservices in a computer network, the computer program product comprising a non-transitory computer readable storage medium having program instructions embodied therewith, the program instructions executable by a computer to cause the computer to perform a method comprising:

  • generating, by a processor, a method to return a body of a response from an Application Programming Interface (API) that aggregates the requests among the microservices to form aggregated requests;

    generating, by the processor, another API that automatically receives the aggregated requests from the API by receiving an array of parameters of the original API and calling the method to return the body of the response using each of the parameters of the array as a call parameter for the method; and

    optimizing, by the processor, a number of aggregated requests in a network layer of the computer network based on a wait time and a response time to receive and transfer requests between micro services,wherein the microservices comprise a first, a second, and a third microservice, wherein the wait time is a time period between when the first microservice receives one of the requests from the second microservice and sends another one of the requests to the third microservice, wherein the method further includes adjusting the wait time based on a comparison of a current response time between the first and the second microservice to a previous response time between the first and the second microservices, and wherein the wait time is increased responsive to the current response time being greater than the previous response time and the wait time being decreased at a previous control time.

View all claims
  • 1 Assignment
Timeline View
Assignment View
    ×
    ×