Access processing methods, apparatus and equipment

By distributing routing policy information across multiple folders and files for categorized storage, and performing routing policy retrieval and matching within these folders and files, the problem of time-consuming routing policy retrieval and matching is solved, thereby improving the forwarding efficiency of access requests and the service response speed.

CN116567091BActive Publication Date: 2025-10-31INDUSTRIAL AND COMMERCIAL BANK OF CHINA
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202310565211.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-05-18
Publication Date
2025-10-31
Estimated Expiration
2043-05-18

AI Technical Summary

Technical Problem

In existing technologies, routing policy information is stored in the same configuration file. When there is a large amount of routing policy information in the configuration file, the retrieval and matching of routing policies takes a long time, resulting in a long service response time for access requests.

Method used

Routing policy information is distributed across multiple folders and files, categorized by folders and files. Routing policies are retrieved and matched within these folders and files to determine the highest priority target routing policy information and forward it to the corresponding backend server.

Benefits of technology

It effectively reduces the time spent on routing policy retrieval and matching, improves forwarding efficiency, and shortens service response time.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116567091B_ABST
    Figure CN116567091B_ABST
Patent Text Reader

Abstract

This application provides an access processing method, apparatus, and device, relating to computer technology. The method includes: obtaining an access request; the access request includes parameter information. Based on the access request, searching for a target routing policy folder corresponding to the parameter information and a target routing policy file within the target routing policy folder in a plurality of preset routing policy folders. Searching for at least one target routing policy information matching the parameter information in the target routing policy file. From the at least one target routing policy information, determining the target routing policy information corresponding to the highest priority (first priority), and using its corresponding backend server as the target server, forwarding the access request to the target server. The method of this application can effectively reduce the time spent on routing policy retrieval and matching, improve forwarding efficiency, shorten service response time, and solve the technical problem of long processing time for routing policy retrieval and matching.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to computer technology, and more particularly to an access processing method, apparatus, and device. Background Technology

[0002] Currently, when users browse the internet, they need to send access requests to their electronic devices, which then use the routing policy information matched within the device to complete the access operation. Specifically, the electronic device stores all routing policy information in a single configuration file. Based on identifiers such as the domain name, context root, Hypertext Transfer Protocol (HTTP) request header fields, and Uniform Resource Locator (URL) parameters in the received access request, the request is matched against the routing policy information in the configuration file. If a match is found, the access request is forwarded to the backend server corresponding to the matched routing policy information to complete the access operation.

[0003] However, when there is a large amount of routing policy information in the configuration file, the time spent on routing policy retrieval and matching is long, resulting in low forwarding efficiency of forwarding the matched routing policy information to the backend server, which in turn leads to a long service response time for access requests. Summary of the Invention

[0004] This application provides an access processing method, apparatus, and device to solve the technical problem of long processing time for routing policy retrieval and matching.

[0005] Firstly, this application provides an access processing method, including:

[0006] Obtain an access request; wherein the access request includes parameter information;

[0007] Based on the access request, the system searches for the target routing policy folder corresponding to the parameter information and the target routing policy file in the target routing policy folder within a plurality of preset routing policy folders; wherein, the target routing policy folder contains a plurality of routing policy files, and each routing policy file contains a plurality of routing policy information.

[0008] In the target routing policy file, at least one target routing policy information that matches the parameter information is searched; wherein, the target routing policy information includes a first priority;

[0009] From the at least one target routing policy information, determine the target routing policy information corresponding to the highest priority first priority, and use its corresponding backend server as the target server. Forward the access request to the target server to complete the access operation.

[0010] Furthermore, the parameter information includes any one or more of the following:

[0011] Domain name, context root, HTTP request header fields, URL parameters;

[0012] Among them, the domain name, the context root, the HTTP request header field, and the URL parameter have different second priorities.

[0013] Further, the step of searching for the target routing policy folder corresponding to the parameter information and the target routing policy file in the target routing policy folder based on the access request includes:

[0014] Based on the access request, search for the target routing policy folder corresponding to the second highest priority parameter information and the target routing policy file in the target routing policy folder among a number of preset routing policy folders.

[0015] Further, determining the target routing policy information corresponding to the highest priority first priority from the at least one target routing policy information, and using its corresponding backend server as the target server, includes:

[0016] If there are multiple target routing policy information, then the target routing policy information corresponding to the highest priority among the first priority in each target routing policy information is selected.

[0017] Based on the pre-defined mapping relationship between routing policy information and backend servers, the backend server corresponding to the target routing policy information with the highest priority selected is used as the target server.

[0018] Furthermore, the method also includes:

