WO2024046303A1 - Access request processing method, apparatus, and system - Google Patents

Access request processing method, apparatus, and system Download PDF

Info

Publication number
WO2024046303A1
WO2024046303A1 PCT/CN2023/115453 CN2023115453W WO2024046303A1 WO 2024046303 A1 WO2024046303 A1 WO 2024046303A1 CN 2023115453 W CN2023115453 W CN 2023115453W WO 2024046303 A1 WO2024046303 A1 WO 2024046303A1
Authority
WO
WIPO (PCT)
Prior art keywords
forwarding
token
access request
tokens
gateway
Prior art date
Application number
PCT/CN2023/115453
Other languages
French (fr)
Chinese (zh)
Inventor
陈永谦
龙卉
龚辉
张强
Original Assignee
中兴通讯股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2024046303A1 publication Critical patent/WO2024046303A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/60Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources

Definitions

  • This application belongs to the technical field of information technology, and specifically relates to an access request processing method, device and system.
  • API gateway cluster is a multi-machine cluster environment composed of several API gateway servers. It forwards external network access requests to the API interface services provided by the system. During the forwarding process, the API gateway controls the access request. Due to the low complexity of the API gateway business and to ensure that network request traffic is not lost in the API gateway link, the performance of the API gateway is usually much higher than the backend service system (hereinafter referred to as the backend system). In order to protect the backend forwarded by the API gateway The system will not be impacted by large traffic, so it is important to limit access requests to the API gateway.
  • backend system backend service system
  • API gateway current limiting methods are generally divided into two types:
  • Rate limiting that is, controlling the number of access requests within a certain period of time, for example, 100 times per second, 200 times every 20 seconds.
  • this method uses time as the control dimension and cannot sense the running status of the background system in a timely manner; and, for scenarios where the API time-consuming is variable, this method cannot accurately evaluate the rate limiting configuration of the API gateway.
  • Concurrency limiting that is, limiting the number of access requests to the backend system at the same time. For example, limiting the number of access requests to 10 means that the number of requests to access the backend system at the same time is 10. However, this method only provides overall control of the backend system and cannot accurately control the current limit of a single API gateway.
  • the usual approach is to wait for the scheduled time After a certain period of time, the access request is directly forwarded to the backend system or the API gateway blocks the polling current limit.
  • the API gateway current limiting method in related technologies does not take into account the performance of the gateway and the backend system, and can easily lead to the downtime of the backend system.
  • the purpose of the embodiments of this application is to provide an access request processing method, device and system that can solve the problem in related technologies that the API gateway current limiting method does not take into account the performance of the gateway and the backend system, and easily leads to the downtime of the backend system.
  • embodiments of the present application provide a method for processing access requests.
  • the method includes: applying for a forwarding token according to the received access request; in response to the number of forwarding tokens in the token pool being non-zero, the method carrying the The access request for forwarding token information is forwarded to the backend system, where the token pool has a preset number of forwarding tokens, and the preset number is determined based on the performance of the backend system and the current gateway performance;
  • the access request for token information and the received response information carrying the forwarding token information are updated to update the number of forwarding tokens in the token pool.
  • inventions of the present application provide an access request processing device.
  • the device includes: a token application unit, configured to apply for a forwarding token according to the received access request; and a forwarding unit, configured to respond to the token pool.
  • the number of forwarding tokens in is non-zero, and the access request carrying the forwarding token information is forwarded to the backend system, where the token pool has a preset number of forwarding tokens, and the preset number is based on the backend system performance and Current gateway performance is determined;
  • a token update unit is configured to update the forwarding token of the token pool according to the access request carrying the forwarding token information and the received response information carrying the forwarding token information. quantity.
  • embodiments of the present application provide an access request processing system, which includes: the above-mentioned access request processing device, a backend system, and a gateway cluster including at least one gateway, wherein the access request processing device is located at Describe the gateway cluster side.
  • inventions of the present application provide an electronic device.
  • the electronic device includes a processor, a memory, and a program or instructions stored on the memory and executable on the processor.
  • the program or instructions are When executed by the processor, the steps of the method described in the first aspect are implemented.
  • embodiments of the present application provide a readable storage medium.
  • Programs or instructions are stored on the readable storage medium.
  • the programs or instructions are executed by a processor, the method described in the first aspect is implemented. Method steps.
  • Figure 1 is an example structural diagram of an API gateway cluster in related technologies
  • Figure 2 is a schematic flow chart of an access request processing method provided by an embodiment of the present application.
  • Figure 3 is a schematic flowchart of the current limiting flow of the access request processing method provided by the embodiment of the present application.
  • Figure 4 is a schematic diagram of the request response flow of the access request processing method provided by the embodiment of the present application.
  • Figure 5 is a schematic diagram of another current limiting flowchart of the access request processing method provided by the embodiment of the present application.
  • FIG. 6 is another schematic flowchart of an access request processing method provided by an embodiment of the present application.
  • FIG. 7 is a structural block diagram of the access request processing system provided by the embodiment of the present application.
  • FIG. 8 is a structural block diagram of the access request processing device 1 provided by the embodiment of the present application.
  • Figure 9 is a structural example diagram of an API gateway current limiting system in related technologies.
  • Figure 10 is a structural example diagram of the access request processing system provided by the embodiment of the present application.
  • Figure 11 is a schematic structural diagram of an electronic device provided by an embodiment of the present application.
  • Figure 1 is an example structural diagram of an API gateway cluster in related technologies.
  • the API gateway includes: a configuration module, a current limiting module and a forwarding module.
  • the configuration module is used to set the current limiting configuration information and The flow configuration information is written to the current limiting module.
  • the forwarding module processes the access request according to the current limiting configuration information in the current limiting module and forwards it to the backend system or temporarily limits the flow.
  • the embodiment of the present application provides an access request processing solution.
  • This solution sets up a token pool based on the performance of the backend system and gateway, and limits forwarding access requests based on the tokens in the token pool, thereby protecting the backend system from being impacted by large traffic and avoiding downtime of the backend system.
  • FIG 2 is a schematic flowchart of an access request processing method provided by an embodiment of the present application. As shown in Figure 2, the method may include the following steps S210-S230.
  • the preset number of forwarding tokens refers to the access requests that can be forwarded through the gateway at the same time.
  • S220 In response to the number of forwarding tokens in the token pool being non-zero, forward the access request carrying the forwarding token information to the backend system.
  • the access request received at this time can be forwarded, and then the access request carrying the forwarding token information will be forwarded to the backend system, and then the access request in the token pool will be forwarded.
  • the number of forwarding tokens is reduced by one. Until the number of forwarding tokens in the token pool reaches zero, it means that the access request received at this time needs to wait and cannot be forwarded immediately. In this way, the current limiting function of the gateway is achieved.
  • a token pool with a different preset number of forwarding tokens can be set for each gateway according to the background system performance and the performance of each gateway. That is to say, token pools can be set up for different gateways in the gateway cluster.
  • the number of forwarding tokens in each token pool can be different. Specifically, the number of forwarding tokens in each token pool can be based on the background system performance and respective Determine gateway performance.
  • the access request may be sent to the waiting queue to wait.
  • the notification process can be triggered. This notification process is used to notify access requests in the waiting queue to apply for forwarding tokens when the number of forwarding tokens in the token pool is non-zero.
  • S230 Update the number of forwarding tokens in the token pool according to the above-mentioned access request carrying forwarding token information and the received response information carrying forwarding token information.
  • the number of forwarding tokens in the token pool is reduced by one; then, according to the received response information carrying the above-mentioned forwarding token information, the number of forwarding tokens in the token pool is reduced by one. The number of forwarding tokens in is increased by one.
  • the number of forwarded tokens in the token pool will be reduced by one.
  • the response request for the access request is returned, it means that the access request has been completed. At this time, the number of forwarded tokens in the token pool will be reduced by one. The number of forwarding tokens is increased by one. In this way, the current limit on the access requests forwarded by the gateway is realized, and the downtime of the backend system is avoided.
  • FIG. 3 is a schematic diagram of the current limiting process of the access request processing method according to the embodiment of the present application.
  • a token pool is added.
  • the configured concurrency limit will be initialized.
  • Number of flows used to set the number of forwarding tokens (can be referred to as tokens for short). For example, if the number of concurrent current limits is configured to 10, 10 tokens will be initialized in the token pool.
  • the request needs to be forwarded, it needs to apply for a token from the token pool.
  • the request can carry a token (that is, carry the token information) and forward it to the backend system. Access Backend, the token pool will be reduced by 1 token at this time.
  • FIG 4 is a schematic diagram of the request response flow of the access request processing method according to the embodiment of the present application. As shown in Figure 4, when the response to the access request is returned, the tokens carried will be returned. At this time, the number of tokens in the token pool increases. 1 to provide for subsequent request applications.
  • FIG. 5 is another schematic diagram of the current limiting process of the access request processing method according to the embodiment of the present application.
  • the request to apply for a token fails at this time.
  • This request is subject to current limiting processing, and the request is sent to the waiting queue to wait, and the notification process is triggered at the same time.
  • the notification process will notify requests in the waiting queue to continue applying for tokens to facilitate access to the backend system.
  • the above-mentioned token pool has the following functions:
  • the number of tokens remaining in the token pool represents the maximum access capability of the current gateway.
  • the number of tokens in the token pool determines the process of the access request. When the access request obtains the token If the token is obtained, it can enter the forwarding process of the gateway, and if the token is not obtained, it can enter the waiting queue process of the gateway.
  • the notification event When the number of tokens in the token pool is zero, the notification event will be activated. When the token exists again in the token pool, the token pool will trigger the request in the notification waiting queue to apply for the token again for subsequent access. process. Activating or triggering the notification process. Compared with the access waiting mechanism in related technologies, the active notification in the embodiment of the present application can improve resource utilization.
  • gateway as an API gateway as an example, the following describes the access request processing method in the embodiment of the present application in detail in conjunction with the process shown in Figure 6 .
  • the access request processing method specifically includes the following steps S601-S606:
  • S601 Receive the request, and the API gateway forwards the request.
  • S602 Request to enter the current limiting process and apply for a token from the token pool.
  • S603 Determine whether there is a token in the token pool. If so, proceed to S604; otherwise, proceed to S605.
  • S604 Forward the request carrying the applied token to the backend system.
  • the API gateway is in current limit, and sends the request to the waiting queue, waiting for the token pool to be returned after the request is completed, and then applies for a token.
  • the embodiment of this application is based on the token pool function, which reduces the resources occupied by the API gateway during concurrent current limiting in related technologies.
  • the recycling token method increases the control accuracy of current limiting, reduces the time required in related technologies to release a concurrent process after receiving a response, and improves the utilization of the API gateway.
  • requests waiting in the queue can be actively notified to enter the forwarding process again, which saves access time, increases the utilization of the background system, and improves the ability to forward all unrestricted forwarding or enter the forwarding limit again after passive activation. process, increasing the stability of the entire system.
  • inventions of the present application also provide an access request processing system, as shown in Figure 7.
  • the system includes: an access request processing device 1, a backend system 2 and a gateway cluster 3, where the gateway cluster 3 includes At least one gateway, the access request processing device 1 is located at the gateway cluster 3 end.
  • FIG 8 is a structural block diagram of an access request processing device 1 according to an embodiment of the present application.
  • the access request processing device 1 includes: a token application unit 11, a forwarding unit 12 and a token update unit 13, where:
  • the token application unit 11 is used to apply for a forwarding token according to the received access request.
  • the forwarding unit 12 is configured to forward the access request carrying the forwarding token information to the backend system in response to the non-zero number of forwarding tokens in the token pool, where the token pool has a preset number of forwarding tokens. , the preset number is determined based on the background system performance and the current gateway performance.
  • the token updating unit 13 is configured to update the number of forwarding tokens in the token pool according to the access request carrying the forwarding token information and the received response information carrying the forwarding token information.
  • the token update unit 13 reduces the number of forwarding tokens in the token pool by one according to the access request carrying the forwarding token information, and reduces the number of forwarding tokens in the token pool by one according to the received access request carrying the forwarding token information. response information, increase the number of forwarding tokens in the token pool by one.
  • the forwarding unit 12 can determine whether to forward the access request according to the number of forwarding tokens, because the number of forwarding tokens is based on the background system performance and the current gateway performance.
  • the current gateway performance settings can protect the backend system from being impacted by heavy traffic and avoid downtime of the backend system.
  • the above-mentioned access request processing device 1 further includes: a request waiting unit, configured to send the access request to the waiting queue in response to the number of forwarding tokens in the token pool being zero.
  • the above-mentioned access request processing device 1 further includes: a notification process triggering unit, configured to trigger a notification process.
  • the notification process is used to notify all forwarding tokens when the number of forwarding tokens in the token pool is non-zero.
  • the access request in the waiting queue applies for the forwarding token.
  • the above-mentioned access request processing device 1 also includes: a token pool setting unit, configured to respond to the gateway cluster including multiple gateways, and set different presets for each gateway according to the performance of the background system and the performance of each gateway. Let the number of forwarding tokens in the token pool.
  • the access request processing device in the embodiment of the present application may be a device, or may be a component, integrated circuit, or chip in the system, which is not specifically limited in the embodiment of the present application.
  • the access request processing device provided by the embodiment of the present application can implement each process in the method embodiments of Figures 2-6 and achieve the same technical effect. To avoid duplication, the details will not be described here.
  • FIG 9 is a structural example diagram of an API gateway current limiting system in related technologies.
  • access requests are forwarded through a current limiting module and a forwarding model.
  • the back-end API provides back-end services for the internal GUI (Graphical User Interface, graphical user interface) channel (used by internal management) and WEB channel (used by external users).
  • GUI Graphic User Interface
  • WEB WEB channel
  • the traffic of the WEB interface is in a certain Sometimes the traffic is much larger than that of the GUI, often causing the GUI access API to be unable to obtain the background system service response, resulting in inability to enter.
  • the API gateway rate limiting module i.e., the current limiting module in the figure
  • the effect was not good because the specific configuration of the rate limiting could not be estimated, and the setting was too large to reach the GUI channel.
  • the purpose of being affected by WEB channel access is also unable to achieve the purpose of protecting back-end system services, which may cause greater access pressure on back-end system services and the possibility of downtime; if the setting is too small, the GUI channel access will not be affected by WEB Channel access affects the purpose, but the background system services are often idle, resulting in a waste of resources.
  • FIG 10 is a structural example diagram of an access request processing system according to an embodiment of the present application.
  • forwarding and current limiting of access requests are implemented through a token pool.
  • the background system performance is able to handle 64 access requests at the same time.
  • 60 After configuring the API gateway, 60 will be initialized in the token pool.
  • a token means that the WEB channel access through the API gateway can handle 60 requests at the same time, leaving 4 requests for the GUI channel. This ensures that the entire system can operate normally for access provided by different channels, and also ensures that the access requests are correct.
  • the background system will not generate excessive pressure and avoid system downtime.
  • the background system processes more than 60 requests at the same time, the number of tokens in the token pool is 0. At this time, new requests will enter the waiting queue. When a request is processed and returned, the token will be returned to the token pool when the response is returned through the API gateway. At this time, if there is a token in the token pool, a notification will be triggered for the request in the waiting queue to apply for a token. , thereby forwarding it to the backend system.
  • Each API gateway can correspond to a token pool and waiting queue. Specifically, the number of tokens in each token pool can be based on the actual backend system. and gateway performance, this application does not limit this.
  • the resource pressure of the API gateway waiting queue on the API gateway can be improved.
  • the notification mechanism in this example the access efficiency and resource utilization of the background system can be improved.
  • the current limit accuracy is higher compared to the current limit method shown in Figure 9.
  • the waiting pressure on the backend system is reduced, and the possibility of downtime of the backend system is reduced.
  • the gateway By adding the design of the token pool, the gateway is prevented from determining the number of concurrent connections through the working process, saving the resources occupied by the API gateway, while improving the current-limited access processing, and changing the openresty gateway (a kind of related technology).
  • API gateway will limit all traffic after a certain sleep time. All accesses are forwarded to the target background service, leading to the risk of increased operating pressure or even downtime of the background service.
  • the token is returned to the token pool through the forwarding module, and the token pool notifies the access waiting queue for access, which improves the situation in related technologies that the concurrent number must be released after receiving the API response, making The concurrent number is released in advance, which increases the access forwarding efficiency of the API gateway.
  • openresty gateway can launch 10 working processes at the same time.
  • API access will sleep for 5 seconds, and after 5 seconds, all access requests will be forwarded to In the background system, this may cause the background system service processing capacity to be insufficient, the background request queue to be long, and the background service to be unstable.
  • the design of the token pool is added, which prevents the gateway from determining the number of concurrent connections through the working process, saves the resources occupied by the API gateway, and also improves the processing of current-limited access.
  • the embodiment of this application makes the waiting requests through the issuance and recycling of tokens and the waiting queue. It can be released in time, which improves the gateway's access request forwarding efficiency.
  • this embodiment of the present application also provides an electronic device 1100, including a processor 1110 and a memory 1120.
  • the memory 1120 stores programs or instructions that can be run on the processor 1110.
  • the electronic device 1100 is a terminal
  • the program or instruction is executed by the processor 1110, each process of the above access request processing method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, they will not be repeated here.
  • Embodiments of the present application also provide a readable storage medium.
  • Programs or instructions are stored on the readable storage medium.
  • the program or instructions are executed by a processor, each process of the above access request processing method embodiment is implemented, and can achieve The same technical effects are not repeated here to avoid repetition.
  • the processor is the processor in the electronic device described in the above embodiment.
  • the readable storage media includes computer-readable storage media, such as computer read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic disks or optical disks, etc.
  • An embodiment of the present application further provides a chip.
  • the chip includes a processor and a communication interface.
  • the communication interface is coupled to the processor.
  • the processor is used to run programs or instructions to implement the above embodiment of the access request processing method. Each process can achieve the same technical effect. To avoid repetition, we will not go into details here.
  • embodiments of the present application also provide a computer program product.
  • the computer program The product includes a processor, a memory, and a program or instruction stored on the memory and executable on the processor.
  • the program or instruction is executed by the processor, each process of the above access request processing method embodiment is implemented. , and can achieve the same technical effect, so to avoid repetition, they will not be described again here.
  • the access request processing solution provided by the embodiment of this application comprehensively considers the performance of the backend system and the gateway to set the current limiting configuration.
  • the current limiting configuration can be set for different gateways respectively, which improves the utilization of the backend system and also improves the efficiency of the backend system.
  • the gateway's forwarding rate of access requests In the scenario of cloud computing and computing power network, this solution can increase the friendliness of access. When the access exceeds the limit, it will not be directly rejected, or it will be directly forwarded to the back-end service after waiting for a certain period of time, but will enter the waiting queue.
  • the gateway determines that access can continue, it obtains the request from the waiting queue and continues the access process, and the API gateway can also feed back data as information for system optimization, which increases the robustness and self-optimization of the system and avoids system downtime.
  • the methods of the above embodiments can be implemented by means of software plus the necessary general hardware platform. Of course, it can also be implemented by hardware, but in many cases the former is better. implementation.
  • the technical solution of the present application can be embodied in the form of a computer software product that is essentially or contributes to the existing technology.
  • the computer software product is stored in a storage medium (such as ROM/RAM, disk , optical disk), including several instructions to cause a terminal (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods described in various embodiments of this application.

Abstract

The present application discloses an access request processing method, apparatus, and system. The method comprises: according to a received access request, applying for a forwarding token; in response to the number of forwarding tokens in a token pool being non-zero, forwarding to a background system the access request carrying forwarding token information, the token pool having a preset number of forwarding tokens, and the preset number being determined on the basis of the performance of the background system and the performance of a current gateway; and updating the number of forwarding tokens of the token pool according to the access request carrying the forwarding token information and received response information carrying the forwarding token information.

Description

访问请求处理方法、装置及系统Access request processing method, device and system
交叉引用cross reference
本申请要求在2022年09月01日提交中国专利局、申请号为202211069611.2、名称为“访问请求处理方法、装置及系统”的中国专利申请的优先权,该申请的全部内容通过引用结合在本申请中。This application claims priority to a Chinese patent application filed with the China Patent Office on September 1, 2022, with application number 202211069611.2 and titled "Access Request Processing Method, Device and System". The entire content of this application is incorporated herein by reference. Applying.
技术领域Technical field
本申请属于信息技术技术领域,具体涉及一种访问请求处理方法、装置及系统。This application belongs to the technical field of information technology, and specifically relates to an access request processing method, device and system.
背景技术Background technique
API(Application Programming Interface,应用程序编程接口)网关集群是若干API网关服务器组成的多机集群环境,是将外部网络访问请求转发到系统提供的API接口服务上。在转发过程中,API网关对访问请求进行控制。由于API网关业务复杂度较低并且为了保证网络请求流量在API网关环节不受到损失,因此API网关的性能通常是远高于后台服务系统(以下简称为后台系统),为了保护API网关转发的后台系统不会受到大流量冲击,对接入API网关的访问请求进行限流是很重要的。API (Application Programming Interface, Application Programming Interface) gateway cluster is a multi-machine cluster environment composed of several API gateway servers. It forwards external network access requests to the API interface services provided by the system. During the forwarding process, the API gateway controls the access request. Due to the low complexity of the API gateway business and to ensure that network request traffic is not lost in the API gateway link, the performance of the API gateway is usually much higher than the backend service system (hereinafter referred to as the backend system). In order to protect the backend forwarded by the API gateway The system will not be impacted by large traffic, so it is important to limit access requests to the API gateway.
目前,API网关限流方式一般分为两种:Currently, API gateway current limiting methods are generally divided into two types:
一、速率限流,即,控制某段时间内的访问请求次数,例如,100次每秒,200次每20秒。然而,该方式采用时间为控制维度,无法及时感知后台系统的运行状况;并且,对于API耗时不定的场景,该方式无法精确评估API网关的速率限流配置。1. Rate limiting, that is, controlling the number of access requests within a certain period of time, for example, 100 times per second, 200 times every 20 seconds. However, this method uses time as the control dimension and cannot sense the running status of the background system in a timely manner; and, for scenarios where the API time-consuming is variable, this method cannot accurately evaluate the rate limiting configuration of the API gateway.
二、并发限流,即,限制后台系统同一时间的访问请求数量,例如,访问请求数量限制为10次,表示同时访问后台系统的请求数量为10。然而,该方式仅是对后台系统进行整体控制,而无法精确控制单个API网关的限流。2. Concurrency limiting, that is, limiting the number of access requests to the backend system at the same time. For example, limiting the number of access requests to 10 means that the number of requests to access the backend system at the same time is 10. However, this method only provides overall control of the backend system and cannot accurately control the current limit of a single API gateway.
同时,对于被上述两种方式限流的访问请求,通常的做法是等待预定时 间后将访问请求直接转发到后台系统或者阻塞轮询限流的API网关,这些方式均未考虑后台系统的性能,容易导致后台系统的宕机。At the same time, for access requests that are restricted by the above two methods, the usual approach is to wait for the scheduled time After a certain period of time, the access request is directly forwarded to the backend system or the API gateway blocks the polling current limit. These methods do not consider the performance of the backend system and can easily lead to the downtime of the backend system.
也就是说,相关技术中的API网关限流方式并未兼顾网关和后台系统的性能,容易导致后台系统的宕机。In other words, the API gateway current limiting method in related technologies does not take into account the performance of the gateway and the backend system, and can easily lead to the downtime of the backend system.
发明内容Contents of the invention
本申请实施例的目的是提供一种访问请求处理方法、装置及系统,能够解决相关技术中的API网关限流方式并未兼顾网关和后台系统的性能、容易导致后台系统宕机的问题。The purpose of the embodiments of this application is to provide an access request processing method, device and system that can solve the problem in related technologies that the API gateway current limiting method does not take into account the performance of the gateway and the backend system, and easily leads to the downtime of the backend system.
第一方面,本申请实施例提供了一种访问请求处理方法,所述方法包括:根据接收到的访问请求申请转发令牌;响应于令牌池中的转发令牌数量非零,将携带有转发令牌信息的访问请求转发至后台系统,其中,所述令牌池具有预设数量的转发令牌,所述预设数量基于后台系统性能和当前网关性能确定;根据所述携带有转发令牌信息的访问请求和接收到的携带有所述转发令牌信息的响应信息,更新所述令牌池的转发令牌数量。In the first aspect, embodiments of the present application provide a method for processing access requests. The method includes: applying for a forwarding token according to the received access request; in response to the number of forwarding tokens in the token pool being non-zero, the method carrying the The access request for forwarding token information is forwarded to the backend system, where the token pool has a preset number of forwarding tokens, and the preset number is determined based on the performance of the backend system and the current gateway performance; The access request for token information and the received response information carrying the forwarding token information are updated to update the number of forwarding tokens in the token pool.
第二方面,本申请实施例提供了一种访问请求处理装置,所述装置包括:令牌申请单元,用于根据接收到的访问请求申请转发令牌;转发单元,用于响应于令牌池中的转发令牌数量非零,将携带有转发令牌信息的访问请求转发至后台系统,其中,所述令牌池具有预设数量的转发令牌,所述预设数量基于后台系统性能和当前网关性能确定;令牌更新单元,用于根据所述携带有转发令牌信息的访问请求和接收到的携带有所述转发令牌信息的响应信息,更新所述令牌池的转发令牌数量。In the second aspect, embodiments of the present application provide an access request processing device. The device includes: a token application unit, configured to apply for a forwarding token according to the received access request; and a forwarding unit, configured to respond to the token pool. The number of forwarding tokens in is non-zero, and the access request carrying the forwarding token information is forwarded to the backend system, where the token pool has a preset number of forwarding tokens, and the preset number is based on the backend system performance and Current gateway performance is determined; a token update unit is configured to update the forwarding token of the token pool according to the access request carrying the forwarding token information and the received response information carrying the forwarding token information. quantity.
第三方面,本申请实施例提供了一种访问请求处理系统,所述系统包括:上述的访问请求处理装置、后台系统和包括至少一个网关的网关集群,其中,所述访问请求处理装置位于所述网关集群端。In the third aspect, embodiments of the present application provide an access request processing system, which includes: the above-mentioned access request processing device, a backend system, and a gateway cluster including at least one gateway, wherein the access request processing device is located at Describe the gateway cluster side.
第四方面,本申请实施例提供了一种电子设备,该电子设备包括处理器、存储器及存储在所述存储器上并可在所述处理器上运行的程序或指令,所述程序或指令被所述处理器执行时实现如第一方面所述的方法的步骤。In a fourth aspect, embodiments of the present application provide an electronic device. The electronic device includes a processor, a memory, and a program or instructions stored on the memory and executable on the processor. The program or instructions are When executed by the processor, the steps of the method described in the first aspect are implemented.
第五方面,本申请实施例提供了一种可读存储介质,所述可读存储介质上存储程序或指令,所述程序或指令被处理器执行时实现如第一方面所述的 方法的步骤。In the fifth aspect, embodiments of the present application provide a readable storage medium. Programs or instructions are stored on the readable storage medium. When the programs or instructions are executed by a processor, the method described in the first aspect is implemented. Method steps.
附图说明Description of drawings
图1是相关技术中的API网关集群的结构示例图;Figure 1 is an example structural diagram of an API gateway cluster in related technologies;
图2是本申请实施例提供的访问请求处理方法的一种流程示意图;Figure 2 is a schematic flow chart of an access request processing method provided by an embodiment of the present application;
图3是本申请实施例提供的访问请求处理方法的限流流程示意图;Figure 3 is a schematic flowchart of the current limiting flow of the access request processing method provided by the embodiment of the present application;
图4是本申请实施例提供的访问请求处理方法的请求响应流程示意图;Figure 4 is a schematic diagram of the request response flow of the access request processing method provided by the embodiment of the present application;
图5是本申请实施例提供的访问请求处理方法的另一种限流流程示意图;Figure 5 is a schematic diagram of another current limiting flowchart of the access request processing method provided by the embodiment of the present application;
图6是本申请实施例提供的访问请求处理方法的另一种流程示意图;Figure 6 is another schematic flowchart of an access request processing method provided by an embodiment of the present application;
图7是本申请实施例提供的访问请求处理系统的一种结构框图;Figure 7 is a structural block diagram of the access request processing system provided by the embodiment of the present application;
图8是本申请实施例提供的访问请求处理装置1的一种结构框图;Figure 8 is a structural block diagram of the access request processing device 1 provided by the embodiment of the present application;
图9是相关技术中的API网关限流系统的结构示例图;Figure 9 is a structural example diagram of an API gateway current limiting system in related technologies;
图10是本申请实施例提供的访问请求处理系统的结构示例图;Figure 10 is a structural example diagram of the access request processing system provided by the embodiment of the present application;
图11是本申请实施例提供的电子设备的一种结构示意图。Figure 11 is a schematic structural diagram of an electronic device provided by an embodiment of the present application.
具体实施方式Detailed ways
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员获得的所有其他实施例,都属于本申请保护的范围。The technical solutions in the embodiments of the present application will be clearly described below with reference to the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, but not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by those of ordinary skill in the art fall within the scope of protection of this application.
在实现本申请的过程中,申请人发现如下相关技术:In the process of implementing this application, the applicant discovered the following related technologies:
图1是相关技术中的API网关集群的结构示例图,如图1所示,API网关包括:配置模块、限流模块和转发模块,其中,配置模块用于设置限流配置信息,并将限流配置信息写入至限流模块,转发模块在转发访问请求时根据限流模块中的限流配置信息,对访问请求进行处理,转发至后台系统或者暂时限流。Figure 1 is an example structural diagram of an API gateway cluster in related technologies. As shown in Figure 1, the API gateway includes: a configuration module, a current limiting module and a forwarding module. The configuration module is used to set the current limiting configuration information and The flow configuration information is written to the current limiting module. When forwarding the access request, the forwarding module processes the access request according to the current limiting configuration information in the current limiting module and forwards it to the backend system or temporarily limits the flow.
鉴于相关技术中的API网关限流方式并未兼顾网关和后台系统的性能,容易导致后台系统宕机,基于此,本申请实施例提供一种访问请求处理方案, 该方案根据后台系统和网关的性能设置令牌池,基于令牌池中的令牌来限制转发访问请求,从而可以保护后台系统不会受到大流量冲击,避免了后台系统的宕机。In view of the fact that the API gateway current limiting method in the related art does not take into account the performance of the gateway and the backend system, it is easy to cause the backend system to crash. Based on this, the embodiment of the present application provides an access request processing solution. This solution sets up a token pool based on the performance of the backend system and gateway, and limits forwarding access requests based on the tokens in the token pool, thereby protecting the backend system from being impacted by large traffic and avoiding downtime of the backend system.
下面结合附图,通过具体的实施例及其应用场景对本申请实施例进行详细地说明。The embodiments of the present application will be described in detail below with reference to the accompanying drawings through specific embodiments and application scenarios.
图2是本申请实施例提供的访问请求处理方法的一种流程示意图,如图2所示,该方法可以包括以下步骤S210-S230。Figure 2 is a schematic flowchart of an access request processing method provided by an embodiment of the present application. As shown in Figure 2, the method may include the following steps S210-S230.
S210:根据接收到的访问请求申请转发令牌。S210: Apply for a forwarding token according to the received access request.
在执行该步骤之前,需要预先设置令牌池,该令牌池具有预设数量的转发令牌,该预设数量基于后台系统性能和当前网关性能确定。这里的预设数量的转发令牌,即是指通过网关同时可以转发的访问请求。Before performing this step, you need to pre-set a token pool with a preset number of forwarding tokens, which is determined based on background system performance and current gateway performance. The preset number of forwarding tokens here refers to the access requests that can be forwarded through the gateway at the same time.
S220:响应于令牌池中的转发令牌数量非零,将携带有转发令牌信息的访问请求转发至后台系统。S220: In response to the number of forwarding tokens in the token pool being non-zero, forward the access request carrying the forwarding token information to the backend system.
也就是说,当令牌池中存在转发令牌时,表示此时接收到的访问请求可以转发,随后将携带有转发令牌信息的访问请求转发至后台系统,之后,将令牌池中的转发令牌数量减少一。直到令牌池中的转发令牌数量为零,表示此时接收到的访问请求需要等待,暂时不能马上转发,如此,实现了网关的限流作用。That is to say, when there is a forwarding token in the token pool, it means that the access request received at this time can be forwarded, and then the access request carrying the forwarding token information will be forwarded to the backend system, and then the access request in the token pool will be forwarded. The number of forwarding tokens is reduced by one. Until the number of forwarding tokens in the token pool reaches zero, it means that the access request received at this time needs to wait and cannot be forwarded immediately. In this way, the current limiting function of the gateway is achieved.
由于令牌池中的转发令牌数量是根据后台系统性能和当前网关性能设置的,因而访问请求不会对后台系统产生过大的压力,从而可以避免后台系统的宕机,同时也可以提高整个系统的资源利用率。Since the number of forwarding tokens in the token pool is set based on the backend system performance and the current gateway performance, access requests will not put excessive pressure on the backend system, thereby avoiding backend system downtime and improving the overall System resource utilization.
在一个实施例中,当网关集群中包括多个网关时,可以根据后台系统性能和各网关性能为各网关分别设置具有不同预设数量的转发令牌的令牌池。也就是说,可以为网关集群中的不同网关分别设置令牌池,每个令牌池的转发令牌数量可以不同,具体地每个令牌池的转发令牌数量可以依据后台系统性能和各自网关性能来确定。In one embodiment, when the gateway cluster includes multiple gateways, a token pool with a different preset number of forwarding tokens can be set for each gateway according to the background system performance and the performance of each gateway. That is to say, token pools can be set up for different gateways in the gateway cluster. The number of forwarding tokens in each token pool can be different. Specifically, the number of forwarding tokens in each token pool can be based on the background system performance and respective Determine gateway performance.
在一个实施例中,当令牌池中的转发令牌数量为零时,可以将访问请求发送至等待队列进行等待。同时可以触发通知流程,该通知流程用于当令牌池中的转发令牌数量非零时,通知等待队列中的访问请求申请转发令牌。In one embodiment, when the number of forwarding tokens in the token pool is zero, the access request may be sent to the waiting queue to wait. At the same time, the notification process can be triggered. This notification process is used to notify access requests in the waiting queue to apply for forwarding tokens when the number of forwarding tokens in the token pool is non-zero.
S230:根据上述携带有转发令牌信息的访问请求和接收到的携带有转发令牌信息的响应信息,更新令牌池的转发令牌数量。 S230: Update the number of forwarding tokens in the token pool according to the above-mentioned access request carrying forwarding token information and the received response information carrying forwarding token information.
具体而言,根据上述携带有转发令牌信息的访问请求,将令牌池中的转发令牌数量减少一;之后,根据接收到的携带有上述转发令牌信息的响应信息,将令牌池中的转发令牌数量增加一。Specifically, according to the above-mentioned access request carrying the forwarding token information, the number of forwarding tokens in the token pool is reduced by one; then, according to the received response information carrying the above-mentioned forwarding token information, the number of forwarding tokens in the token pool is reduced by one. The number of forwarding tokens in is increased by one.
也就是说,当转发一个访问请求时,令牌池中的转发令牌数量会减少一个,当该访问请求的响应请求返回时,表示该访问请求已经访问完成,此时,令牌池中的转发令牌数量会增加一。如此,实现了对网关转发访问请求的限流,避免了后台系统的宕机。That is to say, when an access request is forwarded, the number of forwarded tokens in the token pool will be reduced by one. When the response request for the access request is returned, it means that the access request has been completed. At this time, the number of forwarded tokens in the token pool will be reduced by one. The number of forwarding tokens is increased by one. In this way, the current limit on the access requests forwarded by the gateway is realized, and the downtime of the backend system is avoided.
本申请实施例通过根据后台系统性能和当前网关性能设置具有预设数量的转发令牌,可以根据转发令牌的数量确定是否转发访问请求,由于转发令牌数量是基于后台系统性能和当前网关性能设置,因而可以保护后台系统不会受到大流量冲击,避免了后台系统的宕机。In the embodiment of this application, by setting a preset number of forwarding tokens according to the background system performance and the current gateway performance, it is possible to determine whether to forward the access request based on the number of forwarding tokens, because the number of forwarding tokens is based on the background system performance and the current gateway performance. settings, thus protecting the backend system from being impacted by heavy traffic and avoiding downtime of the backend system.
为了更好地理解本申请,以下结合图3-图5来详细描述本申请实施例中的访问请求处理流程。In order to better understand this application, the access request processing flow in the embodiment of this application is described in detail below in conjunction with Figures 3-5.
图3是根据本申请实施例的访问请求处理方法的限流流程示意图,如图3所示,在限流流程中,新增一个令牌池,在限流配置时,会初始化配置的并发限流数量,用于设置转发令牌(可以简称为令牌)的数量。例如,配置并发限流数量为10,则在令牌池中初始化10个令牌。当一个请求需要转发时,需要向令牌池申请一个令牌,当令牌池中有令牌时,该请求可以携带一个令牌(即,携带该令牌的信息)转发至后台系统,访问后端,此时令牌池中会减少1个令牌。Figure 3 is a schematic diagram of the current limiting process of the access request processing method according to the embodiment of the present application. As shown in Figure 3, in the current limiting process, a token pool is added. During the current limiting configuration, the configured concurrency limit will be initialized. Number of flows, used to set the number of forwarding tokens (can be referred to as tokens for short). For example, if the number of concurrent current limits is configured to 10, 10 tokens will be initialized in the token pool. When a request needs to be forwarded, it needs to apply for a token from the token pool. When there is a token in the token pool, the request can carry a token (that is, carry the token information) and forward it to the backend system. Access Backend, the token pool will be reduced by 1 token at this time.
图4是根据本申请实施例的访问请求处理方法的请求响应流程示意图,如图4所示,当访问请求的响应返回时,会归还携带的令牌,此时令牌池中令牌数量增加1,以提供给后续的请求申请。Figure 4 is a schematic diagram of the request response flow of the access request processing method according to the embodiment of the present application. As shown in Figure 4, when the response to the access request is returned, the tokens carried will be returned. At this time, the number of tokens in the token pool increases. 1 to provide for subsequent request applications.
图5是根据本申请实施例的访问请求处理方法的限流流程另一种示意图,如图5所示,当令牌池中的令牌数量为零时,此时请求申请令牌失败,对该请求进行限流处理,将该请求发送至等待队列进行等待,同时触发通知流程。在令牌池中有令牌时,通知流程会通知等待队列中的请求继续申请令牌,以便于访问后台系统。Figure 5 is another schematic diagram of the current limiting process of the access request processing method according to the embodiment of the present application. As shown in Figure 5, when the number of tokens in the token pool is zero, the request to apply for a token fails at this time. This request is subject to current limiting processing, and the request is sent to the waiting queue to wait, and the notification process is triggered at the same time. When there are tokens in the token pool, the notification process will notify requests in the waiting queue to continue applying for tokens to facilitate access to the backend system.
在本申请实施例中,上述令牌池具有如下功能:In the embodiment of this application, the above-mentioned token pool has the following functions:
(1)令牌池中剩余的令牌数量表示当前网关最大的访问能力。(1) The number of tokens remaining in the token pool represents the maximum access capability of the current gateway.
(2)令牌池中的令牌数量决定了访问请求的流程,当访问请求获取到令 牌则可以进入网关的转发流程,而未获取令牌则进入网关的等待队列流程。(2) The number of tokens in the token pool determines the process of the access request. When the access request obtains the token If the token is obtained, it can enter the forwarding process of the gateway, and if the token is not obtained, it can enter the waiting queue process of the gateway.
(3)当令牌池中令牌数量为零时,会激活通知事件,当令牌池中令牌又存在时,令牌池会触发通知等待队列中的请求再次申请令牌,进行后续访问流程。激活或者触发通知流程,相比于相关技术中的访问等待机制,本申请实施例的主动通知,可以提高资源的利用率。(3) When the number of tokens in the token pool is zero, the notification event will be activated. When the token exists again in the token pool, the token pool will trigger the request in the notification waiting queue to apply for the token again for subsequent access. process. Activating or triggering the notification process. Compared with the access waiting mechanism in related technologies, the active notification in the embodiment of the present application can improve resource utilization.
以下以网关为API网关为例,结合图6所示的流程来详细描述本申请实施例的访问请求处理方法。Taking the gateway as an API gateway as an example, the following describes the access request processing method in the embodiment of the present application in detail in conjunction with the process shown in Figure 6 .
如图6所示,访问请求处理方法具体包括如下步骤S601-S606:As shown in Figure 6, the access request processing method specifically includes the following steps S601-S606:
S601:接收请求,API网关进行请求转发处理。S601: Receive the request, and the API gateway forwards the request.
S602:请求进入限流流程,向令牌池申请令牌。S602: Request to enter the current limiting process and apply for a token from the token pool.
S603:判断令牌池中是否有令牌,如果有,则进行S604,否则,进行S605。S603: Determine whether there is a token in the token pool. If so, proceed to S604; otherwise, proceed to S605.
S604:将该请求携带申请到的令牌转发到后台系统。S604: Forward the request carrying the applied token to the backend system.
S605:API网关处于限流中,将请求发送至等待队列,等待令牌池中有请求完成后归还的令牌,再申请令牌。S605: The API gateway is in current limit, and sends the request to the waiting queue, waiting for the token pool to be returned after the request is completed, and then applies for a token.
S606:在S604转发到后台系统的请求返回响应时,将携带的令牌归还令牌池,此时,表示API网关可以再转发一个请求。S606: When the request forwarded to the background system in S604 returns a response, the token carried is returned to the token pool. At this time, it means that the API gateway can forward another request.
本申请实施例基于令牌池功能,减少了API网关在相关技术中的并发限流时占用资源的情况。采用回收令牌方式,增加了限流的控制精度,减少了相关技术中的需要接收到响应后才能释放一个并发数流程的时间,提高了API网关的利用率。同时,通过回收令牌方式,能够主动通知等待队列的请求再次进入转发流程,节约了访问的时间,增加了后台系统的利用率,改善了被动激活后全部不限流转发或者进入再次转发限流的流程,增加了整个系统的稳定性。The embodiment of this application is based on the token pool function, which reduces the resources occupied by the API gateway during concurrent current limiting in related technologies. The recycling token method increases the control accuracy of current limiting, reduces the time required in related technologies to release a concurrent process after receiving a response, and improves the utilization of the API gateway. At the same time, by recycling tokens, requests waiting in the queue can be actively notified to enter the forwarding process again, which saves access time, increases the utilization of the background system, and improves the ability to forward all unrestricted forwarding or enter the forwarding limit again after passive activation. process, increasing the stability of the entire system.
基于相似的发明构思,本申请实施例还提供了一种访问请求处理系统,如图7所示,该系统包括:访问请求处理装置1、后台系统2和网关集群3,其中,网关集群3包括至少一个网关,访问请求处理装置1位于网关集群3端。Based on a similar inventive concept, embodiments of the present application also provide an access request processing system, as shown in Figure 7. The system includes: an access request processing device 1, a backend system 2 and a gateway cluster 3, where the gateway cluster 3 includes At least one gateway, the access request processing device 1 is located at the gateway cluster 3 end.
图8是根据本申请实施例的访问请求处理装置1的结构框图,如图8所示,该访问请求处理装置1包括:令牌申请单元11、转发单元12和令牌更新单元13,其中: Figure 8 is a structural block diagram of an access request processing device 1 according to an embodiment of the present application. As shown in Figure 8, the access request processing device 1 includes: a token application unit 11, a forwarding unit 12 and a token update unit 13, where:
令牌申请单元11,用于根据接收到的访问请求申请转发令牌。The token application unit 11 is used to apply for a forwarding token according to the received access request.
转发单元12,用于响应于令牌池中的转发令牌数量非零,将携带有转发令牌信息的访问请求转发至后台系统,其中,所述令牌池具有预设数量的转发令牌,所述预设数量基于后台系统性能和当前网关性能确定。The forwarding unit 12 is configured to forward the access request carrying the forwarding token information to the backend system in response to the non-zero number of forwarding tokens in the token pool, where the token pool has a preset number of forwarding tokens. , the preset number is determined based on the background system performance and the current gateway performance.
令牌更新单元13,用于根据所述携带有转发令牌信息的访问请求和接收到的携带有所述转发令牌信息的响应信息,更新所述令牌池的转发令牌数量。The token updating unit 13 is configured to update the number of forwarding tokens in the token pool according to the access request carrying the forwarding token information and the received response information carrying the forwarding token information.
具体地,该令牌更新单元13根据所述携带有转发令牌信息的访问请求,将所述令牌池中的转发令牌数量减少一,并根据接收到的携带有所述转发令牌信息的响应信息,将所述令牌池中的转发令牌数量增加一。Specifically, the token update unit 13 reduces the number of forwarding tokens in the token pool by one according to the access request carrying the forwarding token information, and reduces the number of forwarding tokens in the token pool by one according to the received access request carrying the forwarding token information. response information, increase the number of forwarding tokens in the token pool by one.
本申请实施例通过根据后台系统性能和当前网关性能设置具有预设数量的转发令牌,转发单元12可以根据转发令牌的数量确定是否转发访问请求,由于转发令牌数量是基于后台系统性能和当前网关性能设置,因而可以保护后台系统不会受到大流量冲击,避免了后台系统的宕机。In the embodiment of the present application, by setting a preset number of forwarding tokens according to the background system performance and the current gateway performance, the forwarding unit 12 can determine whether to forward the access request according to the number of forwarding tokens, because the number of forwarding tokens is based on the background system performance and the current gateway performance. The current gateway performance settings can protect the backend system from being impacted by heavy traffic and avoid downtime of the backend system.
在一个实施例中,上述访问请求处理装置1还包括:请求等待单元,用于响应于所述令牌池中的转发令牌数量为零,将所述访问请求发送至等待队列。In one embodiment, the above-mentioned access request processing device 1 further includes: a request waiting unit, configured to send the access request to the waiting queue in response to the number of forwarding tokens in the token pool being zero.
在一个实施例中,上述访问请求处理装置1还包括:通知流程触发单元,用于触发通知流程,所述通知流程用于当所述令牌池中的转发令牌数量非零时,通知所述等待队列中的访问请求申请所述转发令牌。In one embodiment, the above-mentioned access request processing device 1 further includes: a notification process triggering unit, configured to trigger a notification process. The notification process is used to notify all forwarding tokens when the number of forwarding tokens in the token pool is non-zero. The access request in the waiting queue applies for the forwarding token.
在具体实施时,上述访问请求处理装置1还包括:令牌池设置单元,用于响应于网关集群中包括多个网关,根据所述后台系统性能和各网关性能为各网关分别设置具有不同预设数量的转发令牌的令牌池。In specific implementation, the above-mentioned access request processing device 1 also includes: a token pool setting unit, configured to respond to the gateway cluster including multiple gateways, and set different presets for each gateway according to the performance of the background system and the performance of each gateway. Let the number of forwarding tokens in the token pool.
本申请实施例中的访问请求处理装置可以是装置,也可以是系统中的部件、集成电路、或芯片,本申请实施例不作具体限定。The access request processing device in the embodiment of the present application may be a device, or may be a component, integrated circuit, or chip in the system, which is not specifically limited in the embodiment of the present application.
本申请实施例提供的访问请求处理装置能够实现图2-图6的方法实施例中的各个过程,并达到相同的技术效果,为避免重复,这里不再赘述。The access request processing device provided by the embodiment of the present application can implement each process in the method embodiments of Figures 2-6 and achieve the same technical effect. To avoid duplication, the details will not be described here.
为了更好地理解本申请,以下结合图9-图10来详细描述本申请实施例。In order to better understand the present application, the embodiments of the present application will be described in detail below with reference to Figures 9-10.
图9是相关技术中的API网关限流系统的结构示例图,如图9所示,在该系统中,通过限流模块和转发模型实现对访问请求的转发。后端API为内部GUI(Graphical User Interface,图形用户界面)渠道(内部管理使用)和WEB渠道(外部使用者使用)提供后台服务,其中,WEB界面的流量在某 些时候远远大于GUI的流量,经常导致GUI访问API无法获取后台系统服务响应从而导致无法进入。在相关技术中,引入了API网关速率限流模块(即,图中的限流模块),但效果不佳,原因在于无法估算速率限流的具体配置,设置过大,无法达到GUI渠道可以不被WEB渠道访问影响的目的,同时也无法达到保护后端系统服务的目的,可能造成后台系统服务的访问压力较大,有宕机的可能;设置过小,是实现了GUI渠道访问不被WEB渠道访问影响的目的,但是后台系统服务时常都是空闲状态,造成了资源浪费。Figure 9 is a structural example diagram of an API gateway current limiting system in related technologies. As shown in Figure 9, in this system, access requests are forwarded through a current limiting module and a forwarding model. The back-end API provides back-end services for the internal GUI (Graphical User Interface, graphical user interface) channel (used by internal management) and WEB channel (used by external users). Among them, the traffic of the WEB interface is in a certain Sometimes the traffic is much larger than that of the GUI, often causing the GUI access API to be unable to obtain the background system service response, resulting in inability to enter. In related technologies, the API gateway rate limiting module (i.e., the current limiting module in the figure) was introduced, but the effect was not good because the specific configuration of the rate limiting could not be estimated, and the setting was too large to reach the GUI channel. The purpose of being affected by WEB channel access is also unable to achieve the purpose of protecting back-end system services, which may cause greater access pressure on back-end system services and the possibility of downtime; if the setting is too small, the GUI channel access will not be affected by WEB Channel access affects the purpose, but the background system services are often idle, resulting in a waste of resources.
图10是根据本申请实施例的访问请求处理系统的结构示例图,在该系统中,通过令牌池实现了对访问请求的转发和限流。在该示例中,后台系统性能为能够同时处理64个访问请求,为了解决内部GUI渠道不受WEB渠道影响,可以设置并发访问请求数量为60,配置API网关后,令牌池中就会初始化60个令牌,表示通过API网关的WEB渠道访问能同时处理60个请求,为GUI渠道留4个请求,保证了整个系统对不同渠道提供的访问都能够正常的运行,同时也保证了访问请求对后台系统不会产生过大的压力,避免了系统宕机。Figure 10 is a structural example diagram of an access request processing system according to an embodiment of the present application. In this system, forwarding and current limiting of access requests are implemented through a token pool. In this example, the background system performance is able to handle 64 access requests at the same time. In order to prevent the internal GUI channel from being affected by the WEB channel, you can set the number of concurrent access requests to 60. After configuring the API gateway, 60 will be initialized in the token pool. A token means that the WEB channel access through the API gateway can handle 60 requests at the same time, leaving 4 requests for the GUI channel. This ensures that the entire system can operate normally for access provided by different channels, and also ensures that the access requests are correct. The background system will not generate excessive pressure and avoid system downtime.
当后台系统同时处理的请求超过60时,令牌池中令牌数量为0,此时,新的请求就会进入等待队列。当有请求处理完成后返回时,在通过API网关返回响应时,会将令牌归还给令牌池,此时令牌池中有了令牌,就会触发通知等待队列中的请求申请令牌,从而转发至后台系统。When the background system processes more than 60 requests at the same time, the number of tokens in the token pool is 0. At this time, new requests will enter the waiting queue. When a request is processed and returned, the token will be returned to the token pool when the response is returned through the API gateway. At this time, if there is a token in the token pool, a notification will be triggered for the request in the waiting queue to apply for a token. , thereby forwarding it to the backend system.
在该示例中,还可以对不同的API网关设置不同的限流配置,每个API网关可以对应一个令牌池和等待队列,具体地各令牌池中令牌的数量可以依据实际的后台系统和网关的性能来确定,本申请对此不作限制。In this example, you can also set different current limiting configurations for different API gateways. Each API gateway can correspond to a token pool and waiting queue. Specifically, the number of tokens in each token pool can be based on the actual backend system. and gateway performance, this application does not limit this.
通过本示例中的限流方式,可以改善API网关等待队列对API网关的资源压力,通过本示例中的通知机制,可以提高访问效率和后台系统的资源利用率。Through the current limiting method in this example, the resource pressure of the API gateway waiting queue on the API gateway can be improved. Through the notification mechanism in this example, the access efficiency and resource utilization of the background system can be improved.
在该示例中,通过基于后台系统性能设置并发限流数量,相比于图9所示的限流方式,限流准确度较高。同时,在该示例中,通过令牌的发放和回收,减小了后台系统等待压力,减少了后台系统宕机的可能。In this example, by setting the number of concurrent current limits based on background system performance, the current limit accuracy is higher compared to the current limit method shown in Figure 9. At the same time, in this example, through the issuance and recycling of tokens, the waiting pressure on the backend system is reduced, and the possibility of downtime of the backend system is reduced.
通过增加了令牌池的设计,避免了网关通过工作进程来确定并发连接数,节约了API网关占用的资源,同时改善了被限流的访问处理,改变了相关技术中的openresty网关(一种API网关)在一定的休眠时间后,将所有被限流 的访问全部转发到目标后台服务中,导致了后台服务运行压力增大甚至宕机的风险。同时在API响应流程中,通过转发模块将令牌归还给令牌池,令牌池通知访问等待队列进行访问,改善了相关技术中的必须要接收到API响应后并发数才释放的情况,使得并发数提前释放,增加了API网关的访问转发效率。By adding the design of the token pool, the gateway is prevented from determining the number of concurrent connections through the working process, saving the resources occupied by the API gateway, while improving the current-limited access processing, and changing the openresty gateway (a kind of related technology). API gateway) will limit all traffic after a certain sleep time. All accesses are forwarded to the target background service, leading to the risk of increased operating pressure or even downtime of the background service. At the same time, in the API response process, the token is returned to the token pool through the forwarding module, and the token pool notifies the access waiting queue for access, which improves the situation in related technologies that the concurrent number must be released after receiving the API response, making The concurrent number is released in advance, which increases the access forwarding efficiency of the API gateway.
对于相关技术中的openresty网关的限流方式,例如,openresty网关可以同时拉起10个工作进程,当超过10个工作进程并发后,API访问会休眠5秒,5秒后将访问请求全部转发到后台系统中去,这样可能导致后台系统服务处理能力不足,后台请求队列长,致使后台服务不稳定。而在本申请实施例中,增加了令牌池的设计,避免了网关通过工作进程来确定并发连接数量,节约了API网关占用资源,同时也改善了被限流的访问处理。相比于相关技术中的openresty网关在一定的休眠时间后,将所有限流的访问全部转发到目标后台系统中,本申请实施例通过令牌的发放和回收、以及等待队列,使得等待的请求可以及时释放,提高了网关的访问请求转发效率。Regarding the current limiting method of openresty gateway in related technologies, for example, openresty gateway can launch 10 working processes at the same time. When more than 10 working processes are concurrent, API access will sleep for 5 seconds, and after 5 seconds, all access requests will be forwarded to In the background system, this may cause the background system service processing capacity to be insufficient, the background request queue to be long, and the background service to be unstable. In the embodiment of this application, the design of the token pool is added, which prevents the gateway from determining the number of concurrent connections through the working process, saves the resources occupied by the API gateway, and also improves the processing of current-limited access. Compared with the openresty gateway in related technologies that forwards all flow-limited accesses to the target backend system after a certain sleep time, the embodiment of this application makes the waiting requests through the issuance and recycling of tokens and the waiting queue. It can be released in time, which improves the gateway's access request forwarding efficiency.
可选的,如图11所示,本申请实施例还提供一种电子设备1100,包括处理器1110和存储器1120,在存储器1120上存储有可在所述处理器1110上运行的程序或指令,例如,该电子设备1100为终端时,该程序或指令被处理器1110执行时实现上述访问请求处理方法实施例的各个过程,且能达到相同的技术效果。为避免重复,这里不再赘述。Optionally, as shown in Figure 11, this embodiment of the present application also provides an electronic device 1100, including a processor 1110 and a memory 1120. The memory 1120 stores programs or instructions that can be run on the processor 1110. For example, when the electronic device 1100 is a terminal, when the program or instruction is executed by the processor 1110, each process of the above access request processing method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, they will not be repeated here.
本申请实施例还提供一种可读存储介质,所述可读存储介质上存储有程序或指令,该程序或指令被处理器执行时实现上述访问请求处理方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。Embodiments of the present application also provide a readable storage medium. Programs or instructions are stored on the readable storage medium. When the program or instructions are executed by a processor, each process of the above access request processing method embodiment is implemented, and can achieve The same technical effects are not repeated here to avoid repetition.
其中,所述处理器为上述实施例中所述的电子设备中的处理器。所述可读存储介质,包括计算机可读存储介质,如计算机只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等。Wherein, the processor is the processor in the electronic device described in the above embodiment. The readable storage media includes computer-readable storage media, such as computer read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic disks or optical disks, etc.
本申请实施例另提供了一种芯片,所述芯片包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现上述访问请求处理方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。An embodiment of the present application further provides a chip. The chip includes a processor and a communication interface. The communication interface is coupled to the processor. The processor is used to run programs or instructions to implement the above embodiment of the access request processing method. Each process can achieve the same technical effect. To avoid repetition, we will not go into details here.
进一步地,本申请实施例还提供了一种计算机程序产品,该计算机程序 产品包括处理器、存储器及存储在所述存储器上并可在所述处理器上运行的程序或指令,所述程序或指令被所述处理器执行时实现上述访问请求处理方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。Furthermore, embodiments of the present application also provide a computer program product. The computer program The product includes a processor, a memory, and a program or instruction stored on the memory and executable on the processor. When the program or instruction is executed by the processor, each process of the above access request processing method embodiment is implemented. , and can achieve the same technical effect, so to avoid repetition, they will not be described again here.
综上所述,本申请实施例提供的访问请求处理方案,综合考虑后台系统和网关的性能设置限流配置,可以分别对不同网关设置限流配置,提高了后台系统的利用率,也提高了网关的访问请求的转发率。在云计算和算力网络的场景下,该方案可以增加访问的友好性,当访问超过限制时,不会直接拒绝,或者等待一定时间后直接转发到后端服务而是进入等待队列,当API网关判定能够继续访问时,从等待队列中获取请求,继续访问流程,并且API网关也能反馈数据作为系统优化的信息,增加了系统的健壮性和自优化,避免了系统的宕机。To sum up, the access request processing solution provided by the embodiment of this application comprehensively considers the performance of the backend system and the gateway to set the current limiting configuration. The current limiting configuration can be set for different gateways respectively, which improves the utilization of the backend system and also improves the efficiency of the backend system. The gateway's forwarding rate of access requests. In the scenario of cloud computing and computing power network, this solution can increase the friendliness of access. When the access exceeds the limit, it will not be directly rejected, or it will be directly forwarded to the back-end service after waiting for a certain period of time, but will enter the waiting queue. When the API When the gateway determines that access can continue, it obtains the request from the waiting queue and continues the access process, and the API gateway can also feed back data as information for system optimization, which increases the robustness and self-optimization of the system and avoids system downtime.
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。此外,需要指出的是,本申请实施方式中的方法和装置的范围不限,按示出或讨论的顺序来执行功能,还可包括根据所涉及的功能按基本同时的方式或按相反的顺序来执行功能,例如,可以按不同于所描述的次序来执行所描述的方法,并且还可以添加、省去、或组合各种步骤。另外,参照某些示例所描述的特征可在其他示例中被组合。It should be noted that, in this document, the terms "comprising", "comprises" or any other variations thereof are intended to cover a non-exclusive inclusion, such that a process, method, article or device that includes a series of elements not only includes those elements, It also includes other elements not expressly listed or inherent in the process, method, article or apparatus. Without further limitation, an element defined by the statement "comprises a..." does not exclude the presence of additional identical elements in a process, method, article or apparatus that includes that element. In addition, it should be pointed out that the scope of the methods and devices in the embodiments of the present application is not limited. Functions are performed in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in a reverse order according to the functions involved. To perform the functions, for example, the methods described may be performed in an order different from that described, and various steps may be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分可以以计算机软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端(可以是手机,计算机,服务器,或者网络设备等)执行本申请各个实施例所述的方法。Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus the necessary general hardware platform. Of course, it can also be implemented by hardware, but in many cases the former is better. implementation. Based on this understanding, the technical solution of the present application can be embodied in the form of a computer software product that is essentially or contributes to the existing technology. The computer software product is stored in a storage medium (such as ROM/RAM, disk , optical disk), including several instructions to cause a terminal (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods described in various embodiments of this application.
上面结合附图对本申请的实施例进行了描述,但是本申请并不局限于上 述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的,本领域的普通技术人员在本申请的启示下,在不脱离本申请宗旨和权利要求所保护的范围情况下,还可做出很多形式,均属于本申请的保护之内。 The embodiments of the present application have been described above in conjunction with the accompanying drawings, but the present application is not limited to the above. The above-described specific implementations are only illustrative and not restrictive. Those of ordinary skill in the art, inspired by this application, can make any modifications without departing from the purpose of this application and the scope protected by the claims. It can also be made in many forms, all of which fall within the protection of this application.

Claims (13)

  1. 一种访问请求处理方法,包括:An access request processing method, including:
    根据接收到的访问请求申请转发令牌;Apply for forwarding tokens based on received access requests;
    响应于令牌池中的转发令牌数量非零,将携带有转发令牌信息的访问请求转发至后台系统,其中,所述令牌池具有预设数量的转发令牌,所述预设数量基于后台系统性能和当前网关性能确定;In response to the non-zero number of forwarding tokens in the token pool, the access request carrying the forwarding token information is forwarded to the backend system, wherein the token pool has a preset number of forwarding tokens, and the preset number Determined based on background system performance and current gateway performance;
    根据所述携带有转发令牌信息的访问请求和接收到的携带有所述转发令牌信息的响应信息,更新所述令牌池的转发令牌数量。The number of forwarding tokens in the token pool is updated according to the access request carrying the forwarding token information and the received response information carrying the forwarding token information.
  2. 根据权利要求1所述的方法,其中,所述方法还包括:The method of claim 1, further comprising:
    响应于所述令牌池中的转发令牌数量为零,将所述访问请求发送至等待队列。In response to the number of forwarding tokens in the token pool being zero, the access request is sent to a waiting queue.
  3. 根据权利要求2所述的方法,其中,响应于所述令牌池中的转发令牌数量为零,所述方法还包括:The method of claim 2, wherein in response to the number of forwarding tokens in the token pool being zero, the method further includes:
    触发通知流程,所述通知流程用于当所述令牌池中的转发令牌数量非零时,通知所述等待队列中的访问请求申请所述转发令牌。A notification process is triggered, and the notification process is used to notify the access request in the waiting queue to apply for the forwarding token when the number of forwarding tokens in the token pool is non-zero.
  4. 根据权利要求1所述的方法,其中,在根据接收到的访问请求申请转发令牌之前,所述方法还包括:The method according to claim 1, wherein before applying for a forwarding token according to the received access request, the method further includes:
    响应于网关集群中包括多个网关,根据所述后台系统性能和各网关性能为各网关分别设置具有不同预设数量的转发令牌的令牌池。In response to the gateway cluster including multiple gateways, a token pool with a different preset number of forwarding tokens is set for each gateway according to the background system performance and the performance of each gateway.
  5. 根据权利要求1所述的方法,其中,根据所述携带有转发令牌信息的访问请求和接收到的携带有所述转发令牌信息的响应信息,更新所述令牌池的转发令牌数量包括:The method according to claim 1, wherein the number of forwarding tokens in the token pool is updated according to the access request carrying the forwarding token information and the received response information carrying the forwarding token information. include:
    根据所述携带有转发令牌信息的访问请求,将所述令牌池中的转发令牌数量减少一;According to the access request carrying forwarding token information, reduce the number of forwarding tokens in the token pool by one;
    根据接收到的携带有所述转发令牌信息的响应信息,将所述令牌池中的转发令牌数量增加一。 According to the received response information carrying the forwarding token information, the number of forwarding tokens in the token pool is increased by one.
  6. 一种访问请求处理装置,包括:An access request processing device, including:
    令牌申请单元,用于根据接收到的访问请求申请转发令牌;A token application unit is used to apply for a forwarding token based on the received access request;
    转发单元,用于响应于令牌池中的转发令牌数量非零,将携带有转发令牌信息的访问请求转发至后台系统,其中,所述令牌池具有预设数量的转发令牌,所述预设数量基于后台系统性能和当前网关性能确定;a forwarding unit, configured to forward the access request carrying the forwarding token information to the backend system in response to the non-zero number of forwarding tokens in the token pool, wherein the token pool has a preset number of forwarding tokens, The preset number is determined based on background system performance and current gateway performance;
    令牌更新单元,用于根据所述携带有转发令牌信息的访问请求和接收到的携带有所述转发令牌信息的响应信息,更新所述令牌池的转发令牌数量。A token updating unit configured to update the number of forwarding tokens in the token pool according to the access request carrying the forwarding token information and the received response information carrying the forwarding token information.
  7. 根据权利要求6所述的装置,其中,所述装置还包括:The device of claim 6, further comprising:
    请求等待单元,用于响应于所述令牌池中的转发令牌数量为零,将所述访问请求发送至等待队列。A request waiting unit, configured to send the access request to the waiting queue in response to the number of forwarding tokens in the token pool being zero.
  8. 根据权利要求7所述的装置,其中,所述装置还包括:The device of claim 7, further comprising:
    通知流程触发单元,用于触发通知流程,所述通知流程用于当所述令牌池中的转发令牌数量非零时,通知所述等待队列中的访问请求申请所述转发令牌。A notification process triggering unit is configured to trigger a notification process. The notification process is used to notify the access request in the waiting queue to apply for the forwarding token when the number of forwarding tokens in the token pool is non-zero.
  9. 根据权利要求6所述的装置,其中,所述装置还包括:The device of claim 6, further comprising:
    令牌池设置单元,用于响应于网关集群中包括多个网关,根据所述后台系统性能和各网关性能为各网关分别设置具有不同预设数量的转发令牌的令牌池。A token pool setting unit is configured to, in response to the gateway cluster including multiple gateways, set a token pool with different preset numbers of forwarding tokens for each gateway according to the performance of the background system and the performance of each gateway.
  10. 根据权利要求6所述的装置,其中,所述令牌更新单元用于:The device according to claim 6, wherein the token update unit is used for:
    根据所述携带有转发令牌信息的访问请求,将所述令牌池中的转发令牌数量减少一;According to the access request carrying forwarding token information, reduce the number of forwarding tokens in the token pool by one;
    根据接收到的携带有所述转发令牌信息的响应信息,将所述令牌池中的转发令牌数量增加一。According to the received response information carrying the forwarding token information, the number of forwarding tokens in the token pool is increased by one.
  11. 一种访问请求处理系统,所述系统包括:如权利要求6至10中任一项所述的访问请求处理装置、后台系统和包括至少一个网关的网关集 群,其中,所述访问请求处理装置位于所述网关集群端。An access request processing system, the system includes: the access request processing device according to any one of claims 6 to 10, a backend system and a gateway set including at least one gateway group, wherein the access request processing device is located at the gateway cluster end.
  12. 一种电子设备,包括处理器和存储器,所述存储器存储可在所述处理器上运行的程序或指令,所述程序或指令被所述处理器执行时实现如权利要求1-5任一项所述的访问请求处理方法的步骤。An electronic device, including a processor and a memory. The memory stores programs or instructions that can be run on the processor. When the program or instructions are executed by the processor, the implementation of any one of claims 1-5 is achieved. The steps of the access request processing method.
  13. 一种可读存储介质,所述可读存储介质上存储程序或指令,所述程序或指令被处理器执行时实现如权利要求1-5任一项所述的访问请求处理方法的步骤。 A readable storage medium on which a program or instructions are stored. When the program or instructions are executed by a processor, the steps of the access request processing method according to any one of claims 1 to 5 are implemented.
PCT/CN2023/115453 2022-09-01 2023-08-29 Access request processing method, apparatus, and system WO2024046303A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202211069611.2A CN117675921A (en) 2022-09-01 2022-09-01 Access request processing method, device and system
CN202211069611.2 2022-09-01

Publications (1)

Publication Number Publication Date
WO2024046303A1 true WO2024046303A1 (en) 2024-03-07

Family

ID=90065045

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2023/115453 WO2024046303A1 (en) 2022-09-01 2023-08-29 Access request processing method, apparatus, and system

Country Status (2)

Country Link
CN (1) CN117675921A (en)
WO (1) WO2024046303A1 (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040215578A1 (en) * 2003-04-09 2004-10-28 Nokia, Inc. Controlling usage of system resources by a network manager
CN110611623A (en) * 2019-08-30 2019-12-24 江苏苏宁物流有限公司 Current limiting method and device
CN113067875A (en) * 2021-03-24 2021-07-02 厦门立林科技有限公司 Access method, device and equipment based on dynamic flow control of micro-service gateway

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040215578A1 (en) * 2003-04-09 2004-10-28 Nokia, Inc. Controlling usage of system resources by a network manager
CN110611623A (en) * 2019-08-30 2019-12-24 江苏苏宁物流有限公司 Current limiting method and device
CN113067875A (en) * 2021-03-24 2021-07-02 厦门立林科技有限公司 Access method, device and equipment based on dynamic flow control of micro-service gateway

Also Published As

Publication number Publication date
CN117675921A (en) 2024-03-08

Similar Documents

Publication Publication Date Title
CN109582472B (en) Micro-service processing method and device
CN111052086B (en) Warm start technology of cloud managed function
US10628273B2 (en) Node system, server apparatus, scaling control method, and program
CN109300217B (en) Queuing and calling method, computer storage medium, queuing and calling server and system
US10117253B2 (en) Mobile terminal and resource management method of mobile terminal
US20180091449A1 (en) Event-driven policy-based distributed container management system
WO2019075848A1 (en) Coordination of terminal slicing function and network slicing function
US20210200607A1 (en) Discovery and Chaining of Virtual Functions
WO2015109955A1 (en) Method and device for processing exceptional event in telecommunication cloud
WO2021109750A1 (en) Node management method, device and apparatus, storage medium, and system
WO2022062918A1 (en) Control method for strategy implementation, strategy implementation system, and computing device
CN114237937A (en) Multithreading data transmission method and device
CN112068847B (en) Computing environment deployment method and device based on kubernets platform
CN112395107A (en) Tax control equipment control method and device, storage medium and electronic equipment
WO2017215408A1 (en) Session switching control method and apparatus and access point device
CN111586140A (en) Data interaction method and server
WO2020173126A1 (en) Method and device for blockchain-based session data processing, equipment, and medium
WO2020252724A1 (en) Log processing method and device, and computer-readable storage medium
WO2020006903A1 (en) Financial data interaction method, apparatus computer device and storage medium
CN114915593A (en) Redis-based flow control method and device, electronic equipment and storage medium
CN112448987A (en) Fusing degradation triggering method and system and storage medium
CN106547566A (en) Communications service process pool management method and system
WO2024046303A1 (en) Access request processing method, apparatus, and system
CN111835797A (en) Data processing method, device and equipment
US11429435B1 (en) Distributed execution budget management system

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 23859333

Country of ref document: EP

Kind code of ref document: A1