CN113761400A - Access request forwarding method, device and equipment - Google Patents
Access request forwarding method, device and equipment Download PDFInfo
- Publication number
- CN113761400A CN113761400A CN202010485002.XA CN202010485002A CN113761400A CN 113761400 A CN113761400 A CN 113761400A CN 202010485002 A CN202010485002 A CN 202010485002A CN 113761400 A CN113761400 A CN 113761400A
- Authority
- CN
- China
- Prior art keywords
- application server
- target
- access request
- uniform resource
- resource locator
- Prior art date
- Legal status (The legal status 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 status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 96
- 238000013507 mapping Methods 0.000 claims abstract description 71
- 238000012545 processing Methods 0.000 claims abstract description 55
- 230000008569 process Effects 0.000 claims description 35
- 238000001914 filtration Methods 0.000 claims description 10
- 230000004044 response Effects 0.000 claims description 4
- 230000006870 function Effects 0.000 description 15
- 238000010586 diagram Methods 0.000 description 12
- 238000004590 computer program Methods 0.000 description 9
- 230000006872 improvement Effects 0.000 description 9
- 238000005516 engineering process Methods 0.000 description 6
- 230000009286 beneficial effect Effects 0.000 description 4
- 238000011161 development Methods 0.000 description 4
- 238000012423 maintenance Methods 0.000 description 4
- 238000004519 manufacturing process Methods 0.000 description 4
- 230000005540 biological transmission Effects 0.000 description 3
- 230000003287 optical effect Effects 0.000 description 3
- 238000004891 communication Methods 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 230000002085 persistent effect Effects 0.000 description 2
- 238000012546 transfer Methods 0.000 description 2
- 230000009466 transformation Effects 0.000 description 2
- 238000012795 verification Methods 0.000 description 2
- XUIMIQQOPSSXEZ-UHFFFAOYSA-N Silicon Chemical compound [Si] XUIMIQQOPSSXEZ-UHFFFAOYSA-N 0.000 description 1
- 239000006227 byproduct Substances 0.000 description 1
- 230000001413 cellular effect Effects 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 230000000750 progressive effect Effects 0.000 description 1
- 229910052710 silicon Inorganic materials 0.000 description 1
- 239000010703 silicon Substances 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/955—Retrieval from the web using information identifiers, e.g. uniform resource locators [URL]
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/955—Retrieval from the web using information identifiers, e.g. uniform resource locators [URL]
- G06F16/9558—Details of hyperlinks; Management of linked annotations
Landscapes
- Engineering & Computer Science (AREA)
- Databases & Information Systems (AREA)
- Theoretical Computer Science (AREA)
- Data Mining & Analysis (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Computer And Data Communications (AREA)
Abstract
Description
技术领域technical field
本申请涉及计算机技术领域,尤其涉及一种访问请求转发方法、装置及设备。The present application relates to the field of computer technologies, and in particular, to a method, apparatus, and device for forwarding an access request.
背景技术Background technique
目前,在计算机技术领域,部署在服务器上的后端应用的数量越来越多。有很多访问请求转发到部署有后端应用的服务器(下文简称“应用服务器”)后,应用服务器还需要对转发至自身的访问请求进行识别,以确定该访问请求是否为自身可以处理的请求。At present, in the field of computer technology, the number of back-end applications deployed on servers is increasing. After many access requests are forwarded to the server where the backend application is deployed (hereinafter referred to as "application server"), the application server also needs to identify the access request forwarded to itself to determine whether the access request is a request that it can process.
当访问请求达到一定数量之后,识别访问请求的过程,对于应用服务器的资源的占用量就会较高。尤其是伴随着云原生等功能的兴起,云原生等功能对于应用服务器的处理资源的消耗也很高。When the access request reaches a certain number, the process of identifying the access request will occupy a high amount of resources of the application server. Especially with the rise of functions such as cloud native, functions such as cloud native also consume a lot of processing resources of application servers.
因此,如何降低应用服务器在识别访问请求方面的资源消耗,已成为本领域技术人员亟待解决的技术问题。Therefore, how to reduce the resource consumption of the application server in identifying the access request has become a technical problem to be solved urgently by those skilled in the art.
发明内容SUMMARY OF THE INVENTION
本说明书实施例提供一种访问请求转发方法、装置及设备,以降低应用服务器在识别访问请求方面的资源消耗。The embodiments of this specification provide an access request forwarding method, apparatus, and device, so as to reduce the resource consumption of the application server in identifying the access request.
为解决上述技术问题,本说明书实施例是这样实现的:In order to solve the above-mentioned technical problems, the embodiments of this specification are implemented as follows:
本说明书实施例提供的一种基于SLB服务器的访问请求转发方法,包括:A method for forwarding an access request based on an SLB server provided by an embodiment of this specification includes:
SLB服务器获取包含目标统一资源定位符的访问请求;所述目标统一资源定位符至少包含目标域名和目标路径;The SLB server obtains an access request containing a target uniform resource locator; the target uniform resource locator at least contains a target domain name and a target path;
根据映射关系表,查询所述目标统一资源定位符对应的目标应用服务器;所述映射关系表是基于注册应用服务器的注册信息生成的,所述注册信息包含所述注册应用服务器的可支持统一资源定位符;所述可支持统一资源定位符至少包含域名和路径;According to the mapping relationship table, query the target application server corresponding to the target uniform resource locator; the mapping relationship table is generated based on the registration information of the registered application server, and the registration information includes the supportable uniform resources of the registered application server Locator; the supportable uniform resource locator at least includes a domain name and a path;
将所述访问请求转发至所述目标应用服务器。The access request is forwarded to the target application server.
本说明书实施例提供的一种访问请求的处理方法,包括:A method for processing an access request provided by an embodiment of this specification includes:
应用服务器获取SLB服务器转发的访问请求;所述访问请求是所述SLB服务器基于包含目标统一资源定位符的访问请求,根据映射关系表,查询到所述目标统一资源定位符对应的目标应用服务器为所述应用服务器后,将所述访问请求转发至所述应用服务器的;所述目标统一资源定位符至少包含目标域名和目标路径;The application server obtains the access request forwarded by the SLB server; the access request is that the SLB server based on the access request containing the target uniform resource locator, according to the mapping table, finds that the target application server corresponding to the target uniform resource locator is: After the application server, the access request is forwarded to the application server; the target uniform resource locator at least includes a target domain name and a target path;
所述应用服务器基于所述应用服务器预先存储的过滤规则,判断所述访问请求是否为所述应用服务器支持的访问请求;The application server determines whether the access request is an access request supported by the application server based on the filtering rule pre-stored by the application server;
如果是,处理所述访问请求;if so, process the access request;
否则,拒绝所述访问请求。Otherwise, the access request is denied.
本说明书实施例提供的一种访问请求转发装置,应用于SLB服务器,包括:An access request forwarding device provided by the embodiments of this specification, applied to an SLB server, includes:
获取模块,用于获取包含目标统一资源定位符的访问请求;所述目标统一资源定位符至少包含目标域名和目标路径;an obtaining module for obtaining an access request including a target uniform resource locator; the target uniform resource locator at least includes a target domain name and a target path;
查询模块,用于根据映射关系表,查询所述目标统一资源定位符对应的目标应用服务器;所述映射关系表是基于注册应用服务器的注册信息生成的,所述注册信息包含所述注册应用服务器的可支持统一资源定位符;所述可支持统一资源定位符至少包含域名和路径;a query module, configured to query the target application server corresponding to the target uniform resource locator according to a mapping relationship table; the mapping relationship table is generated based on the registration information of the registration application server, and the registration information includes the registration application server The supportable uniform resource locator; the supportable uniform resource locator at least includes a domain name and a path;
转发模块,用于将所述访问请求转发至所述目标应用服务器。A forwarding module, configured to forward the access request to the target application server.
本说明书实施例提供的一种访问请求的处理装置,应用于应用服务器,包括:An apparatus for processing an access request provided by an embodiment of this specification, applied to an application server, includes:
获取模块,用于获取SLB服务器转发的访问请求;所述访问请求是所述SLB服务器基于包含目标统一资源定位符的访问请求,根据映射关系表,查询到所述目标统一资源定位符对应的目标应用服务器为所述应用服务器后,将所述访问请求转发至所述应用服务器的;所述目标统一资源定位符至少包含目标域名和目标路径;The acquiring module is used to acquire the access request forwarded by the SLB server; the access request is that the SLB server queries the target corresponding to the target uniform resource locator based on the access request containing the target uniform resource locator according to the mapping table After the application server is the application server, it forwards the access request to the application server; the target uniform resource locator at least includes a target domain name and a target path;
判断模块,用于基于所述应用服务器预先存储的过滤规则,判断所述访问请求是否为所述应用服务器支持的访问请求,得到判断结果;a judgment module, configured to judge whether the access request is an access request supported by the application server based on the filtering rules pre-stored by the application server, and obtain a judgment result;
访问请求处理模块,用于当所述判断结果表示所述访问请求是所述应用服务器支持的访问请求时,处理所述访问请求;an access request processing module, configured to process the access request when the judgment result indicates that the access request is an access request supported by the application server;
拒绝访问模块,用于当所述判断结果表示所述访问请求不是所述应用服务器支持的访问请求时,拒绝所述访问请求。An access rejection module, configured to reject the access request when the judgment result indicates that the access request is not an access request supported by the application server.
本说明书实施例提供的一种访问请求转发设备,包括:An access request forwarding device provided by an embodiment of this specification includes:
至少一个处理器;以及,at least one processor; and,
与所述至少一个处理器通信连接的存储器;其中,a memory communicatively coupled to the at least one processor; wherein,
所述存储器存储有可被所述至少一个处理器执行的指令,所述指令被所述至少一个处理器执行,以使所述至少一个处理器能够:The memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to:
获取包含目标统一资源定位符的访问请求;所述目标统一资源定位符至少包含目标域名和目标路径;Obtain an access request containing a target uniform resource locator; the target uniform resource locator at least contains a target domain name and a target path;
根据映射关系表,查询所述目标统一资源定位符对应的目标应用服务器;所述映射关系表是基于注册应用服务器的注册信息生成的,所述注册信息包含所述注册应用服务器的可支持统一资源定位符;所述可支持统一资源定位符至少包含域名和路径;According to the mapping relationship table, query the target application server corresponding to the target uniform resource locator; the mapping relationship table is generated based on the registration information of the registered application server, and the registration information includes the supportable uniform resources of the registered application server Locator; the supportable uniform resource locator at least includes a domain name and a path;
将所述访问请求转发至所述目标应用服务器。The access request is forwarded to the target application server.
本说明书实施例提供的一种访问请求的处理设备,包括:An access request processing device provided by an embodiment of this specification includes:
至少一个处理器;以及,at least one processor; and,
与所述至少一个处理器通信连接的存储器;其中,a memory communicatively coupled to the at least one processor; wherein,
所述存储器存储有可被所述至少一个处理器执行的指令,所述指令被所述至少一个处理器执行,以使所述至少一个处理器能够:The memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to:
获取SLB服务器转发的访问请求;所述访问请求是所述SLB服务器基于包含目标统一资源定位符的访问请求,根据映射关系表,查询到所述目标统一资源定位符对应的目标应用服务器为所述设备后,将所述访问请求转发至所述设备的;所述目标统一资源定位符至少包含目标域名和目标路径;Obtain the access request forwarded by the SLB server; the access request is that the SLB server based on the access request containing the target uniform resource locator, according to the mapping relationship table, finds that the target application server corresponding to the target uniform resource locator is the After the device is installed, the access request is forwarded to the device; the target uniform resource locator at least includes the target domain name and the target path;
基于所述设备预先存储的过滤规则,判断所述访问请求是否为所述设备支持的访问请求;Judging whether the access request is an access request supported by the device based on the filtering rules pre-stored by the device;
如果是,处理所述访问请求;if so, process the access request;
否则,拒绝所述访问请求。Otherwise, the access request is denied.
本说明书中至少一个实施例能够实现以下有益效果:At least one embodiment in this specification can achieve the following beneficial effects:
通过令SLB服务器根据记录有注册应用服务器的可支持统一资源定位符与该注册应用服务器的标识之间的映射关系的映射关系表,将获取到的包含目标统一资源定位符的访问请求转发至支持处理该访问请求的目标应用服务器处进行处理,从而无需目标应用服务器去识别自身是否支持对该访问请求的处理,以降低应用服务器在识别访问请求方面的资源消耗。By making the SLB server forward the obtained access request containing the target uniform resource locator to the support server according to the mapping relationship table that records the mapping relationship between the supportable uniform resource locator of the registered application server and the identifier of the registered application server The processing is performed at the target application server that processes the access request, so that the target application server does not need to identify whether it supports the processing of the access request, so as to reduce the resource consumption of the application server in identifying the access request.
在该方案中,访问请求中的目标统一资源定位符可以至少包含目标域名和目标路径,映射关系表中的注册应用服务器的可支持统一资源定位符也可以至少包含域名和路径,从而令SLB服务器可以对访问请求进行精确转发,以进一步降低应用服务器在识别访问请求方面的资源消耗。In this solution, the target uniform resource locator in the access request can at least contain the target domain name and the target path, and the supportable uniform resource locator of the registered application server in the mapping relationship table can also contain at least the domain name and the path, so that the SLB server can The access request can be accurately forwarded to further reduce the resource consumption of the application server in identifying the access request.
附图说明Description of drawings
为了更清楚地说明本说明书实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请中记载的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present specification or the prior art, the following briefly introduces the accompanying drawings required in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only These are some embodiments described in this application. For those of ordinary skill in the art, other drawings can also be obtained based on these drawings without any creative effort.
图1为本说明书实施例中一种基于SLB服务器的访问请求转发方法的整体方案流程示意图;1 is a schematic flowchart of an overall solution of a method for forwarding an access request based on an SLB server in an embodiment of this specification;
图2为本说明书实施例提供的一种基于SLB服务器的访问请求转发方法的流程示意图;2 is a schematic flowchart of a method for forwarding an access request based on an SLB server provided by an embodiment of the present specification;
图3为本说明书实施例提供的一种访问请求的处理方法的流程示意图;3 is a schematic flowchart of a method for processing an access request provided by an embodiment of the present specification;
图4为本说明书实施例提供的对应于图2的一种访问请求转发装置的结构示意图;FIG. 4 is a schematic structural diagram of an access request forwarding apparatus corresponding to FIG. 2 provided by an embodiment of the present specification;
图5为本说明书实施例提供的对应于图3的一种访问请求的处理装置的结构示意图;5 is a schematic structural diagram of an apparatus for processing an access request corresponding to FIG. 3 according to an embodiment of the present specification;
图6为本说明书实施例提供的对应于图2的一种访问请求转发设备以及对应于图3的一种访问请求的处理设备的结构示意图。FIG. 6 is a schematic structural diagram of an access request forwarding device corresponding to FIG. 2 and an access request processing device corresponding to FIG. 3 according to an embodiment of the present specification.
具体实施方式Detailed ways
为使本说明书一个或多个实施例的目的、技术方案和优点更加清楚,下面将结合本说明书具体实施例及相应的附图对本说明书一个或多个实施例的技术方案进行清楚、完整地描述。显然,所描述的实施例仅是本说明书的一部分实施例,而不是全部的实施例。基于本说明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本说明书一个或多个实施例保护的范围。In order to make the objectives, technical solutions and advantages of one or more embodiments of this specification clearer, the technical solutions of one or more embodiments of this specification will be clearly and completely described below with reference to the specific embodiments of this specification and the corresponding drawings. . Obviously, the described embodiments are only some of the embodiments of the present specification, but not all of the embodiments. All other embodiments obtained by persons of ordinary skill in the art based on the embodiments in the present specification without creative efforts fall within the protection scope of one or more embodiments of the present specification.
以下结合附图,详细说明本说明书各实施例提供的技术方案。The technical solutions provided by the embodiments of the present specification will be described in detail below with reference to the accompanying drawings.
现有技术中,前端应用通常指运行在PC端、移动端等设备处的可以向用户提供应用界面以便于用户操作的应用程序。而后端应用则是指对应于前端应用的运行于应用服务器处的应用程序,后端应用可以与数据库进行交互以处理相应的业务逻辑,辅助实现前端应用的功能。In the prior art, a front-end application generally refers to an application program running on a device such as a PC terminal or a mobile terminal, which can provide an application interface to a user so as to facilitate the user's operation. The back-end application refers to the application program running on the application server corresponding to the front-end application. The back-end application can interact with the database to process the corresponding business logic and assist in realizing the functions of the front-end application.
目前,当部署有后端应用的服务器(下文简称“应用服务器”)接收到前端应用发送的访问请求时,通常需识别该访问请求是否为自身可以处理的请求。当访问请求达到一定数量之后,识别访问请求的过程,对于应用服务器的资源的占用量就会较高。因此,如何降低应用服务器在识别访问请求方面的资源消耗,已成为本领域技术人员亟待解决的技术问题。Currently, when a server in which a backend application is deployed (hereinafter referred to as an "application server") receives an access request sent by a frontend application, it usually needs to identify whether the access request is a request that it can process. When the access request reaches a certain number, the process of identifying the access request will occupy a high amount of resources of the application server. Therefore, how to reduce the resource consumption of the application server in identifying the access request has become a technical problem to be solved urgently by those skilled in the art.
为便于理解实施例中的方案,下面对SLB服务器进行说明。To facilitate understanding of the solution in the embodiment, the SLB server is described below.
负载均衡(Server Load Balancing,英文缩写:SLB)服务器是指可以对服务器集群中的多台服务器进行流量分发,以实现服务器集群中的设备负载均衡的服务器。在实际应用中,SLB服务器可以基于负载均衡算法,对访问请求进行转发判断以及转发操作,从而将访问请求转发至物理服务器进行处理。A server load balancing (Server Load Balancing, English abbreviation: SLB) server refers to a server that can distribute traffic to multiple servers in a server cluster to achieve load balancing of devices in the server cluster. In practical applications, the SLB server can perform forwarding judgment and forwarding operations on the access request based on the load balancing algorithm, so as to forward the access request to the physical server for processing.
图1为本说明书实施例中一种基于SLB服务器的访问请求转发方法的整体方案流程示意图。FIG. 1 is a schematic flowchart of an overall solution of an access request forwarding method based on an SLB server in an embodiment of the specification.
如图1所示,第一注册应用服务器102中搭载有第一应用,第二注册应用服务器103中搭载有第二应用,第一应用以及第二应用可以均为后端应用。假定,第一注册应用服务器102中的第一应用支持对于包含统一资源定位符“http//a.cn/path1”或者“http//b.com/path2”的访问请求的处理,而第二注册应用服务器103中的第二应用支持对于包含统一资源定位符As shown in FIG. 1 , the first registered
“http//a.cn/path3”的访问请求的处理。The processing of the access request of "http//a.cn/path3".
第一注册应用服务器102以及第二注册应用服务器103可以预先在SLB服务器101处进行注册,以便于SLB服务器101生成映射关系表。该映射关系表中可以记录有第一注册应用服务器102的标识与该第一注册应用服务器102的可支持统一资源定位符之间的映射关系,以及第二注册应用服务器103的标识与该第二注册应用服务器103的可支持统一资源定位符之间的映射关系。接上例,SLB服务器101生成的映射关系表中记录的映射关系可以包括:“101”与“http//a.cn/path1”之间的映射关系,“101”与The first registered
“http//b.com/path2”之间的映射关系,以及“102”与“http//a.cn/path3”之间的映射关系。The mapping relationship between "http//b.com/path2", and the mapping relationship between "102" and "http//a.cn/path3".
后续,当SLB服务器101接收到访问请求时,可以根据预先生成的映射关系表,去查询服务器集群中的各个服务器中能够处理该访问请求的注册应用服务器,并将该访问请求转发至对应的注册应用服务器处进行处理。例如,将第一访问请求104及第二访问请求105转发至第一注册应用服务器102进行处理,将第四访问请求107转发至第二注册应用服务器103进行处理。Subsequently, when the
若SLB服务器未查询到可以处理该访问请求的注册应用服务器,则可以拒绝该访问请求,而不对该访问请求进行转发。例如,根据映射关系表,查询到第一注册应用服务器102以及第二注册应用服务器103均不支持处理第三访问请求106,则SLB服务器可以拒绝转发第三访问请求106。If the SLB server does not find a registered application server that can process the access request, it can reject the access request without forwarding the access request. For example, according to the mapping table, it is found that neither the first registered
接下来,将针对说明书实施例提供的一种基于SLB服务器的访问请求转发方法结合附图进行具体说明:Next, a method for forwarding an access request based on an SLB server provided by the embodiments of the specification will be described in detail with reference to the accompanying drawings:
图2为本说明书实施例提供的一种基于SLB服务器的访问请求转发方法的流程示意图。从程序角度而言,流程的执行主体可以为SLB服务器或者搭载于SLB服务器中的程序。FIG. 2 is a schematic flowchart of a method for forwarding an access request based on an SLB server according to an embodiment of the present specification. From a program perspective, the execution body of the process may be the SLB server or a program mounted in the SLB server.
如图2所示,该流程可以包括以下步骤:As shown in Figure 2, the process can include the following steps:
步骤202:SLB服务器获取包含目标统一资源定位符的访问请求;所述目标统一资源定位符至少包含目标域名和目标路径。Step 202: the SLB server obtains an access request including a target uniform resource locator; the target uniform resource locator at least includes a target domain name and a target path.
在本说明书实施例中,统一资源定位符(uniform resource locator,英文缩写:URL)可以包含域名和路径等信息,统一资源定位符可以用于定位指定资源。其中,域名(Domain Name)可以为由一串用点分隔的字符组成,该域名可以作为在数据传输时对计算机的定位标识。而路径可以指寻找文件时所历经的线路。在实际应用中,路径可以包括绝对路径及相对路径。为便于理解,以目标统一资源定位符为“http//a.cn/path1”为例,进行解决说明,其中,域名可以为“a.cn”。绝对路径可以为“http//a.cn/path1”,相对路径可以为“path1”。In the embodiment of this specification, a uniform resource locator (uniform resource locator, English abbreviation: URL) may include information such as a domain name and a path, and the uniform resource locator may be used to locate a specified resource. The domain name (Domain Name) may be composed of a string of characters separated by dots, and the domain name may be used as a locating identifier for a computer during data transmission. The path can refer to the line traversed when looking for a file. In practical applications, paths can include absolute paths and relative paths. For ease of understanding, the solution description is given by taking the target uniform resource locator as "http//a.cn/path1" as an example, wherein the domain name may be "a.cn". The absolute path can be "http//a.cn/path1", and the relative path can be "path1".
在本说明书实施例中,携带目标统一资源定位符的访问请求可以为携带有目标统一资源定位符的各类网络请求,例如,HTTP(Hyper Text Transfer Protocol)请求、FTP(File Transfer Protocol)请求等。携带目标统一资源定位符的访问请求可以用于请求对该目标统一资源定位符所指示的目标资源进行处理。In the embodiment of this specification, the access request carrying the target uniform resource locator may be various network requests carrying the target uniform resource locator, for example, HTTP (Hyper Text Transfer Protocol) request, FTP (File Transfer Protocol) request, etc. . The access request carrying the target uniform resource locator may be used to request processing of the target resource indicated by the target uniform resource locator.
在本说明书实施例中,SLB服务器可以对服务器集群中的多台服务器进行流量分发,以实现服务器集群中的服务器之间的负载均衡。其中,服务器集群中的服务器可以为搭载有后端应用的服务器(即应用服务器),该应用服务器可以用于对前端应用或者其他后端应用生成的包含目标统一资源定位符的访问请求进行处理。在实际应用中,所述服务器集群既可以包括一个或多个物理服务器,也可以包括一个或多个虚拟服务器(例如,云服务器),对此不做具体限定。In the embodiment of this specification, the SLB server may distribute traffic to multiple servers in the server cluster, so as to achieve load balancing among the servers in the server cluster. The server in the server cluster may be a server carrying a back-end application (ie, an application server), and the application server may be used to process an access request including a target uniform resource locator generated by a front-end application or other back-end applications. In practical applications, the server cluster may include one or more physical servers, and may also include one or more virtual servers (eg, cloud servers), which are not specifically limited.
在本说明书实施例中,当存在请求服务器集群进行处理的包含目标统一资源定位符的访问请求时,可以由SLB服务器获取该访问请求,并判断是否将该访问请求转发至服务器集群中的应用服务器处进行处理。In the embodiment of this specification, when there is an access request including the target uniform resource locator that requests the server cluster to process, the SLB server can obtain the access request, and determine whether to forward the access request to the application server in the server cluster to be processed.
步骤204:根据映射关系表,查询所述目标统一资源定位符对应的目标应用服务器;所述映射关系表是基于注册应用服务器的注册信息生成的,所述注册信息包含所述注册应用服务器的可支持统一资源定位符;所述可支持统一资源定位符至少包含域名和路径。Step 204: Query the target application server corresponding to the target uniform resource locator according to the mapping relationship table; the mapping relationship table is generated based on the registration information of the registered application server, and the registration information includes the available information of the registered application server. Uniform resource locators are supported; the supportable uniform resource locators include at least a domain name and a path.
在本说明书实施例中,SLB服务器可以向在该SLB服务器处完成注册的应用服务器(即注册应用服务器)转发访问请求。因此,搭载有后端应用的应用服务器需预先在SLB服务器处完成注册。In the embodiment of this specification, the SLB server may forward the access request to the application server (ie, the registration application server) that has completed the registration at the SLB server. Therefore, the application server with the backend application needs to be registered with the SLB server in advance.
在本说明书实施例中,SLB服务器可以获取到注册应用服务器的注册信息,该注册信息中可以包含该注册应用服务器可以进行处理的资源对应的统一资源定位符(即可支持统一资源定位符)。SLB服务器还可以根据注册应用服务器的注册信息,去生成记录有该注册应用服务器的可支持统一资源定位符与该注册应用服务器的标识之间的映射关系的映射关系表。从而令该SLB服务器可以基于该映射关系表,去确定步骤202中获取到的访问请求是否为注册应用服务器可以处理的访问请求。In the embodiment of this specification, the SLB server can obtain the registration information of the registered application server, and the registration information can include the uniform resource locator (that is, the uniform resource locator) corresponding to the resource that the registered application server can process. The SLB server may also generate, according to the registration information of the registered application server, a mapping relation table that records the mapping relation between the supported uniform resource locator of the registered application server and the identifier of the registered application server. Therefore, the SLB server can determine whether the access request obtained in step 202 is an access request that can be processed by the registered application server based on the mapping relationship table.
在本说明书实施例中,注册应用服务器的注册信息中的可支持统一资源定位符可以根据实际情况进行人工设置。注册应用服务器的可支持统一资源定位符中可以包含一个或多个域名以及一条或多条路径。In the embodiment of this specification, the supportable uniform resource locator in the registration information of the registration application server may be manually set according to the actual situation. A registered application server can contain one or more domain names and one or more paths in its supportable uniform resource locator.
例如,根据图1中内容,可知,搭载有第一应用的第一注册应用服务器的可支持统一资源定位符包括“http//a.cn/path1”、“http//b.com/path2”等。搭载有第二应用的第二注册应用服务器的可支持统一资源定位符可以包括For example, according to the content in FIG. 1 , it can be known that the supportable uniform resource locators of the first registered application server carrying the first application include “http://a.cn/path1” and “http://b.com/path2” Wait. The supportable uniform resource locator of the second registered application server hosting the second application may include
“http//a.cn/path3”等。即,第一应用以及第二应用均能处理域名为“a.cn”的部分访问请求。且第一应用还可以支持对多个域名(如,“a.cn”、"http//a.cn/path3" etc. That is, both the first application and the second application can process part of the access request whose domain name is "a.cn". And the first application can also support multiple domain names (for example, "a.cn",
“b.com”)的访问请求的处理。"b.com") processing of access requests.
在实际应用中,由于有很多应用可能只是前端页面存在些许不同,但后端接口和业务逻辑可以是相同的,但目前通常需要在服务器上部署两个程序代码相同的后端应用,以分别支持不同的前端应用,存在后端应用部署、维护成本较高的问题。In practical applications, since there are many applications, there may only be slightly different front-end pages, but the back-end interface and business logic can be the same, but at present, it is usually necessary to deploy two back-end applications with the same program code on the server to support the Different front-end applications have problems of high back-end application deployment and maintenance costs.
在本说明书实施例中,图1中的方案通过令用户可以根据实际需求,设置注册应用服务器的可支持统一资源定位符,并令SLB服务器可以基于注册应用服务器的可支持统一资源定位符对访问请求进行转发,从而可以通过在服务器上部署一个后端应用以支持多个前端应用发送的业务逻辑相同的访问请求,例如,第一应用可以支持对多个域名(例如,“a.cn”、“b.com”)的访问请求进行处理。该方案,有利于减少应用开发和后期运维的复杂度及成本。In the embodiment of this specification, the solution in FIG. 1 enables the user to set the supportable uniform resource locator of the registered application server according to actual needs, and enables the SLB server to access the access based on the supportable uniform resource locator of the registered application server. The request is forwarded, so that a back-end application can be deployed on the server to support access requests with the same business logic sent by multiple front-end applications. For example, the first application can support access to multiple domain names (for example, "a.cn", "b.com") access requests are processed. This solution is conducive to reducing the complexity and cost of application development and post-operation and maintenance.
步骤206:将所述访问请求转发至所述目标应用服务器。Step 206: Forward the access request to the target application server.
在本说明书实施例中,当SLB服务器查询到存在可以处理携带所述目标统一资源定位符的访问请求的应用服务器(即目标应用服务器)时,可以将该访问请求转发至所述目标应用服务器,以令该目标应用服务器对该访问请求进行处理、响应。In the embodiment of this specification, when the SLB server finds that there is an application server (that is, the target application server) that can process the access request carrying the target uniform resource locator, it can forward the access request to the target application server, In order to make the target application server process and respond to the access request.
在本说明书实施例中,当查询不到所述目标统一资源定位符对应的目标应用服务器时,则可以表示SLB服务器处的注册应用服务器均不支持对所述访问请求的处理,因此,SLB服务器可以拒绝所述访问请求,而不再将所述访问请求转发至注册应用服务器进行能否支持处理的识别,从而可以减少注册应用服务器在识别访问请求方面的资源消耗。In the embodiment of this specification, when the target application server corresponding to the target uniform resource locator cannot be queried, it may indicate that none of the registered application servers at the SLB server support the processing of the access request. Therefore, the SLB server The access request can be rejected without forwarding the access request to the registered application server for identification of whether processing can be supported, so that the resource consumption of the registered application server in identifying the access request can be reduced.
应当理解,本说明书一个或多个实施例所述的方法其中部分步骤的顺序可以根据实际需要相互交换,或者其中的部分步骤也可以省略或删除。It should be understood that the order of some steps in the method described in one or more embodiments of this specification may be interchanged according to actual needs, or some steps may be omitted or deleted.
图2中的方法,通过基于SLB服务器可以向注册应用服务器转发访问请求以实现负载均衡的原理,令SLB服务器可以根据记录有注册应用服务器的可支持统一资源定位符与该注册应用服务器的标识之间的映射关系的映射关系表,去将获取到的包含目标统一资源定位符的访问请求转发至支持处理该访问请求的目标应用服务器处进行处理,从而无需目标应用服务器去识别自身是否支持对该访问请求的处理,以降低应用服务器在识别访问请求方面的资源消耗。The method in Fig. 2 is based on the principle that the SLB server can forward the access request to the registered application server to realize load balancing, so that the SLB server can record the supported uniform resource locator of the registered application server according to the relationship between the registered application server and the registered application server's identity. The mapping relationship table of the mapping relationship between, to forward the obtained access request containing the target uniform resource locator to the target application server that supports processing the access request for processing, so that the target application server does not need to identify whether it supports the access request. The processing of access requests to reduce the resource consumption of the application server in identifying access requests.
在该方案中,访问请求中的目标统一资源定位符可以至少包含目标域名和目标路径,映射关系表中的注册应用服务器的可支持统一资源定位符也可以至少包含域名和路径,从而令SLB服务器可以对访问请求进行精确转发,以进一步降低应用服务器在识别访问请求方面的资源消耗。In this solution, the target uniform resource locator in the access request can at least contain the target domain name and the target path, and the supportable uniform resource locator of the registered application server in the mapping relationship table can also contain at least the domain name and the path, so that the SLB server can The access request can be accurately forwarded to further reduce the resource consumption of the application server in identifying the access request.
在该方案中,可以令SLB服务器将不同域名的访问请求转发至搭载有指定后端应用的注册应用服务器处进行处理,从而可以通过同一个后端应用支持不同前端应用的访问请求,有利于减少应用开发和后期运维的复杂度及成本。In this solution, the SLB server can be made to forward the access requests of different domain names to the registered application server carrying the specified back-end application for processing, so that the same back-end application can support the access requests of different front-end applications, which is beneficial to reduce The complexity and cost of application development and post-operation and maintenance.
基于图2的方法,本说明书实施例还提供了该方法的一些具体实施方式,下面进行说明。Based on the method in FIG. 2 , some specific implementations of the method are also provided in the embodiments of the present specification, which will be described below.
在本说明书实施例中,步骤204:查询所述目标统一资源定位符对应的目标应用服务器,具体可以包括:In the embodiment of this specification, step 204: query the target application server corresponding to the target uniform resource locator, which may specifically include:
查询支持所述目标域名的初始目标应用服务器。An initial target application server that supports the target domain name is queried.
若未查询到支持所述目标域名的初始目标应用服务器,则拒绝所述访问请求;If the initial target application server supporting the target domain name is not queried, reject the access request;
若查询到支持所述目标域名的初始目标应用服务器,则查询所述初始目标应用服务器支持的路径是否包含所述目标路径。If an initial target application server supporting the target domain name is found, query whether the path supported by the initial target application server includes the target path.
若所述初始目标应用服务器支持的路径包含所述目标路径,将所述初始目标应用服务器确定为所述目标应用服务器。If the path supported by the initial target application server includes the target path, the initial target application server is determined as the target application server.
若所述初始目标应用服务器支持的路径不包含所述目标路径,则拒绝所述访问请求。If the path supported by the initial target application server does not include the target path, the access request is rejected.
在本说明书实施例中,拒绝所述访问请求,具体可以包括:SLB服务器停止转发所述访问请求。从而令在SLB服务器处的注册应用服务器不会接收到所述访问请求。In the embodiment of this specification, rejecting the access request may specifically include: the SLB server stops forwarding the access request. Therefore, the registered application server at the SLB server will not receive the access request.
在本说明书实施例中,所述拒绝所述访问请求之后,还可以包括:向发送访问请求的设备反馈请求失败信息。从而可以减少发送访问请求的设备对于该访问请求的响应等待时间。In this embodiment of the present specification, after rejecting the access request, the method may further include: feeding back request failure information to the device sending the access request. Therefore, the response waiting time of the device sending the access request to the access request can be reduced.
在本说明书实施例中,通过先查询是否存在支持目标统一资源定位符中的目标域名的注册应用服务器,若不存在,则停止查询,并拒绝该访问请求,相对于根据目标统一资源定位符直接进行完全匹配的查询方式,查询效率较高。In the embodiment of this specification, by first querying whether there is a registered application server that supports the target domain name in the target uniform resource locator, if not, the query is stopped and the access request is rejected. The exact matching query method is used, and the query efficiency is higher.
在本说明书实施例中,由于SLB服务器可以用于实现服务器集群的负载均衡。因此,步骤204:查询所述目标统一资源定位符对应的目标应用服务器,具体可以包括:查询所述目标统一资源定位符对应的目标应用服务器集群。In the embodiment of this specification, since the SLB server can be used to implement load balancing of the server cluster. Therefore, step 204: querying the target application server corresponding to the target uniform resource locator may specifically include: querying the target application server cluster corresponding to the target uniform resource locator.
所述将所述访问请求转发至所述目标应用服务器之前,还可以包括:根据所述目标应用服务器集群中各个目标应用服务器的实时负载指标,从所述目标应用服务器集群中确定一个低负载目标应用服务器;所述低负载目标应用服务器的实时负载指标小于所述目标应用服务器集群中部分目标应用服务器的实时负载指标。Before forwarding the access request to the target application server, the method may further include: determining a low load target from the target application server cluster according to real-time load indicators of each target application server in the target application server cluster An application server; the real-time load index of the low-load target application server is smaller than the real-time load index of some target application servers in the target application server cluster.
步骤206:将所述访问请求转发至所述目标应用服务器,具体可以包括:将所述访问请求转发至所述低负载目标应用服务器。Step 206: Forwarding the access request to the target application server may specifically include: forwarding the access request to the low-load target application server.
在本说明书实施例中,当SLB服务器确定出的可以支持处理步骤202中获取的访问请求的注册应用服务器(即目标应用服务器)为多个时,可以将上述多个目标应用服务器确定为目标应用服务器集群中的服务器。In the embodiment of this specification, when the SLB server determines that there are multiple registered application servers (that is, target application servers) that can support the access request obtained in processing step 202, the above-mentioned multiple target application servers can be determined as the target application. A server in a server cluster.
SLB服务器可以从目标应用服务器集群中确定出一个当前负载较低的服务器作为低负载目标应用服务器,并将该访问请求发送至该低负载目标应用服务器进行处理。从而在保证访问请求可以被处理的基础上,实现均衡服务器集群中各个服务器的负载的功能。在本说明书实施例中,对于SLB服务器确定低负载目标应用服务器的过程不做具体限定。The SLB server may determine a server with a low current load as a low-load target application server from the target application server cluster, and send the access request to the low-load target application server for processing. Therefore, on the basis of ensuring that the access request can be processed, the function of balancing the load of each server in the server cluster is realized. In the embodiments of this specification, the process of determining the low-load target application server by the SLB server is not specifically limited.
在实际应用中,由于不同应用服务器的硬件资源配置通常并不相同,使得部分应用服务器更适应用于处理需进行高频数据读写的访问请求,而部分应用服务器则更适应用于处理对GPU资源需求较多的访问请求。In practical applications, since the hardware resource configuration of different application servers is usually different, some application servers are more suitable for processing access requests that require high-frequency data reading and writing, while some application servers are more suitable for processing GPUs. Access requests with high resource demands.
因此,为提升注册应用服务器的资源利用率以及对访问请求处理效率,可以令注册应用服务器的注册信息中还包含该注册应用服务器的可支持接口(ApplicationProgramming Interface,英文缩写:API)。在实际应用中,用户可以根据实际需求指定注册信息中的应用服务器的可支持接口,例如,令IO效率高的应用服务器的注册信息中包含对信息输入、输出效率要求较高的接口,比如,transformAPI,该Transform API允许第三方插件在class文件转换为dex文件前,操作编译好的class文件,以简化class文件的自定义操作;而令GPU性能高的应用服务器的注册信息中包含对GPU资源需求量较大或对GPU运行效率要求较高的接口,如,用于压缩图像的compressImage API。从而令SLB服务器可以将高IO的访问请求转发至IO效率高的注册应用服务器处进行处理,而将高GPU的访问请求转发至GPU性能高的注册应用服务器处进行处理,有利于提升注册应用服务器的资源利用率以及访问请求的处理效率。Therefore, in order to improve the resource utilization rate of the registered application server and the processing efficiency of the access request, the registration information of the registered application server may further include a supportable interface (Application Programming Interface, English abbreviation: API) of the registered application server. In practical applications, the user can specify the supported interfaces of the application server in the registration information according to actual needs. For example, the registration information of the application server with high IO efficiency includes interfaces that require high information input and output efficiency, for example, transformAPI, the Transform API allows third-party plug-ins to operate the compiled class files before converting the class files to dex files, so as to simplify the custom operation of the class files; and the registration information of the application server with high GPU performance includes the GPU resources. Interfaces that are in high demand or require high GPU operating efficiency, such as the compressImage API for compressing images. In this way, the SLB server can forward high IO access requests to the registered application server with high IO efficiency for processing, and forward high GPU access requests to the registered application server with high GPU performance for processing, which is conducive to improving the registered application server. resource utilization and processing efficiency of access requests.
在本说明书实施例中,SLB服务器生成映射关系表的方式有多种。In the embodiments of the present specification, there are multiple manners for the SLB server to generate the mapping relationship table.
方式一,当应用服务器在SLB服务器处进行注册时:
SLB服务器可以获取所述注册应用服务器的注册信息;该注册信息中包含所述注册应用服务器的可支持统一资源定位符。The SLB server may acquire registration information of the registered application server; the registration information includes the supportable uniform resource locator of the registered application server.
获取所述注册应用服务器的标识。Obtain the identifier of the registered application server.
将所述注册应用服务器的标识,与所述注册应用服务器的可支持统一资源定位符,关联存储至所述映射关系表。The identifier of the registered application server and the supportable uniform resource locator of the registered application server are associated and stored in the mapping relationship table.
在本实现方式中,通过令SLB服务器可以基于注册应用服务器的注册信息传递所述注册应用服务器的可支持统一资源定位符,从而无需执行额外的传递所述注册应用服务器的可支持统一资源定位符的步骤,以减少对SLB服务器的改造,有利于降低该访问请求转发方案的改造成本。In this implementation manner, by enabling the SLB server to transmit the supportable uniform resource locator of the registered application server based on the registration information of the registered application server, there is no need to perform additional transmission of the supported uniform resource locator of the registered application server The steps are to reduce the transformation of the SLB server, which is beneficial to reduce the transformation cost of the access request forwarding scheme.
方式二,由于注册应用服务器的可支持统一资源定位符可能会发生变化,为提升SLB服务器对于访问请求转发的准确性,因此,Method 2: Since the supported uniform resource locator of the registered application server may change, in order to improve the accuracy of the SLB server for forwarding the access request, therefore,
可以令SLB服务器获取所述注册应用服务器发送的更新信息;所述更新信息包括更新后的所述注册应用服务器的可支持统一资源定位符。The SLB server can be made to obtain the update information sent by the registered application server; the updated information includes the updated supportable uniform resource locator of the registered application server.
根据所述更新信息,更新所述映射关系表。例如,根据更新信息,删除所述映射关系表中的注册应用服务器不再支持的统一资源定位符与该注册应用服务器标识之间的映射关系,或,在映射关系表中添加注册应用服务器的新增的可支持统一资源定位符与该注册应用服务器标识之间的映射关系。According to the update information, the mapping relationship table is updated. For example, according to the update information, delete the mapping relationship between the uniform resource locator that is no longer supported by the registered application server and the registered application server identifier in the mapping relationship table, or add a new registered application server in the mapping relationship table. The added mapping relationship between the uniform resource locator and the registered application server identifier can be supported.
在上述实现方式中,当注册应用服务器的可支持统一资源定位符发生变化后,该注册应用服务器无需去在SLB服务器处进行重新注册操作,也可以令SLB服务获取到该注册应用服务器的更新后的可支持统一资源定位符,以对映射关系表进行更新。从而有利于提升对访问请求转发方案的运行稳定性以及转发准确性。In the above implementation manner, when the supported uniform resource locator of the registered application server changes, the registered application server does not need to perform a re-registration operation at the SLB server, and the SLB service can also obtain the updated registered application server. can support uniform resource locators to update the mapping table. Therefore, it is beneficial to improve the operation stability and forwarding accuracy of the access request forwarding scheme.
方式三,注册应用服务器既可以主动向SLB服务器发送其所支持的统一资源定位符。除此之外,SLB服务器也可以主动向注册应用服务器请求获取其所支持的统一资源定位符。具体的:In the third way, the registered application server can actively send the supported uniform resource locator to the SLB server. Besides, the SLB server can also actively request the registered application server to obtain the uniform resource locator supported by it. specific:
SLB服务器可以获取所述注册应用服务器的接口信息。The SLB server may obtain the interface information of the registered application server.
通过所述接口信息对应的接口,查询所述注册应用服务器的可支持统一资源定位符。Through the interface corresponding to the interface information, query the supportable uniform resource locator of the registered application server.
将所述注册应用服务器的标识,与所述注册应用服务器的可支持统一资源定位符,关联存储至所述映射关系表。The identifier of the registered application server and the supportable uniform resource locator of the registered application server are associated and stored in the mapping relationship table.
在本实现方式中,注册应用服务器可以开放指定接口给SLB服务器调用,以便于SLB服务器基于该接口获取到所述注册应用服务器的可支持统一资源定位符以及更新后的可支持统一资源定位符,从而对映射关系表进行维护,以保证映射关系表的实时性及准确性,进而可以降低对访问请求的错误转发或错误拒绝的几率。In this implementation manner, the registration application server may open a specified interface for the SLB server to call, so that the SLB server obtains the supportable uniform resource locator and the updated supportable uniform resource locator of the registered application server based on the interface, Thus, the mapping relationship table is maintained to ensure the real-time and accurate mapping relationship table, thereby reducing the probability of wrong forwarding or wrong rejection of the access request.
基于同样的思路,本说明书实施例还提供了图2中提及的注册应用服务器所需执行的方案。该注册应用服务器上可以搭载有后端应用,以便于利用该后端应用去处理其他设备发送的访问请求。图3为本说明书实施例提供的一种访问请求的处理方法的流程示意图,如图3所示,该方案可以包括:Based on the same idea, the embodiments of this specification also provide the solution that needs to be executed for registering the application server mentioned in FIG. 2 . The registered application server may be equipped with a back-end application, so that the back-end application can be used to process access requests sent by other devices. FIG. 3 is a schematic flowchart of a method for processing an access request provided by an embodiment of the present specification. As shown in FIG. 3 , the solution may include:
步骤302:应用服务器获取SLB服务器转发的访问请求;所述访问请求是所述SLB服务器基于包含目标统一资源定位符的访问请求,根据映射关系表,查询到所述目标统一资源定位符对应的目标应用服务器为所述应用服务器后,将所述访问请求转发至所述应用服务器的;所述目标统一资源定位符至少包含目标域名和目标路径。Step 302: the application server obtains the access request forwarded by the SLB server; the access request is that the SLB server queries the target corresponding to the target uniform resource locator according to the mapping table based on the access request containing the target uniform resource locator After the application server is the application server, the access request is forwarded to the application server; the target uniform resource locator at least includes a target domain name and a target path.
步骤304:所述应用服务器基于所述应用服务器预先存储的过滤规则,判断所述访问请求是否为所述应用服务器支持的访问请求。Step 304: The application server determines whether the access request is an access request supported by the application server based on the filtering rule pre-stored by the application server.
步骤306:如果是,处理所述访问请求。Step 306: If yes, process the access request.
步骤308:否则,拒绝所述访问请求。Step 308: Otherwise, reject the access request.
在本说明书实施例中,SLB服务器为提升访问请求的转发效率,可能会采用路径正则表达式校验或者参数存在性校验等方式,去识别应用服务器是否支持处理访问请求,识别结果的精度较低,因此,存在将应用服务器不支持的访问请求错误的转发至该应用服务器的可能性。In the embodiments of this specification, in order to improve the forwarding efficiency of access requests, the SLB server may use path regular expression verification or parameter existence verification to identify whether the application server supports processing access requests, and the accuracy of the identification results is higher than Low, therefore, there is a possibility that access requests not supported by the application server are erroneously forwarded to the application server.
为确保应用服务器的正常运行,在应用服务器处理该访问请求之前,还可以由应用服务器根据预先存储的过滤规则,对所述访问请求进行二次识别,以提升对于应用服务器是否支持处理访问请求的识别结果的精确性,从而可以保证应用服务器的正常运行。并在确定支持对该访问请进行处理后,再由应用服务器进行处理,并向访问请求生成方反馈处理结果。In order to ensure the normal operation of the application server, before the application server processes the access request, the application server can also re-identify the access request according to the pre-stored filtering rules, so as to improve whether the application server supports processing the access request. The accuracy of the identification results can ensure the normal operation of the application server. After it is determined that the access request is supported, the application server processes it, and feeds back the processing result to the access request generator.
图3中的方案,由于SLB服务器可以预先识别出部分应用服务器不支持处理的访问请求,并拒绝转发这类访问请求至应用服务器,从而可以降低应用服务器在识别访问请求方面的资源消耗。In the solution in FIG. 3, since the SLB server can identify in advance the access requests that some application servers do not support processing, and refuse to forward such access requests to the application server, the resource consumption of the application server in identifying the access requests can be reduced.
在该方案中,访问请求中的目标统一资源定位符可以至少包含目标域名和目标路径,映射关系表中的应用服务器的可支持统一资源定位符也可以至少包含域名和路径,从而令SLB服务器可以对访问请求进行精确转发,以进一步降低应用服务器在识别访问请求方面的资源消耗。In this solution, the target URI in the access request can at least include the target domain name and the target path, and the supportable URI of the application server in the mapping table can also include at least the domain name and the path, so that the SLB server can The access request is accurately forwarded to further reduce the resource consumption of the application server in identifying the access request.
在该方案中,通过根据实际需求设置应用服务器的可支持统一资源定位符,可以令SLB服务器将不同域名的访问请求转发至搭载有指定后端应用的应用服务器处进行处理,从而可以通过同一个后端应用支持不同前端应用的访问请求,有利于减少应用开发和后期运维的复杂度及成本。In this solution, by setting the supportable uniform resource locator of the application server according to the actual needs, the SLB server can forward the access requests of different domain names to the application server with the specified backend application for processing, so that the same Back-end applications support access requests from different front-end applications, which helps reduce the complexity and cost of application development and post-operation and maintenance.
在本说明书实施例中,所述应用服务器获取SLB服务器转发的访问请求之前,还可以包括:In the embodiment of this specification, before the application server acquires the access request forwarded by the SLB server, it may further include:
所述应用服务器向所述SLB服务器发送所述应用服务器的可支持统一资源定位符,以便所述SLB服务器将所述应用服务器的标识,与所述应用服务器的可支持统一资源定位符,关联存储至所述映射关系表。The application server sends the supportable uniform resource locator of the application server to the SLB server, so that the SLB server associates the identifier of the application server with the supportable uniform resource locator of the application server and stores to the mapping table.
其中,所述应用服务器向所述SLB服务器发送所述应用服务器的可支持统一资源定位符,具体可以包括:The application server sending the supportable uniform resource locator of the application server to the SLB server may specifically include:
所述应用服务器向所述SLB服务器发送包含所述应用服务器的可支持统一资源定位符的注册信息;或者,响应于所述SLB服务器的对于所述应用服务器的可支持统一资源定位符的查询请求,所述应用服务器向所述SLB服务器发送所述可支持统一资源定位符。The application server sends, to the SLB server, registration information including the application server's supportable uniform resource locator; or, in response to the SLB server's query request for the application server's supportable uniform resource locator , the application server sends the supportable uniform resource locator to the SLB server.
在本说明书实施例中,应用服务器向SLB服务器发送该应用服务器的可支持统一资源定位符的实现方式,与图2中方法的实施例中提及的SLB服务器从应用服务器处获取该应用服务器的可支持统一资源定位符的实现方式,可以是相同的,对此不再赘述。In the embodiment of this specification, the application server sends the implementation manner of the application server's supportable uniform resource locator to the SLB server, and the SLB server mentioned in the embodiment of the method in FIG. 2 obtains the application server's information from the application server. The implementation manner of the supportable uniform resource locator may be the same, which will not be repeated here.
基于同样的思路,本说明书实施例还提供了图2中方法对应的装置。图4为本说明书实施例提供的对应于图2的一种访问请求转发装置的结构示意图。图4中的装置可以应用于SLB服务器。如图4所示,该装置可以包括:Based on the same idea, the embodiments of the present specification also provide a device corresponding to the method in FIG. 2 . FIG. 4 is a schematic structural diagram of an access request forwarding apparatus corresponding to FIG. 2 according to an embodiment of the present specification. The apparatus in FIG. 4 can be applied to an SLB server. As shown in Figure 4, the apparatus may include:
获取模块402,用于获取包含目标统一资源定位符的访问请求;所述目标统一资源定位符至少包含目标域名和目标路径。The obtaining
查询模块404,用于根据映射关系表,查询所述目标统一资源定位符对应的目标应用服务器;所述映射关系表是基于注册应用服务器的注册信息生成的,所述注册信息包含所述注册应用服务器的可支持统一资源定位符;所述可支持统一资源定位符至少包含域名和路径。The
转发模块406,用于将所述访问请求转发至所述目标应用服务器。The
基于图4的装置,本说明书实施例还提供了该装置的一些具体实施方式,下面进行说明。Based on the device in FIG. 4 , some specific implementations of the device are also provided in the embodiments of the present specification, which will be described below.
可选的,图4中的装置还可以包括:拒绝访问模块,用于在查询不到所述目标统一资源定位符对应的目标应用服务器的情况下,拒绝所述访问请求。Optionally, the apparatus in FIG. 4 may further include: an access denial module, configured to deny the access request if the target application server corresponding to the target uniform resource locator cannot be queried.
可选的,所述查询模块404,具体可以包括:Optionally, the
第一查询单元,用于查询支持所述目标域名的初始目标应用服务器。The first query unit is configured to query the initial target application server supporting the target domain name.
第二查询单元,用于查询所述初始目标应用服务器支持的路径是否包含所述目标路径。A second query unit, configured to query whether the path supported by the initial target application server includes the target path.
确定单元,用于若所述初始目标应用服务器支持的路径包含所述目标路径,将所述初始目标应用服务器确定为所述目标应用服务器。A determining unit, configured to determine the initial target application server as the target application server if the path supported by the initial target application server includes the target path.
可选的,所述查询模块404,还可以包括:Optionally, the
拒绝访问单元,用于若未查询到支持所述目标域名的初始目标应用服务器,拒绝所述访问请求;或者,用于若所述初始目标应用服务器支持的路径不包含所述目标路径,拒绝所述访问请求。an access denial unit, configured to reject the access request if an initial target application server supporting the target domain name is not found; or, if the path supported by the initial target application server does not contain the target path, reject the access request the access request.
可选的,所述查询模块404,具体可以用于:查询所述目标统一资源定位符对应的目标应用服务器集群。Optionally, the
图4中的装置还包括:确定模块,可以用于根据所述目标应用服务器集群中各个目标应用服务器的实时负载指标,从所述目标应用服务器集群中确定一个低负载目标应用服务器;所述低负载目标应用服务器的实时负载指标小于所述目标应用服务器集群中部分目标应用服务器的实时负载指标。The apparatus in FIG. 4 further includes: a determining module, which can be configured to determine a low-load target application server from the target application server cluster according to the real-time load indicators of each target application server in the target application server cluster; the low-load target application server; The real-time load index of the load target application server is smaller than the real-time load index of some target application servers in the target application server cluster.
所述转发模块406,具体可以用于:将所述访问请求转发至所述低负载目标应用服务器。The
可选的,图4中的装置,还可以包括:Optionally, the device in FIG. 4 may also include:
注册信息获取模块,用于获取所述注册应用服务器的注册信息。The registration information acquisition module is used to acquire the registration information of the registration application server.
标识获取模块,用于获取所述注册应用服务器的标识。An identification acquisition module, configured to acquire the identification of the registered application server.
管理存储模块,用于将所述注册应用服务器的标识,与所述注册应用服务器的可支持统一资源定位符,关联存储至所述映射关系表。The management storage module is configured to associate and store the identifier of the registered application server and the supportable uniform resource locator of the registered application server into the mapping relationship table.
可选的,图4中的装置,还可以包括:Optionally, the device in FIG. 4 may also include:
更新信息获取模块,用于获取所述注册应用服务器发送的更新信息;所述更新信息包括更新后的所述注册应用服务器的可支持统一资源定位符。An update information acquisition module, configured to acquire update information sent by the registered application server; the update information includes the updated supportable uniform resource locator of the registered application server.
更新模块,用于根据所述更新信息,更新所述映射关系表。An update module, configured to update the mapping relationship table according to the update information.
可选的,图4中的装置,还可以包括:Optionally, the device in FIG. 4 may also include:
接口信息获取模块,用于获取所述注册应用服务器的接口信息。The interface information acquisition module is used for acquiring the interface information of the registered application server.
可支持统一资源定位符查询模块,用于通过所述接口信息对应的接口,查询所述注册应用服务器的可支持统一资源定位符。A supportable uniform resource locator query module is configured to query the supportable uniform resource locator of the registered application server through an interface corresponding to the interface information.
关联存储模块,用于将所述注册应用服务器的标识,与所述注册应用服务器的可支持统一资源定位符,关联存储至所述映射关系表。The associated storage module is configured to associate and store the identifier of the registered application server and the supportable uniform resource locator of the registered application server into the mapping relationship table.
基于同样的思路,本说明书实施例还提供了图3中方法对应的装置。图5为本说明书实施例提供的对应于图3的一种访问请求的处理装置的结构示意图,图3中的装置可以应用于应用服务器。如图5所示,该装置可以包括:Based on the same idea, the embodiment of the present specification also provides a device corresponding to the method in FIG. 3 . FIG. 5 is a schematic structural diagram of an apparatus for processing an access request corresponding to FIG. 3 according to an embodiment of the present specification. The apparatus in FIG. 3 may be applied to an application server. As shown in Figure 5, the apparatus may include:
获取模块502,用于获取SLB服务器转发的访问请求;所述访问请求是所述SLB服务器基于包含目标统一资源定位符的访问请求,根据映射关系表,查询到所述目标统一资源定位符对应的目标应用服务器为所述应用服务器后,将所述访问请求转发至所述应用服务器的;所述目标统一资源定位符至少包含目标域名和目标路径。The obtaining
判断模块504,用于基于所述应用服务器预先存储的过滤规则,判断所述访问请求是否为所述应用服务器支持的访问请求,得到判断结果。The
访问请求处理模块506,用于当所述判断结果表示所述访问请求是所述应用服务器支持的访问请求时,处理所述访问请求。The access
拒绝访问模块508,用于当所述判断结果表示所述访问请求不是所述应用服务器支持的访问请求时,拒绝所述访问请求。A denying
基于图5的装置,本说明书实施例还提供了该装置的一些具体实施方式,下面进行说明。Based on the device in FIG. 5 , the embodiments of this specification also provide some specific implementations of the device, which are described below.
可选的,图5中的装置,还可以包括:Optionally, the device in FIG. 5 may also include:
发送模块,用于向所述SLB服务器发送所述应用服务器的可支持统一资源定位符,以便所述SLB服务器将所述应用服务器的标识,与所述应用服务器的可支持统一资源定位符,关联存储至所述映射关系表。A sending module, configured to send the supportable uniform resource locator of the application server to the SLB server, so that the SLB server associates the identifier of the application server with the supportable uniform resource locator of the application server stored in the mapping table.
可选的,发送模块,具体可以用于:向所述SLB服务器发送包含所述应用服务器的可支持统一资源定位符的注册信息;或者,Optionally, the sending module may be specifically configured to: send the registration information that includes the application server's supportable uniform resource locator to the SLB server; or,
响应于所述SLB服务器的对于所述应用服务器的可支持统一资源定位符的查询请求,向所述SLB服务器发送所述可支持统一资源定位符。The supportable uniform resource locator is sent to the SLB server in response to the SLB server's query request for the application server's supportable uniform resource locator.
基于同样的思路,本说明书实施例还提供了图2中方法对应的一种访问请求转发设备,该访问请求转发设备可以采用SLB服务器实现。以及,本说明书实施例还提供了对应于图3中方法的一种访问请求处理设备,该访问请求处理设备可以为应用服务器。Based on the same idea, the embodiments of this specification also provide an access request forwarding device corresponding to the method in FIG. 2 , and the access request forwarding device may be implemented by an SLB server. And, the embodiment of this specification also provides an access request processing device corresponding to the method in FIG. 3 , where the access request processing device may be an application server.
图6为本说明书实施例提供的一种访问请求转发设备或者一种访问请求处理设备的结构示意图。FIG. 6 is a schematic structural diagram of an access request forwarding device or an access request processing device according to an embodiment of the present specification.
如图6所示,设备600可以包括:As shown in FIG. 6,
至少一个处理器610;以及,at least one processor 610; and,
与所述至少一个处理器通信连接的存储器630;其中,a
所述存储器630存储有可被所述至少一个处理器610执行的指令620。The
当图6中设备作为与图2中方法对应的一种访问请求转发设备时,所述指令620可以被所述至少一个处理器610执行,以使所述至少一个处理器610能够:When the device in FIG. 6 is an access request forwarding device corresponding to the method in FIG. 2 , the instructions 620 may be executed by the at least one processor 610, so that the at least one processor 610 can:
获取包含目标统一资源定位符的访问请求;所述目标统一资源定位符至少包含目标域名和目标路径。An access request containing a target uniform resource locator is obtained; the target uniform resource locator at least contains a target domain name and a target path.
根据映射关系表,查询所述目标统一资源定位符对应的目标应用服务器;所述映射关系表是基于注册应用服务器的注册信息生成的,所述注册信息包含所述注册应用服务器的可支持统一资源定位符;所述可支持统一资源定位符至少包含域名和路径。According to the mapping relationship table, query the target application server corresponding to the target uniform resource locator; the mapping relationship table is generated based on the registration information of the registered application server, and the registration information includes the supportable uniform resources of the registered application server Locator; the supportable uniform resource locator contains at least a domain name and a path.
将所述访问请求转发至所述目标应用服务器。The access request is forwarded to the target application server.
当图6中设备作为与图3中方法对应的一种访问请求处理设备时,所述指令620可以被所述至少一个处理器610执行,以使所述至少一个处理器610能够:When the device in FIG. 6 is an access request processing device corresponding to the method in FIG. 3 , the instructions 620 can be executed by the at least one processor 610, so that the at least one processor 610 can:
获取SLB服务器转发的访问请求;所述访问请求是所述SLB服务器基于包含目标统一资源定位符的访问请求,根据映射关系表,查询到所述目标统一资源定位符对应的目标应用服务器为所述设备后,将所述访问请求转发至所述设备的;所述目标统一资源定位符至少包含目标域名和目标路径。Obtain the access request forwarded by the SLB server; the access request is that the SLB server based on the access request containing the target uniform resource locator, according to the mapping relationship table, finds that the target application server corresponding to the target uniform resource locator is the After the device is installed, the access request is forwarded to the device; the target uniform resource locator at least includes a target domain name and a target path.
基于所述设备预先存储的过滤规则,判断所述访问请求是否为所述设备支持的访问请求。Based on the filtering rules pre-stored by the device, it is determined whether the access request is an access request supported by the device.
如果是,处理所述访问请求。否则,拒绝所述访问请求。If so, process the access request. Otherwise, the access request is denied.
本说明书中的各个实施例均采用递进的方式描述,各个实施例之间相同相似的部分互相参见即可,每个实施例重点说明的都是与其他实施例的不同之处。尤其,对于访问请求的转发设备与访问请求的处理设备而言,由于其基本相似于方法实施例,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。Each embodiment in this specification is described in a progressive manner, and the same and similar parts between the various embodiments may be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the forwarding device of the access request and the processing device of the access request, since they are basically similar to the method embodiments, the description is relatively simple, and the relevant parts may refer to the partial descriptions of the method embodiments.
在20世纪90年代,对于一个技术的改进可以很明显地区分是硬件上的改进(例如,对二极管、晶体管、开关等电路结构的改进)还是软件上的改进(对于方法流程的改进)。然而,随着技术的发展,当今的很多方法流程的改进已经可以视为硬件电路结构的直接改进。设计人员几乎都通过将改进的方法流程编程到硬件电路中来得到相应的硬件电路结构。因此,不能说一个方法流程的改进就不能用硬件实体模块来实现。例如,可编程逻辑器件(Programmable Logic Device,PLD)(例如现场可编程门阵列(Field Programmable GateArray,FPGA))就是这样一种集成电路,其逻辑功能由用户对器件编程来确定。由设计人员自行编程来把一个数字符系统“集成”在一片PLD上,而不需要请芯片制造厂商来设计和制作专用的集成电路芯片。而且,如今,取代手工地制作集成电路芯片,这种编程也多半改用“逻辑编译器(logic compiler)”软件来实现,它与程序开发撰写时所用的软件编译器相类似,而要编译之前的原始代码也得用特定的编程语言来撰写,此称之为硬件描述语言(Hardware Description Language,HDL),而HDL也并非仅有一种,而是有许多种,如ABEL(Advanced Boolean Expression Language)、AHDL(Altera Hardware DescriptionLanguage)、Confluence、CUPL(Cornell University Programming Language)、HDCal、JHDL(Java Hardware Description Language)、Lava、Lola、MyHDL、PALASM、RHDL(RubyHardware Description Language)等,目前最普遍使用的是VHDL(Very-High-SpeedIntegrated Circuit Hardware Description Language)与Verilog。本领域技术人员也应该清楚,只需要将方法流程用上述几种硬件描述语言稍作逻辑编程并编程到集成电路中,就可以很容易得到实现该逻辑方法流程的硬件电路。In the 1990s, improvements in a technology could be clearly differentiated between improvements in hardware (eg, improvements to circuit structures such as diodes, transistors, switches, etc.) or improvements in software (improvements in method flow). However, with the development of technology, the improvement of many methods and processes today can be regarded as a direct improvement of the hardware circuit structure. Designers almost get the corresponding hardware circuit structure by programming the improved method flow into the hardware circuit. Therefore, it cannot be said that the improvement of a method flow cannot be realized by hardware entity modules. For example, a Programmable Logic Device (PLD) (eg, Field Programmable Gate Array (FPGA)) is an integrated circuit whose logic function is determined by user programming of the device. It is programmed by the designer to "integrate" a digital character system on a PLD, without the need for a chip manufacturer to design and manufacture a dedicated integrated circuit chip. And, instead of making integrated circuit chips by hand, these days, much of this programming is done using software called a "logic compiler", which is similar to the software compiler used in program development and writing, but before compiling The original code also has to be written in a specific programming language, which is called Hardware Description Language (HDL), and there is not only one HDL, but many kinds, such as ABEL (Advanced Boolean Expression Language) , AHDL (Altera Hardware Description Language), Confluence, CUPL (Cornell University Programming Language), HDCal, JHDL (Java Hardware Description Language), Lava, Lola, MyHDL, PALASM, RHDL (RubyHardware Description Language), etc. The most commonly used are VHDL (Very-High-Speed Integrated Circuit Hardware Description Language) and Verilog. It should also be clear to those skilled in the art that a hardware circuit for implementing the logic method process can be easily obtained by simply programming the method process in the above-mentioned several hardware description languages and programming it into the integrated circuit.
控制器可以按任何适当的方式实现,例如,控制器可以采取例如微处理器或处理器以及存储可由该(微)处理器执行的计算机可读程序代码(例如软件或固件)的计算机可读介质、逻辑门、开关、专用集成电路(Application Specific Integrated Circuit,ASIC)、可编程逻辑控制器和嵌入微控制器的形式,控制器的例子包括但不限于以下微控制器:ARC 625D、Atmel AT91SAM、Microchip PIC18F26K20以及Silicone Labs C8051F320,存储器控制器还可以被实现为存储器的控制逻辑的一部分。本领域技术人员也知道,除了以纯计算机可读程序代码方式实现控制器以外,完全可以通过将方法步骤进行逻辑编程来使得控制器以逻辑门、开关、专用集成电路、可编程逻辑控制器和嵌入微控制器等的形式来实现相同功能。因此这种控制器可以被认为是一种硬件部件,而对其内包括的用于实现各种功能的装置也可以视为硬件部件内的结构。或者甚至,可以将用于实现各种功能的装置视为既可以是实现方法的软件模块又可以是硬件部件内的结构。The controller may be implemented in any suitable manner, for example, the controller may take the form of eg a microprocessor or processor and a computer readable medium storing computer readable program code (eg software or firmware) executable by the (micro)processor , logic gates, switches, application specific integrated circuits (ASICs), programmable logic controllers and embedded microcontrollers, examples of controllers include but are not limited to the following microcontrollers: ARC 625D, Atmel AT91SAM, Microchip PIC18F26K20 and Silicon Labs C8051F320, the memory controller can also be implemented as part of the control logic of the memory. Those skilled in the art also know that, in addition to implementing the controller in the form of pure computer-readable program code, the controller can be implemented as logic gates, switches, application-specific integrated circuits, programmable logic controllers and embedded devices by logically programming the method steps. The same function can be realized in the form of a microcontroller, etc. Therefore, such a controller can be regarded as a hardware component, and the devices included therein for realizing various functions can also be regarded as a structure within the hardware component. Or even, the means for implementing various functions can be regarded as both a software module implementing a method and a structure within a hardware component.
上述实施例阐明的系统、装置、模块或单元,具体可以由计算机芯片或实体实现,或者由具有某种功能的产品来实现。一种典型的实现设备为计算机。具体的,计算机例如可以为个人计算机、膝上型计算机、蜂窝电话、相机电话、智能电话、个人数字符助理、媒体播放器、导航设备、电子邮件设备、游戏控制台、平板计算机、可穿戴设备或者这些设备中的任何设备的组合。The systems, devices, modules or units described in the above embodiments may be specifically implemented by computer chips or entities, or by products with certain functions. A typical implementation device is a computer. Specifically, the computer may be, for example, a personal computer, a laptop computer, a cellular phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device Or a combination of any of these devices.
为了描述的方便,描述以上装置时以功能分为各种单元分别描述。当然,在实施本申请时可以把各单元的功能在同一个或多个软件和/或硬件中实现。For the convenience of description, when describing the above device, the functions are divided into various units and described respectively. Of course, when implementing the present application, the functions of each unit may be implemented in one or more software and/or hardware.
本领域内的技术人员应明白,本发明的实施例可提供为方法、系统、或计算机程序产品。因此,本发明可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本发明可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.
本发明是参照根据本发明实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block in the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to the processor of a general purpose computer, special purpose computer, embedded processor or other programmable data processing device to produce a machine such that the instructions executed by the processor of the computer or other programmable data processing device produce Means for implementing the functions specified in a flow or flow of a flowchart and/or a block or blocks of a block diagram.
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory result in an article of manufacture comprising instruction means, the instructions The apparatus implements the functions specified in the flow or flow of the flowcharts and/or the block or blocks of the block diagrams.
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded on a computer or other programmable data processing device to cause a series of operational steps to be performed on the computer or other programmable device to produce a computer-implemented process such that The instructions provide steps for implementing the functions specified in the flow or blocks of the flowcharts and/or the block or blocks of the block diagrams.
在一个典型的配置中,计算设备包括一个或多个处理器(CPU)、输入/输出接口、网络接口和内存。In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
内存可能包括计算机可读介质中的非永久性存储器,随机存取存储器(RAM)和/或非易失性内存等形式,如只读存储器(ROM)或闪存(flash RAM)。内存是计算机可读介质的示例。Memory may include non-persistent memory in computer readable media, random access memory (RAM) and/or non-volatile memory in the form of, for example, read only memory (ROM) or flash memory (flash RAM). Memory is an example of a computer-readable medium.
计算机可读介质包括永久性和非永久性、可移动和非可移动媒体可以由任何方法或技术来实现信息存储。信息可以是计算机可读指令、数据结构、程序的模块或其他数据。计算机的存储介质的例子包括,但不限于相变内存(PRAM)、静态随机存取存储器(SRAM)、动态随机存取存储器(DRAM)、其他类型的随机存取存储器(RAM)、只读存储器(ROM)、电可擦除可编程只读存储器(EEPROM)、快闪记忆体或其他内存技术、只读光盘只读存储器(CD-ROM)、数字符多功能光盘(DVD)或其他光学存储、磁盒式磁带,磁带式磁盘存储或其他磁性存储设备或任何其他非传输介质,可用于存储可以被计算设备访问的信息。按照本文中的界定,计算机可读介质不包括暂存电脑可读媒体(transitory media),如调制的数据信号和载波。Computer-readable media includes both persistent and non-permanent, removable and non-removable media, and storage of information may be implemented by any method or technology. Information may be computer readable instructions, data structures, modules of programs, or other data. Examples of computer storage media include, but are not limited to, phase-change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read only memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), Flash Memory or other memory technology, Compact Disc Read Only Memory (CD-ROM), Digital Versatile Disc (DVD), or other optical storage , magnetic tape cartridges, magnetic tape-disk storage or other magnetic storage devices or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, computer-readable media does not include transitory computer-readable media, such as modulated data signals and carrier waves.
还需要说明的是,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、商品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、商品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、商品或者设备中还存在另外的相同要素。It should also be noted that the terms "comprising", "comprising" or any other variation thereof are intended to encompass a non-exclusive inclusion such that a process, method, article or device comprising a series of elements includes not only those elements, but also Other elements not expressly listed, or which are inherent to such a process, method, article of manufacture, or apparatus are also included. Without further limitation, an element qualified by the phrase "comprising a..." does not preclude the presence of additional identical elements in the process, method, article of manufacture, or device that includes the element.
本领域技术人员应明白,本申请的实施例可提供为方法、系统或计算机程序产品。因此,本申请可采用完全硬件实施例、完全软件实施例或结合软件和硬件方面的实施例的形式。而且,本申请可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。It will be appreciated by those skilled in the art that the embodiments of the present application may be provided as a method, a system or a computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.
本申请可以在由计算机执行的计算机可执行指令的一般上下文中描述,例如程序模块。一般地,程序模块包括执行特定任务或实现特定抽象数据类型的例程、程序、对象、组件、数据结构等等。也可以在分布式计算环境中实践本申请,在这些分布式计算环境中,由通过通信网络而被连接的远程处理设备来执行任务。在分布式计算环境中,程序模块可以位于包括存储设备在内的本地和远程计算机存储介质中。The application may be described in the general context of computer-executable instructions, such as program modules, being executed by a computer. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform particular tasks or implement particular abstract data types. The application may also be practiced in distributed computing environments where tasks are performed by remote processing devices that are linked through a communications network. In a distributed computing environment, program modules may be located in both local and remote computer storage media including storage devices.
以上所述仅为本申请的实施例而已,并不用于限制本申请。对于本领域技术人员来说,本申请可以有各种更改和变化。凡在本申请的精神和原理之内所作的任何修改、等同替换、改进等,均应包含在本申请的权利要求范围之内。The above descriptions are merely examples of the present application, and are not intended to limit the present application. Various modifications and variations of this application are possible for those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of this application shall be included within the scope of the claims of this application.
Claims (20)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010485002.XA CN113761400A (en) | 2020-06-01 | 2020-06-01 | Access request forwarding method, device and equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010485002.XA CN113761400A (en) | 2020-06-01 | 2020-06-01 | Access request forwarding method, device and equipment |
Publications (1)
Publication Number | Publication Date |
---|---|
CN113761400A true CN113761400A (en) | 2021-12-07 |
Family
ID=78782607
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010485002.XA Pending CN113761400A (en) | 2020-06-01 | 2020-06-01 | Access request forwarding method, device and equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113761400A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115002188A (en) * | 2022-05-30 | 2022-09-02 | 平安普惠企业管理有限公司 | Service switching method, device, equipment and storage medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103491123A (en) * | 2012-06-14 | 2014-01-01 | 中国移动通信集团贵州有限公司 | Load balancing method based on domain name visiting, system and load balancer |
CN104836839A (en) * | 2015-03-30 | 2015-08-12 | 南京大学 | Universal user self-defining session system and session management method thereof |
US20160026683A1 (en) * | 2014-07-24 | 2016-01-28 | Citrix Systems, Inc. | Systems and methods for load balancing and connection multiplexing among database servers |
CN106961469A (en) * | 2017-02-28 | 2017-07-18 | 北京致远互联软件股份有限公司 | Unaware orientation Proxy Method and system based on http proxy servers |
CN109040316A (en) * | 2018-09-19 | 2018-12-18 | 天津字节跳动科技有限公司 | HTTP service treating method and apparatus |
-
2020
- 2020-06-01 CN CN202010485002.XA patent/CN113761400A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103491123A (en) * | 2012-06-14 | 2014-01-01 | 中国移动通信集团贵州有限公司 | Load balancing method based on domain name visiting, system and load balancer |
US20160026683A1 (en) * | 2014-07-24 | 2016-01-28 | Citrix Systems, Inc. | Systems and methods for load balancing and connection multiplexing among database servers |
CN104836839A (en) * | 2015-03-30 | 2015-08-12 | 南京大学 | Universal user self-defining session system and session management method thereof |
CN106961469A (en) * | 2017-02-28 | 2017-07-18 | 北京致远互联软件股份有限公司 | Unaware orientation Proxy Method and system based on http proxy servers |
CN109040316A (en) * | 2018-09-19 | 2018-12-18 | 天津字节跳动科技有限公司 | HTTP service treating method and apparatus |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115002188A (en) * | 2022-05-30 | 2022-09-02 | 平安普惠企业管理有限公司 | Service switching method, device, equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11204915B2 (en) | Blockchain-based data storage and query method and device | |
CN111756550B (en) | Block chain consensus method and device | |
WO2019165665A1 (en) | Domain name resolution method, server and system | |
US9785373B2 (en) | Optimizing fine grained context addressability in highly dimensional environments using TCAM hybrid memory and storage architectures | |
KR102263357B1 (en) | System for supporting user-level dma i/o in distributed filesystem environment and method for the same | |
US8892677B1 (en) | Manipulating objects in hosted storage | |
US9253133B2 (en) | Message thread identification and management | |
JP2021523436A (en) | Input and output schema mapping | |
WO2017114206A1 (en) | Method and device for processing short link, and short link server | |
WO2020024896A1 (en) | Blockchain data search method and device and storage medium | |
WO2020024895A1 (en) | Method and apparatus for searching blockchain data, and storage medium | |
CN107103011B (en) | Method and device for realizing terminal data search | |
US10262024B1 (en) | Providing consistent access to data objects transcending storage limitations in a non-relational data store | |
US20200204688A1 (en) | Picture book sharing method and apparatus and system using the same | |
WO2022267766A1 (en) | Method, apparatus and device for accessing aggregate code payment page, and medium | |
WO2015192213A1 (en) | System and method for retrieving data | |
CN111723161A (en) | A data processing method, device and equipment | |
CN111796864A (en) | Data verification method and device | |
CN112491943A (en) | Data request method, device, storage medium and electronic equipment | |
CN107197000B (en) | Static and dynamic hybrid caching method, device and system | |
WO2020024709A1 (en) | Method and apparatus for classifying and acquiring cache pages, and electronic device | |
CN113761400A (en) | Access request forwarding method, device and equipment | |
US11159530B2 (en) | Direct upload and download to content management system backend | |
CN111522506B (en) | Data reading method and device | |
CN117935915A (en) | A method and device for managing gene expression detection data |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
TA01 | Transfer of patent application right | ||
TA01 | Transfer of patent application right |
Effective date of registration: 20241113 Address after: Room 803, floor 8, No. 618 Wai Road, Huangpu District, Shanghai 200010 Applicant after: Ant blockchain Technology (Shanghai) Co.,Ltd. Country or region after: China Address before: 310000 801-11 section B, 8th floor, 556 Xixi Road, Xihu District, Hangzhou City, Zhejiang Province Applicant before: Alipay (Hangzhou) Information Technology Co.,Ltd. Country or region before: China |