[0019] In response to an edit operation targeting the second priority of the parameter information, a second priority order of the parameter information is generated.

[0020] Furthermore, the method also includes:

[0021] Obtain parameter information;

[0022] In response to the folder configuration operation for the parameter information, multiple routing policy folders are generated;

[0023] In response to the file configuration operation, multiple routing policy files are generated in each of the multiple routing policy folders;

[0024] In response to a routing configuration operation, multiple routing policy information is generated in each of the multiple routing policy files; wherein, the routing policy information includes a first priority of each routing policy information and a backend server corresponding to each routing policy information;

[0025] Generate and store the mapping relationship between the parameter information, the routing policy folder, and the routing policy file.

[0026] Secondly, this application provides an access processing apparatus, comprising:

[0027] The first acquisition unit is used to acquire an access request; wherein the access request includes parameter information;

[0028] The search unit is used to search for the target routing policy folder corresponding to the parameter information and the target routing policy file in the target routing policy folder based on the access request; wherein the target routing policy folder contains multiple routing policy files, and each routing policy file contains multiple routing policy information.

[0029] A matching unit is configured to search for at least one target routing policy information that matches the parameter information in the target routing policy file; wherein the target routing policy information includes a first priority.

[0030] The determining unit is used to determine the target routing policy information corresponding to the highest priority first priority from the at least one target routing policy information, and to take the corresponding backend server as the target server.

[0031] The forwarding unit is used to forward the access request to the target server to complete the access operation.

[0032] Furthermore, the parameter information includes any one or more of the following:

[0033] Domain name, context root, HTTP request header fields, URL parameters;

[0034] Among them, the domain name, the context root, the HTTP request header field, and the URL parameter have different second priorities.

[0035] Furthermore, the search unit is specifically used for:

[0036] Based on the access request, search for the target routing policy folder corresponding to the second highest priority parameter information and the target routing policy file in the target routing policy folder among a number of preset routing policy folders.

[0037] Further, the determining unit includes:

[0038] The selection module is used to select the target routing policy information corresponding to the highest priority first priority according to the first priority in each target routing policy information if there are multiple target routing policy information.

[0039] The determination module is used to determine the target server based on the mapping relationship between the preset routing policy information and the backend server, and to select the backend server corresponding to the target routing policy information with the highest priority as the target server.

[0040] Furthermore, the device also includes:

[0041] An editing unit is configured to generate a second priority order of the parameter information in response to an editing operation targeting a second priority of the parameter information.

[0042] Furthermore, the device also includes:

[0043] The second acquisition unit is used to acquire parameter information;

[0044] The first configuration unit is configured to generate multiple routing policy folders in response to a folder configuration operation for the parameter information.

[0045] The second configuration unit is used to generate multiple routing policy files in each of the multiple routing policy folders in response to a file configuration operation;

[0046] The third configuration unit is used to generate multiple routing policy information in each of the multiple routing policy files in response to the routing configuration operation; wherein the routing policy information includes a first priority of each routing policy information and a backend server corresponding to each routing policy information.

[0047] The generation unit is used to generate and store the mapping relationship between the parameter information, the routing policy folder, and the routing policy file.

[0048] Thirdly, this application provides an electronic device, including a memory and a processor, wherein the memory stores a computer program that can run on the processor, and the processor executes the computer program to implement the method described in the first aspect.

[0049] Fourthly, this application provides a computer-readable storage medium storing computer-executable instructions, which, when executed by a processor, are used to implement the method described in the first aspect.

[0050] Fifthly, this application provides a computer program product, including a computer program that, when executed by a processor, implements the method described in the first aspect.

[0051] This application provides an access processing method, apparatus, and device that acquires an access request, wherein the access request includes parameter information. Based on the access request, a target routing policy folder corresponding to the parameter information and a target routing policy file within the target routing policy folder are searched in a plurality of preset routing policy folders; wherein the target routing policy folder contains multiple routing policy files, and each routing policy file contains multiple routing policy information. In the target routing policy file, at least one target routing policy information matching the parameter information is searched, wherein the target routing policy information includes a first priority. From the at least one target routing policy information, the target routing policy information corresponding to the highest priority first priority is determined, and its corresponding backend server is designated as the target server. The access request is forwarded to the target server to complete the access operation. In this solution, the access request is parsed to determine the parameter information in the access request. Based on the access request, a target routing policy folder corresponding to the parameter information and a target routing policy file within the target routing policy folder are searched in a plurality of preset routing policy folders. At least one target routing policy information matching the parameter information is searched in the target routing policy file, wherein the target routing policy information includes a first priority. Finally, based on the first priority of the target routing policy information, the target routing policy information corresponding to the highest priority is determined, and its corresponding backend server is designated as the target server. The access request is then forwarded to the target server to complete the access operation. Therefore, if there is a large amount of routing policy information in an electronic device, it can be categorized and stored in folders and files. Retrieving and matching routing policies within these folders and files can effectively reduce the time spent on routing policy retrieval and matching, improve forwarding efficiency, shorten service response time, and solve the technical problem of long processing times for routing policy retrieval and matching. Attached Figure Description

