IP Library › Granted Patent US 11,362,952
Granted Patent B2
US 11,362,952 · App. 17/024,310 · Granted Jun 14, 2022

Application programing interface API gateway cluster control method and API gateway cluster

Inventors: Wenhui Xiong (Shenzhen, CN); Zeyi Huang (Shenzhen, CN)
Assignee: Huawei Cloud Computing Technologies Co., Ltd.
H04L47/12G06F9/547H04L47/19H04L67/1008
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 11,362,952
App. No.
17/024,310
Filed
Sep 17, 2020
Granted
Jun 14, 2022
Kind
B2
Art Unit
2445
USPC
370/230
Abstract

An application programming interface (API) gateway cluster control method includes determining, by an API gateway cluster, that a quantity of API requests received per unit of time exceeds a traffic control parameter, obtaining a load parameter of the API gateway cluster and a load parameter of a service cluster, determining, based on the load parameter of the API gateway cluster, that the API gateway cluster is congested, determining, based on the load parameter of the service cluster, that the service cluster is not congested, and scaling out the API gateway cluster.

Claims (52)

1. An application programming interface (API) gateway cluster control method, implemented by a service provisioning system comprising an API gateway cluster and a service cluster, wherein an application accesses the service cluster using the API gateway cluster, and wherein the API gateway cluster control method comprises:

receiving, by the API gateway cluster, a quantity of API requests;

determining, by the API gateway cluster, the quantity of API requests exceeds a traffic control parameter;

obtaining, by the API gateway cluster, a first load parameter of the API gateway cluster;

obtaining, by the API gateway cluster, a second load parameter of the service cluster;

determining, by the API gateway cluster, the API gateway cluster is congested based on the first load parameter;

determining, by the API gateway cluster, the service cluster is not congested based on the second load parameter; and

scaling out, by the API gateway cluster, the API gateway cluster in response to determining the API gateway cluster is congested and determining the service cluster is not congested.

2. The API gateway cluster control method of claim 1 , wherein the API gateway cluster comprises an API gateway controller and at least one API routing apparatus.

3. The API gateway cluster control method of claim 1 , wherein scaling out the API gateway cluster comprises establishing an API routing apparatus in the API gateway cluster according to an instruction of an API gateway controller.

4. The API gateway cluster control method of claim 1 , further comprising generating a blacklist when the service cluster is congested.

5. The API gateway cluster control method of claim 2 , wherein the first load parameter comprises a third load parameter of the at least one API routing apparatus.

6. The API gateway cluster control method of claim 1 , wherein each of the API requests corresponds to an application of a user and is forwarded to a target service by the API gateway cluster.

7. An application programming interface (API) gateway cluster control method, implemented by a service provisioning system comprising an API gateway cluster and a service cluster, wherein an application accesses the service cluster using the API gateway cluster, and wherein the API gateway cluster control method comprises:

receiving, by the API gateway cluster, a quantity of API requests;

determining, by the API gateway cluster, the quantity of API requests exceeds a traffic control parameter;

obtaining, by the API gateway cluster, a first load parameter of the API gateway cluster;

obtaining, by the API gateway cluster, a second load parameter of the service cluster;

determining, by the API gateway cluster, the API gateway cluster is not congested based on the first load parameter;

determining, by the API gateway cluster, the service cluster is not congested based on the second load parameter; and

updating, by the API gateway cluster, the traffic control parameter in response to determining the API gateway cluster is not congested and determining the service cluster is not congested.

8. The API gateway cluster control method of claim 7 , wherein the traffic control parameter comprises a user-level traffic control parameter.

9. The API gateway cluster control method of claim 7 , wherein the traffic control parameter comprises an API-request-level traffic control parameter.

10. The API gateway cluster control method of claim 7 , wherein updating the traffic control parameter comprises increasing an API-request-level traffic control parameter.

11. The API gateway cluster control method of claim 8 , wherein updating the traffic control parameter comprises increasing the user-level traffic control parameter.

12. An application programming interface (API) gateway cluster, comprising at least one computing device, wherein each of the at least one computing device comprises:

a processor; and

a memory coupled to the processor and storing instructions that, when executed by the processor, cause the API gateway cluster to be configured to:

receive a quantity of API requests from an application;

determine the quantity of API requests exceeds a traffic control parameter;

obtain a first load parameter of the API gateway cluster;

obtain a second load parameter of a service cluster from the application;

determine the API gateway cluster is congested based on the first load parameter;

determine the service cluster is not congested based on the second load parameter; and

scale out the API gateway cluster in response to determining the API gateway cluster is congested and determining the service cluster is not congested.

13. The API gateway cluster of claim 12 , wherein the processor executes the instructions to implement at least one API routing apparatus.

14. The API gateway cluster of claim 12 , wherein the instructions that cause the API gateway cluster to scale out the API gateway cluster further cause the API gateway cluster to be configured to establish an API routing apparatus in the API gateway cluster according to an instruction of an API gateway controller.

15. The API gateway cluster of claim 13 , wherein the first load parameter comprises a third load parameter of the at least one API routing apparatus.

16. An application programming interface (API) gateway cluster, comprising at least one computing device, wherein each of the at least one computing device comprises:

a processor; and

a memory coupled to the processor and storing instructions that, when executed by the processor, cause the API gateway cluster to be configured to:

receive an API request sent by an application, wherein the application accesses a service in a service cluster by using the API request;

determine a quantity of API requests exceeds a traffic control parameter;

obtain a first load parameter of the API gateway cluster;

obtain a second load parameter of the service cluster;

determine the API gateway cluster is not congested based on the first load parameter;

determine the service cluster is not congested based on the second load parameter; and

update the traffic control parameter in response to determining the API gateway cluster is not congested and determining the service cluster is not congested.

17. The API gateway cluster of claim 16 , wherein the traffic control parameter comprises a user-level traffic control parameter.

18. The API gateway cluster of claim 17 , wherein updating the traffic control parameter comprises increasing the user-level traffic control parameter.

19. The API gateway cluster of claim 16 , wherein the traffic control parameter comprises an API-request-level traffic control parameter.

20. The API gateway cluster of claim 19 , wherein updating the traffic control parameter comprises increasing the API-request-level traffic control parameter.

Assignments (2)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Mar 1, 2022
From: HUAWEI TECHNOLOGIES CO., LTD.
To: HUAWEI CLOUD COMPUTING TECHNOLOGIES CO., LTD.
Reel/Frame 059267/0088 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Nov 23, 2020
From: XIONG, WENHUI; HUANG, ZEYI
To: HUAWEI TECHNOLOGIES CO., LTD.
Reel/Frame 054441/0501 →
Continuity (2)
Continuation PCTCN2018079741 · Mar 21, 2018
Related Publication 20210006496A1 · Jan 7, 2021