IP Library Granted Patent US 10,599,498
Granted Patent B2
US 10,599,498 · App. 15/812,715 · Granted Mar 24, 2020

Aggregating requests among microservices

Inventors: Takuya Nakaike (Tokyo, JP); Moriyoshi Ohara (Tokyo, JP)
Assignee: INTERNATIONAL BUSINESS MACHINES CORPORATION
G06F9/547G06F9/541
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 10,599,498
App. No.
15/812,715
Granted
Mar 24, 2020
Kind
B2
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 (12)

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.

2. The computer program product of claim 1 , wherein any of the requests received within the wait time are aggregated to form the aggregated requested.

3. A computer processing system for processing requests among microservices in a computer network, comprising:

a processor and a memory operably coupled to the processor, configured to:

generate 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;

generate 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

optimize 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.

Assignments (1)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Nov 14, 2017
From: NAKAIKE, TAKUYA; OHARA, MORIYOSHI
To: INTERNATIONAL BUSINESS MACHINES CORPORATION
Reel/Frame 044124/0519 →
Continuity (2)
Continuation 15624173 · Jun 15, 2017
Related Publication 20180365088A1 · Dec 20, 2018
Cited By (2)
US 12,464,054 US 12,699,654