[0052] The accompanying drawings, which are incorporated in and form a part of this specification, illustrate embodiments consistent with this disclosure and, together with the description, serve to explain the principles of this disclosure.

[0053] Figure 1 A flowchart illustrating an access processing method provided in an embodiment of this application;

[0054] Figure 2 A schematic diagram of a routing policy folder provided in an embodiment of this application;

[0055] Figure 3A flowchart illustrating another access processing method provided in an embodiment of this application;

[0056] Figure 4 This is a schematic diagram of the structure of an access processing device provided in an embodiment of this application;

[0057] Figure 5 A schematic diagram of another access processing apparatus provided in an embodiment of this application;

[0058] Figure 6 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application;

[0059] Figure 7 This is a block diagram of an electronic device provided in an embodiment of this application.

[0060] The accompanying drawings have illustrated specific embodiments of this disclosure, which will be described in more detail below. These drawings and descriptions are not intended to limit the scope of the concept in any way, but rather to illustrate the concepts of this disclosure to those skilled in the art through reference to particular embodiments. Detailed Implementation

[0061] Exemplary embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numbers in different drawings denote the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this disclosure.

[0062] In one example, access requests require routing policy information. In existing technologies, electronic devices store all routing policy information in a single configuration file. Based on identifiers such as the domain name, context root, request header fields, and URL parameters in the received access request, the system matches these identifiers with the routing policy information in the configuration file. If a match is found, the access request is forwarded to the backend server corresponding to the matched routing policy information to complete the access operation. However, in existing technologies, when the configuration file contains a large amount of routing policy information, the time spent on route policy retrieval and matching is considerable, resulting in low forwarding efficiency and consequently, a longer service response time.

[0063] This application provides an access processing method, apparatus, and device, which aims to solve the above-mentioned technical problems of the prior art.

[0064] The technical solution of this application and how the technical solution of this application solves the above-mentioned technical problems are described in detail below with specific embodiments. These specific embodiments can be combined with each other, and the same or similar concepts or processes may not be described again in some embodiments. The embodiments of this application will be described below with reference to the accompanying drawings.

[0065] Figure 1 This is a flowchart illustrating an access processing method provided in an embodiment of this application, as shown below. Figure 1 As shown, the method includes:

[0066] Step 101: Obtain the access request; the access request includes parameter information.

[0067] For example, the executing entity of this embodiment can be an electronic device, a terminal device, a sensitive word data processing device or apparatus, or other apparatus or apparatus capable of executing this embodiment, and there is no limitation thereto. In this embodiment, the executing entity is described as an electronic device.

[0068] First, based on the user's access operation, an access request can be obtained, which includes parameter information. These access parameters include any one or more of the following: domain name, context root, HTTP request header fields, and URL parameters. Furthermore, the domain name, context root, HTTP request header fields, and URL parameters all have a secondary priority setting, and these secondary priorities differ among the four.

[0069] In this step, the access request is obtained and parsed to determine the parameter information in the access request.

[0070] Step 102: Based on the access request, search for the target routing policy folder corresponding to the parameter information and the target routing policy file in the target routing policy folder among the multiple preset routing policy folders; wherein, the target routing policy folder contains multiple routing policy files, and each routing policy file contains multiple routing policy information.

[0071] For example, the routing policy folders are pre-configured based on parameter information. Each routing policy folder contains multiple policy files, and each policy file contains multiple routing policy information. Furthermore, there is a mapping relationship between the parameter information, the routing policy folders, and the routing policy files. Based on the access request, the electronic device can search for the target routing policy folder corresponding to the parameter information and the target routing policy file within the target routing policy folder according to this mapping relationship.

