Aggregating requests among microservices
Abstract
A computer-implemented method is provided for processing requests among microservices in a computer network. The method includes 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. The method further includes 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 using each of the parameters of the array as a call parameter for the method. The method also includes 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.
Claims
exact text as granted — not AI-modified1 . A computer-implemented method for processing requests among microservices in a computer network, 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 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.
2 . The computer-implemented method of claim 1 , wherein the API is a REpresentational State Transfer (REST) API.
3 . The computer-implemented method of claim 1 , wherein the response is encrypted on a network layer by the Hypertext Transfer Protocol Secure protocol.
4 . The computer-implemented method of claim 1 , wherein the network layer is an application layer.
5 . The computer-implemented method of claim 1 , wherein the network layer is layer that uses a Hypertext Transfer Protocol Secure.
6 . The computer-implemented method of claim 1 , wherein a time metric, selected from the group consisting of the wait time and the response time, is estimated.
7 . The computer-implemented method of claim 1 , wherein the microservices comprise a first, a second, and a third microservice, and 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.
8 . The computer-implemented method of claim 7 , wherein any of the requests received within the wait time are aggregated to form the aggregated requested.
9 . The computer-implemented method of claim 7 , wherein the wait time is dynamically controlled based on the response time.
10 . The computer-implemented method of claim 1 , wherein the microservices comprise a first, a second, and a third microservice, and wherein the response time is an average response time between when the first microservice receives one of the requests from the second microservice and returns the response to the second microservice.
11 . The computer-implemented method of claim 1 , wherein the microservices comprise a first, a second, and a third microservice, and the method further comprises, responsive to the first microservice receiving one of the requests from the second microservice and sending another one of the requests to a third microservice:
dynamically controlling the wait time between the first and the second microservice; and aggregating any of the requests received within the wait time.
12 . The computer-implemented method of claim 1 , wherein the microservices comprise a first and a second microservice, and 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.
13 . The computer-implemented method of claim 12 , 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.
14 . The computer-implemented method of claim 12 , wherein the wait time is decreased responsive to the current response time being greater than the previous response time and the wait time being increased at a previous control time.
15 . The computer-implemented method of claim 12 , wherein the wait time is increased responsive to the current response time being less than the previous response time and the wait time being increased at a previous control time.
16 . The computer-implemented method of claim 12 , wherein the wait time is decreased responsive to the current response time being less than the previous response time and the wait time being decreased at a previous control time.
17 - 20 . (canceled)Join the waitlist — get patent alerts
Track US2018365087A1 — get alerts on status changes and closely related new filings.
We store only your email — no account needed. See our privacy policy.