[0072] For example, a domain name corresponds to a domain routing policy folder, a context root corresponds to a context root routing policy folder, an HTTP request header field corresponds to an HTTP request header field routing policy folder, and a URL parameter corresponds to a URL parameter routing policy folder. The second priority level of the domain name is the first level, the second priority level of the context root is the second level, the second priority level of the HTTP request header field is the third level, and the second priority level of the URL parameter is the fourth level. Since the first level is the highest, the electronic device can use this mapping relationship to prioritize searching for the domain name routing policy folder corresponding to the parameter information "domain name" and the domain name routing policy file within that folder in the preset multiple routing policy folders. If the target routing policy file cannot be found based on the domain name, it will be determined sequentially based on the context root, HTTP request header field, and URL parameter until the target routing policy file is found.

[0073] Figure 2 This is a schematic diagram of a routing policy folder provided in an embodiment of this application, as shown below. Figure 2 As shown, this includes: a domain routing policy folder corresponding to the domain name, a domain-a file within the domain routing policy folder, and a domain-b file within the domain routing policy folder. Both the domain-a and domain-b files contain multiple routing policy information. During a search, if the domain name in the parameter information of the access request is "ab", the electronic device can search for the domain routing policy folder corresponding to the parameter information "domain name" and the "domain-a file" within the domain routing policy folder according to this mapping relationship among the preset multiple routing policy folders.

[0074] Step 103: In the target routing policy file, find at least one target routing policy information that matches the parameter information, wherein the target routing policy information includes a first priority.

[0075] For example, an electronic device can search for at least one target routing policy information that matches the parameter information in the target routing policy file according to a preset query algorithm. The target routing policy information includes a first priority. The preset query algorithm can be a binary search, etc., and is not limited thereto.

[0076] Step 104: From at least one target routing policy information, determine the target routing policy information corresponding to the highest priority first priority, and take the corresponding backend server as the target server. Forward the access request to the target server to complete the access operation.

[0077] For example, from at least one target routing policy information, the target routing policy information corresponding to the highest priority first priority is determined, and based on the preset mapping relationship between routing policy information and backend servers, the backend server corresponding to the selected target routing policy information corresponding to the highest priority first priority is taken as the target server, and the access request is forwarded to the target server to complete the access operation.

[0078] For example, if there is only one target routing policy, the backend server corresponding to the current target routing policy is directly selected as the target server, and the access request is forwarded to the target server to complete the access operation. Alternatively, if there are multiple target routing policies, the target routing policy with the highest priority is determined from among the multiple target routing policies. Based on the preset mapping relationship between routing policies and backend servers, the backend server corresponding to the selected target routing policy with the highest priority is selected as the target server, and the access request is forwarded to the target server to complete the access operation.

[0079] In this embodiment, an access request is obtained; the access request includes parameter information. Based on the access request, a target routing policy folder corresponding to the parameter information and a target routing policy file within the target routing policy folder are searched in a plurality of preset routing policy folders; wherein, the target routing policy folder contains multiple routing policy files, and each routing policy file contains multiple routing policy information. In the target routing policy file, at least one target routing policy information matching the parameter information is searched, wherein the target routing policy information includes a first priority. From the at least one target routing policy information, the target routing policy information corresponding to the highest priority is determined, and its corresponding backend server is used as the target server. The access request is forwarded to the target server to complete the access operation. In this scheme, the access request is parsed to determine the parameter information in the access request. Based on the access request, a target routing policy folder corresponding to the parameter information and a target routing policy file within the target routing policy folder are searched in a plurality of preset routing policy folders. At least one target routing policy information matching the parameter information is searched in the target routing policy file, and the target routing policy information includes a first priority. Finally, based on the first priority of the target routing policy information, the target routing policy information corresponding to the highest priority is determined, and its corresponding backend server is designated as the target server. The access request is then forwarded to the target server to complete the access operation. Therefore, if there is a large amount of routing policy information in an electronic device, it can be categorized and stored in folders and files. Retrieving and matching routing policies within these folders and files can effectively reduce the time spent on routing policy retrieval and matching, improve forwarding efficiency, shorten service response time, and solve the technical problem of long processing times for routing policy retrieval and matching.

[0080] Figure 3 A flowchart illustrating another access processing method provided in an embodiment of this application is shown below. Figure 3 As shown, the method includes:

[0081] Step 201: Obtain parameter information.

[0082] For example, the electronic device obtains parameter information, wherein the access parameters include any one or more of the following: domain name, context root, HTTP request header field, and URL parameter, and the domain name, context root, HTTP request header field, and URL parameter are all set with a second priority, and the second priorities of the four are different.

[0083] Step 202: In response to the folder configuration operation for parameter information, generate multiple routing policy folders.

[0084] For example, a user can perform a folder configuration operation on an electronic device based on parameter information, and in response to the folder configuration operation, the electronic device generates multiple routing policy folders.

[0085] Specifically, multiple domain name routing strategy folders can be generated based on the domain name in the parameter information; multiple context root routing strategy folders can be generated based on the context root in the parameter information; multiple HTTP request header field routing strategy folders can be generated based on the HTTP request header field in the parameter information; and multiple URL parameter routing strategy folders can be generated based on the URL parameter in the parameter information.

[0086] Step 203: In response to the file configuration operation, generate multiple routing policy files in each of the multiple routing policy folders.

[0087] For example, a user can perform a file configuration operation on an electronic device. In response to the file configuration operation, the electronic device generates multiple routing policy folders in each of the multiple routing policy folders.

[0088] Step 204: In response to the routing configuration operation, generate multiple routing policy information in each of the multiple routing policy files; wherein, the routing policy information includes the first priority of each routing policy information and the backend server corresponding to each routing policy information.

[0089] For example, the configuration file in the electronic device consists of routing policy information and backend server information. The routing policy information is divided into multiple folders based on types such as domain name-based routing, context root-based routing, HTTP request header field-based routing, and URL parameter-based routing. These folders include a domain name routing policy folder, a context root routing policy folder, an HTTP request header field-based routing policy folder, and a URL parameter-based routing policy folder. Each policy folder contains multiple routing policy files. Each routing policy file is named according to "policy type - uppercase / lowercase / number". Whenever a routing policy is set (including the policy's first priority, policy content, and corresponding backend server group name, where a lower first priority indicates higher priority, and this value is globally unique and cannot be repeated), it is written to the corresponding routing policy file after identifying the routing policy type and the first characters of the policy content.

[0090] In this step, the user can perform route configuration operations on the electronic device. In response to the route configuration operations, the electronic device generates multiple route policy folders in each of the multiple route policy files. When performing route configuration operations, the user needs to set the first priority level, policy content, and corresponding backend server for each route policy, so that the electronic device can obtain the route policy information.

[0091] Step 205: Generate and store the mapping relationship between parameter information and the routing policy folder and routing policy file.

[0092] For example, the electronic device generates a mapping relationship between parameter information, the routing policy folder, and the routing policy file, and stores the mapping relationship.

[0093] Step 206: In response to the editing operation for the second priority of the parameter information, generate the second priority order of the parameter information.

[0094] For example, users can customize the second priority of parameter information. In response to the editing operation on the second priority of parameter information, the electronic device generates a second priority order for the parameter information. For example, the generated second priority order is: second priority of domain name > second priority of context root > second priority of HTTP request header field > second priority of URL parameter, without any restrictions on the second priority order.

[0095] Step 207: Obtain the access request; wherein, the access request includes parameter information.

[0096] In one example, the parameter information includes one or more of the following: domain name, context root, HTTP request header fields, and URL parameters.

[0097] Among them, the domain name, context root, HTTP request header fields, and URL parameters have different second priorities.

[0098] For example, this step can be referred to Figure 1 Step 101 in the text will not be repeated here.

[0099] Step 208: Based on the access request, search for the target routing policy folder and the target routing policy file in the target routing policy folder that correspond to the parameter information with the highest second priority in the multiple preset routing policy folders; wherein, the target routing policy folder contains multiple policy files, and each policy file contains multiple routing policy information.

[0100] For example, since the domain name corresponds to the domain name routing policy folder, the context root corresponds to the context root routing policy folder, the HTTP request header field corresponds to the HTTP request header field routing policy folder, and the URL parameter corresponds to the URL parameter routing policy folder; the second priority of the domain name is the first level, the second priority of the context root is the second level, the second priority of the HTTP request header field is the third level, and the second priority of the URL parameter is the fourth level. Because the first level is the highest, the electronic device can use this mapping relationship to prioritize searching for the domain name routing policy folder corresponding to the parameter information "domain name" and the domain name routing policy file within that folder in a set of preset routing policy folders. If the target routing policy file cannot be found based on the domain name, it is determined sequentially based on the context root, the HTTP request header field, and the URL parameter until the target routing policy file is found.

[0101] Step 209: In the target routing policy file, find at least one target routing policy information that matches the parameter information, wherein the target routing policy information includes a first priority.

[0102] For example, this step can be referred to Figure 1 Step 103 in the text will not be repeated here.

[0103] Step 210: If there are multiple target routing policy information, select the target routing policy information corresponding to the highest priority first priority according to the first priority in each target routing policy information.

[0104] For example, if an electronic device matches multiple target routing policy information, it will combine the first priority of each target routing policy information to determine the target routing policy information corresponding to the highest first priority.

[0105] Step 211: Based on the preset mapping relationship between routing policy information and backend servers, the backend server corresponding to the target routing policy information with the highest priority selected is taken as the target server.

[0106] For example, based on the mapping relationship between preset routing policy information and backend servers, the electronic device determines the backend server corresponding to the target routing policy information with the highest first priority as the target server, forwards the access request to the target server, and thus completes the access operation.

[0107] Step 212: Forward the access request to the target server to complete the access operation.

[0108] For example, if only a single target routing policy is matched, the electronic device will directly forward the single target routing policy to the corresponding target server; or, if multiple target routing policies are matched, the electronic device will forward the access request to the backend server corresponding to the target routing policy with the highest priority.

[0109] In this embodiment, parameter information is obtained. In response to a folder configuration operation for the parameter information, multiple routing policy folders are generated. In response to a file configuration operation, multiple routing policy files are generated in each of the multiple routing policy folders. In response to a routing configuration operation, multiple routing policy information is generated in each of the multiple routing policy files; wherein, the routing policy information includes a first priority for each routing policy information and a backend server corresponding to each routing policy information. A mapping relationship between the parameter information, the routing policy folders, and the routing policy files is generated and stored. In response to an edit operation for the second priority of the parameter information, a second priority order of the parameter information is generated. An access request is obtained; wherein, the access request includes the parameter information. Based on the access request, a target routing policy folder corresponding to the parameter information with the highest second priority and a target routing policy file within the target routing policy folder are searched in the multiple preset routing policy folders; wherein, the target routing policy folder contains multiple policy files, and each policy file contains multiple routing policy information. In the target routing policy file, at least one target routing policy information matching the parameter information is searched, wherein the target routing policy information includes a first priority. If there are multiple target routing policy information entries, the target routing policy information with the highest priority among them is selected. Based on the preset mapping relationship between routing policy information and backend servers, the backend server corresponding to the selected target routing policy information with the highest priority is designated as the target server. The access request is then forwarded to the target server to complete the access operation. Therefore, if there is a large amount of routing policy information in an electronic device, the routing policy information can be categorized and stored in folders and files. Retrieving and matching routing policies within these folders and files can effectively reduce the time spent on routing policy retrieval and matching, improve forwarding efficiency, shorten service response time, and solve the technical problem of long processing times for routing policy retrieval and matching.

[0110] Figure 4 This is a schematic diagram of the structure of an access processing device provided in an embodiment of this application, as shown below. Figure 4 As shown, the device includes:

[0111] The first acquisition unit 31 is used to acquire an access request; wherein the access request includes parameter information.

[0112] The lookup unit 32 is used to search for the target routing policy folder corresponding to the parameter information and the target routing policy file in the target routing policy folder based on the access request; wherein the target routing policy folder contains multiple routing policy files, and each routing policy file contains multiple routing policy information.

[0113] The matching unit 33 is used to search for at least one target routing policy information that matches the parameter information in the target routing policy file; wherein the target routing policy information includes a first priority.

[0114] The determining unit 34 is used to determine the target routing policy information corresponding to the highest priority first priority from at least one target routing policy information, and to take the corresponding backend server as the target server.

[0115] Forwarding unit 35 is used to forward access requests to the target server to complete the access operation.

[0116] The apparatus in this embodiment can execute the technical solutions in the above method. Its specific implementation process and technical principles are the same, and will not be repeated here.

[0117] Figure 5 This is a schematic diagram of another access processing device provided in an embodiment of this application. Figure 4 Based on the illustrated embodiments, as Figure 5 As shown, the parameter information includes any one or more of the following:

[0118] Domain name, context root, HTTP request header fields, URL parameters;

[0119] Among them, the domain name, context root, HTTP request header fields, and URL parameters have different second priorities.

[0120] In one example, cell 32 is used specifically for:

[0121] Based on the access request, search for the target routing policy folder and the target routing policy file in the target routing policy folder that correspond to the parameter information with the second highest priority in multiple preset routing policy folders.

[0122] In one example, unit 34 is defined as including:

[0123] The selection module 341 is used to select the target routing policy information corresponding to the highest priority first priority according to the first priority in each target routing policy information if there are multiple target routing policy information.

[0124] The determination module 342 is used to determine the backend server corresponding to the target routing policy information with the highest priority as the target server based on the mapping relationship between the preset routing policy information and the backend server.

[0125] In one example, the device also includes:

[0126] Editing unit 41 is used to generate a second priority order of parameter information in response to an editing operation on the second priority of parameter information.

[0127] In one example, the device also includes:

[0128] The second acquisition unit 42 is used to acquire parameter information.

[0129] The first configuration unit 43 is used to generate multiple routing policy folders in response to folder configuration operations for parameter information.

[0130] The second configuration unit 44 is used to generate multiple routing policy files in each of the multiple routing policy folders in response to a file configuration operation.

[0131] The third configuration unit 45 is used to generate multiple routing policy information in each of the multiple routing policy files in response to the routing configuration operation; wherein the routing policy information includes the first priority of each routing policy information and the backend server corresponding to each routing policy information.

[0132] The generation unit 46 is used to generate and store the mapping relationship between parameter information and the routing policy folder and routing policy file.

[0133] The apparatus in this embodiment can execute the technical solutions in the above method. Its specific implementation process and technical principles are the same, and will not be repeated here.

[0134] Figure 6 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application, such as... Figure 6 As shown, the electronic device includes: a memory 51 and a processor 52.

[0135] The memory 51 stores a computer program that can run on the processor 52.

[0136] Processor 52 is configured to perform the methods provided in the embodiments described above.

[0137] The electronic device also includes a receiver 53 and a transmitter 54. The receiver 53 is used to receive instructions and data sent by an external device, and the transmitter 54 is used to send instructions and data to an external device.

[0138] Figure 7 This is a block diagram of an electronic device provided in an embodiment of this application. The electronic device may be a mobile phone, computer, digital broadcasting terminal, messaging device, game console, tablet device, medical device, fitness equipment, personal digital assistant, etc.

[0139] The device 600 may include one or more of the following components: a processing component 602, a memory 604, a power supply component 606, a multimedia component 608, an audio component 610, an input / output (I / O) interface 612, a sensor component 614, and a communication component 616.

[0140] Processing component 602 typically controls the overall operation of device 600, such as operations associated with display, telephone calls, data communication, camera operation, and recording. Processing component 602 may include one or more processors 620 to execute instructions to perform all or part of the steps of the methods described above. Furthermore, processing component 602 may include one or more modules to facilitate interaction between processing component 602 and other components. For example, processing component 602 may include a multimedia module to facilitate interaction between multimedia component 608 and processing component 602.

[0141] Memory 604 is configured to store various types of data to support the operation of device 600. Examples of such data include instructions for any application or method operating on device 600, contact data, phonebook data, messages, pictures, videos, etc. Memory 604 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic storage, flash memory, magnetic disk, or optical disk.

[0142] Power supply component 606 provides power to the various components of device 600. Power supply component 606 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to device 600.

[0143] Multimedia component 608 includes a screen that provides an output interface between device 600 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touchscreen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensors may sense not only the boundaries of touch or swipe actions but also the duration and pressure associated with the touch or swipe operation. In some embodiments, multimedia component 608 includes a front-facing camera and / or a rear-facing camera. When device 600 is in an operating mode, such as a shooting mode or a video mode, the front-facing camera and / or rear-facing camera may receive external multimedia data. Each front-facing camera and rear-facing camera may be a fixed optical lens system or have focal length and optical zoom capabilities.

[0144] Audio component 610 is configured to output and / or input audio signals. For example, audio component 610 includes a microphone (MIC) configured to receive external audio signals when device 600 is in an operating mode, such as call mode, recording mode, and voice recognition mode. The received audio signals may be further stored in memory 604 or transmitted via communication component 616. In some embodiments, audio component 610 also includes a speaker for outputting audio signals.

[0145] I / O interface 612 provides an interface between processing component 602 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to, home buttons, volume buttons, power buttons, and lock buttons.

[0146] Sensor assembly 614 includes one or more sensors for providing state assessments of various aspects of device 600. For example, sensor assembly 614 may detect the on / off state of device 600, the relative positioning of components such as the display and keypad of device 600, changes in the position of device 600 or a component of device 600, the presence or absence of user contact with device 600, the orientation or acceleration / deceleration of device 600, and temperature changes of device 600. Sensor assembly 614 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. Sensor assembly 614 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, sensor assembly 614 may also include an accelerometer, a gyroscope, a magnetometer, a pressure sensor, or a temperature sensor.

[0147] Communication component 616 is configured to facilitate wired or wireless communication between device 600 and other devices. Device 600 can access wireless networks based on communication standards, such as WiFi, 2G, or 3G, or combinations thereof. In one exemplary embodiment, communication component 616 receives broadcast signals or broadcast-related information from an external broadcast management system via a broadcast channel. In one exemplary embodiment, communication component 616 also includes a near-field communication (NFC) module to facilitate short-range communication. For example, the NFC module may be implemented based on radio frequency identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.

[0148] In an exemplary embodiment, the apparatus 600 may be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field-programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components to perform the methods described above.

[0149] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 604 including instructions, which can be executed by a processor 620 of the device 600 to perform the above-described method. For example, the non-transitory computer-readable storage medium may be a ROM, random access memory (RAM), CD-ROM, magnetic tape, floppy disk, and optical data storage device, etc.

[0150] This application also provides a non-transitory computer-readable storage medium, which, when the instructions in the storage medium are executed by the processor of an electronic device, enables the electronic device to perform the methods provided in the above embodiments.

[0151] This application also provides a computer program product, which includes: a computer program stored in a readable storage medium, at least one processor of an electronic device can read the computer program from the readable storage medium, and the at least one processor executes the computer program to cause the electronic device to perform the solution provided in any of the above embodiments.

[0152] Other embodiments of this disclosure will readily occur to those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of this disclosure that follow the general principles of this disclosure and include common knowledge or customary techniques in the art not disclosed herein. The specification and examples are to be considered exemplary only, and the true scope and spirit of this disclosure are indicated by the following claims.

[0153] It should be understood that this disclosure is not limited to the precise structures described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from its scope. The scope of this disclosure is limited only by the appended claims.

Claims

1. An access processing method, characterized in that, include: Obtain an access request; wherein the access request includes parameter information; the parameter information includes any one or more of the following: domain name, context root, HTTP request header field, and URL parameter; wherein the domain name, the context root, the HTTP request header field, and the URL parameter have different second priorities; Based on the access request, the system searches for the target routing policy folder corresponding to the parameter information with the highest second priority in multiple preset routing policy folders, as well as the target routing policy file in the target routing policy folder; wherein, the target routing policy folder contains multiple routing policy files, and each routing policy file contains multiple routing policy information. In the target routing policy file, at least one target routing policy information that matches the parameter information is searched; wherein, the target routing policy information includes a first priority; From the at least one target routing policy information, determine the target routing policy information corresponding to the highest priority first priority, and use its corresponding backend server as the target server. Forward the access request to the target server to complete the access operation.

2. The method according to claim 1, characterized in that, The step of determining the target routing policy information corresponding to the highest priority (first priority) from the at least one target routing policy information, and using its corresponding backend server as the target server, includes: If there are multiple target routing policy information, then the target routing policy information corresponding to the highest priority among the first priority information is selected according to the first priority in each target routing policy information. Based on the pre-defined mapping relationship between routing policy information and backend servers, the backend server corresponding to the target routing policy information with the highest priority is selected as the target server.

3. The method according to claim 1, characterized in that, The method further includes: In response to an edit operation targeting the second priority of the parameter information, a second priority order of the parameter information is generated.

4. The method according to any one of claims 1-3, characterized in that, The method further includes: Obtain parameter information; In response to the folder configuration operation for the parameter information, multiple routing policy folders are generated; In response to the file configuration operation, multiple routing policy files are generated in each of the multiple routing policy folders; In response to a routing configuration operation, multiple routing policy information is generated in each of the multiple routing policy files; wherein, the routing policy information includes a first priority of each routing policy information and a backend server corresponding to each routing policy information; Generate and store the mapping relationship between the parameter information, the routing policy folder, and the routing policy file.

5. An access processing apparatus, said access processing apparatus being used to implement the access processing method according to any one of claims 1-4, characterized in that, include: An acquisition unit is used to acquire an access request; wherein the access request includes parameter information; The search unit is used to search for the target routing policy folder corresponding to the parameter information and the target routing policy file in the target routing policy folder based on the access request; wherein the target routing policy folder contains multiple routing policy files, and each routing policy file contains multiple routing policy information. A matching unit is configured to search for at least one target routing policy information that matches the parameter information in the target routing policy file; wherein the target routing policy information includes a first priority. The determining unit is used to determine the target routing policy information corresponding to the highest priority first priority from the at least one target routing policy information, and to take the corresponding backend server as the target server. The forwarding unit is used to forward the access request to the target server to complete the access operation.

6. An electronic device, characterized in that, The method includes a memory and a processor, wherein the memory stores a computer program that can run on the processor, and the processor executes the computer program to implement the method of any one of claims 1-4.

7. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer-executable instructions, which, when executed by a processor, are used to implement the method as described in any one of claims 1-4.

8. A computer program product, characterized in that, Includes a computer program that, when executed by a processor, implements the method of any one of claims 1-4.

Citation Information

Patent Citations

  • Flow management method and device for micro-service request, server and storage medium

    CN111600930A

  • Request scheduling method and device, computer equipment and storage medium

    CN114615336A