Application program request processing method and device based on proxy service, equipment and medium

The client request information is mapped and processed through proxy services, which solves the problem of distinguishing different client requests, realizes the server's accurate identification and secure isolation of client requests, and improves data statistics and security.

CN119225952APending Publication Date: 2024-12-31GUANGZHOU SANQI DREAM NETWORK TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411115913.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-14
Publication Date
2024-12-31

AI Technical Summary

Technical Problem

The existing technology cannot effectively distinguish requests from different clients, resulting in the server being unable to accurately count the backend data of each client, and the security vulnerability of one application will affect the security of other applications.

Method used

The client's request information is mapped through the proxy service, and the request information is converted into the corresponding mapping information using the mapping configuration file, and sent it to the target service layer of the application server, and the return result is received and processed to ensure that the response information is accurately returned to the client. to achieve different requests for different clients.

Benefits of technology

Without affecting the client's functions, the similarity of request information between each client is reduced, so that the server can accurately distinguish network requests from different clients, and improve security and data statistics accuracy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119225952A_ABST
    Figure CN119225952A_ABST
Patent Text Reader

Abstract

The invention discloses an application program request processing method and device based on proxy service, equipment and a medium, and belongs to the technical field of Internet. The method is executed by a proxy server, and the proxy server is configured with a mapping configuration file. The method comprises the following steps: receiving request information sent by a client; determining mapping information corresponding to the request information according to the mapping configuration file, and sending the mapping information to a target service layer of an application server; receiving a return result of the target service layer, and determining response information corresponding to the return result according to the mapping configuration file; and returning the response information to the client. According to the technical scheme, the request information of the client can be mapped through the proxy service, and then the similar function requests of different clients can be distinguished under the condition that the functions of the clients are not influenced, so that the similarity of the request information among the clients is reduced, and the server can accurately distinguish the network requests of the different clients.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of Internet technology, and specifically relates to an application request processing method, device, equipment and medium. Background Art

[0002] The data interaction between the application and the server can help the application realize various functional requirements. During this process, the server can provide the application with necessary logic processing, resource storage, update iteration and other services to ensure that the application can run stably.

[0003] At present, in order to reduce development costs, when multiple applications need to access the same data resources or perform similar functions, they will use the same set of server interfaces to ensure data consistency and standardization. However, the server cannot distinguish the client's requests, which affects the server's statistics of each client's background data. In addition, when one application has a security vulnerability, the security of other applications will also be threatened.

[0004] Therefore, how to achieve the distinction between various client interfaces is a technical problem that needs to be solved urgently by those skilled in the art. Summary of the invention

[0005] The purpose of the embodiments of the present application is to provide an application request processing method, device, equipment and medium based on a proxy service, which can map the client's request information through the proxy service, and then distinguish similar function requests from different clients without affecting the client function, which is beneficial to reducing the similarity of request information between clients and enabling the server to accurately distinguish network requests from different clients.

[0006] In a first aspect, an embodiment of the present application provides a method for processing an application request based on a proxy service, the method being executed by a proxy server, the proxy server being configured with a mapping configuration file; the method comprising:

[0007] Receive request information from the client;

[0008] Determine mapping information corresponding to the request information according to the mapping configuration file, and send the mapping information to the target business layer of the application server;

[0009] Receive a return result from the target business layer, and determine corresponding response information of the return result according to the mapping configuration file;

[0010] The response information is returned to the client.

[0011] Further, determining the mapping information corresponding to the request information according to the mapping configuration file, and sending the mapping information to the target business layer of the application server includes:

[0012] Obtaining the proxy address in the request information;

[0013] The mapping configuration file is used to restore the proxy address to an actual address, and the target business layer of the application server is accessed according to the actual address.

[0014] Further, the determining the mapping information corresponding to the request information according to the mapping configuration file and sending the mapping information to the target business layer of the application server also includes:

[0015] Obtaining request parameters in the request information;

[0016] The mapping configuration file is used to determine the actual parameters corresponding to the request parameters, and the actual parameters are used to access the target business layer of the application server according to the actual address.

[0017] Further, receiving the return result of the target business layer, and determining the corresponding response information of the return result according to the mapping configuration file, including:

[0018] Receive the return result of the target business layer;

[0019] Decomposing the returned result to obtain the returned parameter;

[0020] The mapping configuration file is used to obtain response information corresponding to the return parameter.

[0021] In a second aspect, an embodiment of the present application provides a method for processing an application request based on a proxy service, the method being executed by an application request system; the method comprising:

[0022] Creating mapping information for at least one client; wherein the mapping information includes: a proxy address corresponding to an actual address requested for access, request parameters corresponding to actual parameters requested for access, and response information corresponding to return parameters of the request;

[0023] Building a mapping configuration file based on the mapping information;

[0024] The mapping configuration file is synchronized to the proxy server.

[0025] Furthermore, the method further comprises:

[0026] If a mapping information update event is identified, modifying the mapping information of the mapping configuration file according to the mapping information update event;

[0027] The modified mapping configuration file is synchronized to the proxy server.

[0028] In a third aspect, an embodiment of the present application provides an application request processing device based on a proxy service, wherein the device is configured on a proxy server, and the proxy server is configured with a mapping configuration file; the device comprises:

[0029] A request information receiving module, used for receiving request information sent by a client;

[0030] A mapping information sending module, used to determine the mapping information corresponding to the request information according to the mapping configuration file, and send the mapping information to the target business layer of the application server;

[0031] A response information determination module, configured to receive a return result from the target business layer and determine corresponding response information of the return result according to the mapping configuration file;

[0032] A response information sending module is used to return the response information to the client.

[0033] In a fourth aspect, an embodiment of the present application provides an application request processing device based on a proxy service, wherein the device is configured in an application request system; the device comprises:

[0034] A mapping information creation module, used to create mapping information for at least one client; wherein the mapping information includes: a proxy address corresponding to an actual address requested for access, request parameters corresponding to actual parameters requested for access, and response information corresponding to return parameters of the request;

[0035] A mapping configuration file building module, used to build a mapping configuration file based on the mapping information;

[0036] The mapping configuration file synchronization module is used to synchronize the mapping configuration file to the proxy server.

[0037] In a fifth aspect, an embodiment of the present application provides an electronic device, which includes a processor, a memory, and a program or instruction stored in the memory and executable on the processor, wherein the program or instruction, when executed by the processor, implements the steps of the method described in the first and second aspects.

[0038] In a sixth aspect, an embodiment of the present application provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, the steps of the method described in the first aspect and the second aspect are implemented.

[0039] In the seventh aspect, an embodiment of the present application provides a chip, comprising a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the methods described in the first and second aspects.

[0040] In an embodiment of the present application, the method is executed by a proxy server, and the proxy server is configured with a mapping configuration file; the method includes: receiving request information sent by a client; determining mapping information corresponding to the request information according to the mapping configuration file, and sending the mapping information to the target business layer of the application server; receiving the return result of the target business layer, and determining the corresponding response information of the return result according to the mapping configuration file; and returning the response information to the client. Through the above-mentioned method of application request processing based on a proxy service, the client's request information can be mapped through the proxy service, and then the distinction between similar function requests of different clients can be achieved without affecting the client function, which is conducive to reducing the similarity of request information between clients, so that the server can accurately distinguish network requests of different clients. BRIEF DESCRIPTION OF THE DRAWINGS

[0041] Figure 1 It is a flowchart of an application request processing method based on a proxy service provided in Example 1 of the present application;

[0042] Figure 2 This is a schematic diagram of a request processing method for a game APP provided in Example 1 of the present application;

[0043] Figure 3 It is a flowchart of an application request processing method based on a proxy service provided in Example 2 of the present application;

[0044] Figure 4 It is a flowchart of an application request processing method based on a proxy service provided in Example 3 of the present application;

[0045] Figure 5 It is a flowchart of an application request processing method based on a proxy service provided in Embodiment 4 of the present application;

[0046] Figure 6 It is a flowchart of a method for processing application requests based on a proxy service provided in Embodiment 5 of the present application;

[0047] Figure 7 It is a flowchart of a method for processing application requests based on a proxy service provided in Example 6 of the present application;

[0048] Figure 8It is a structural diagram of an application request processing device based on a proxy service provided in Embodiment 7 of the present application;

[0049] Fig. 9 It is a structural diagram of an application request processing device based on a proxy service provided in Embodiment 8 of the present application;

[0050] Fig.10 It is a structural diagram of an electronic device provided in Example 9 of the present application. DETAILED DESCRIPTION

[0051] In order to make the purpose, technical scheme and advantages of the present application clearer, the specific embodiments of the present application are further described in detail below in conjunction with the accompanying drawings. It is understood that the specific embodiments described herein are only used to explain the present application, rather than to limit the present application. It should also be noted that, for the convenience of description, only the part related to the present application but not all the contents are shown in the accompanying drawings. Before discussing the exemplary embodiments in more detail, it should be mentioned that some exemplary embodiments are described as processes or methods depicted as flow charts. Although the flow chart describes each operation (or step) as a sequential process, many of the operations therein can be implemented in parallel, concurrently or simultaneously. In addition, the order of each operation can be rearranged. The process can be terminated when its operation is completed, but it can also have additional steps not included in the accompanying drawings. The process can correspond to a method, a function, a procedure, a subroutine, a subprogram, etc.

[0052] The following will be combined with the drawings in the embodiments of the present application to clearly describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all the embodiments. All other embodiments obtained by ordinary technicians in this field based on the embodiments in the present application belong to the scope of protection of this application.

[0053] The terms "first", "second", etc. in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than those illustrated or described here, and the objects distinguished by "first", "second", etc. are generally of one type, and the number of objects is not limited. For example, the first object can be one or more. In addition, "and / or" in the specification and claims represents at least one of the connected objects, and the character " / " generally indicates that the objects associated with each other are in an "or" relationship.

[0054] In conjunction with the accompanying drawings, a method, apparatus, device and medium for processing application requests based on a proxy service provided by an embodiment of the present application are described in detail through specific embodiments and their application scenarios.

[0055] Embodiment 1

[0056] Figure 1 1 is a flow chart of a method for processing application requests based on a proxy service provided in the first embodiment of the present application. Figure 1 As shown, the specific steps include:

[0057] The method is performed by a proxy server, and the proxy server is configured with a mapping configuration file;

[0058] S101, receiving request information sent by the client;

[0059] The application scenario of this solution may be a scenario of converting a user request into mapping information that the business layer can respond to.

[0060] Based on the above scenario, it can be understood that the executor of this scenario can be a proxy server that identifies and converts user requests, such as a desktop computer, a laptop computer, a tablet computer, and an interactive multimedia device, etc., and no excessive limitations are made here.

[0061] The proxy server can be a network communication intermediary that can configure mapping addresses for multiple clients, forward client request information to the server, and forward the server's return response to the client. For example, OpenResty API Gateway Service, a high-performance Web platform based on Nginx and Lua scripts, is particularly suitable for implementing API gateway functions and can handle complex dynamic content generation, access control, traffic routing and other tasks.

[0062] The client can be a program that corresponds to the server and provides local services to customers. It is usually installed on an ordinary client, accepts the control and management of the network server, and can share various resources on the network.

[0063] Request information can be a request instruction sent by the client to the server that needs to cooperate with the server to realize the application function. For example, a user sends a login, recharge, etc. request in a game application.

[0064] In this solution, if there are multiple clients, the request information sent by each client for the same required function is different. For example, the login request sent by client 1 is proxy1.com / login, and the login request sent by client 2 is proxy2.com / signin. The request information can be in the form of a domain name, address, and parameters, etc., and there are no excessive restrictions here.

[0065] The method of receiving the request information sent by the client may be that the user generates the request information through the client, the client encodes the request information and sends it to the proxy server, and the proxy server receives and decodes the request information.

[0066] S102, determining mapping information corresponding to the request information according to the mapping configuration file, and sending the mapping information to the target business layer;

[0067] The mapping configuration file may be a file that records the correspondence between the request information and the mapping information. By referring to the mapping configuration file, the mapping information corresponding to the request information may be obtained.

[0068] The mapping information may be information corresponding to the request information of the client and identifiable by the server. In this solution, the mapping information for implementing a specific function may be configured with multiple request information in different forms, which are applied to multiple clients respectively, thereby realizing the distinction of the clients.

[0069] The target service layer may be a plurality of service layers in the server to realize different functional requirements, such as a login service layer, a recharge service layer, etc. Among them, the service layer that can realize the functional requirements of the mapping information is the target service layer.

[0070] The mapping information corresponding to the request information may be determined by comparing the acquired request information with the mapping configuration file, and obtaining the information content associated with the record in the mapping configuration file that has the highest matching degree with the request information as the mapping information corresponding to the request information.

[0071] The mapping information may be sent to the target service layer by determining the target service layer according to the actual address in the mapping information corresponding to the address information that the client needs to access in the request information, and sending the mapping information along the path of the actual address.

[0072] S103, receiving a return result from the target business layer, and determining corresponding response information of the return result according to the mapping configuration file;

[0073] The return result can be the result of the target business layer processing the request of the user end. For example, the login business layer verifies the user account and password in the login request, and returns "yes" if the verification is correct; otherwise, it returns "incorrect".

[0074] The response information may be a form that can be understood by the client obtained by mapping the access result of the server.

[0075] The response information corresponding to the returned result may be determined by comparing the returned result with the mapping configuration file, and obtaining the information content associated with the record with the highest matching degree with the returned result in the mapping configuration file as the response information corresponding to the returned result.

[0076] S104: Return the response information to the client.

[0077] The method of returning the response information to the client may be to return the response information corresponding to the return result of the target business layer to the client that sent the request information after determining the response information corresponding to the return result of the target business layer. For example, for a user's recharge request, a recharge success prompt message and the increased amount of virtual currency are returned to the client as response information.

[0078] For example, taking the game APP as an example, Figure 2 This is a diagram of the request processing method of the game APP, such as Figure 2 As shown, the system administrator configures the proxy mapping relationship in advance through the gateway proxy service background, and creates a mapping configuration file. The gateway proxy service background synchronizes the mapping configuration file to the gateway proxy service. When user 1 opens the game APP1, the login, registration, and recharge operations performed in APP1 will generate corresponding request information from APP1, and configure the request parameters of APP1 and send it to the gateway proxy service. The gateway proxy service obtains the mapping information of the request information according to the mapping configuration file, and forwards the mapping information to the corresponding business layer of the server. After the business layer responds to the mapping information, it returns the corresponding result to the gateway proxy service. The gateway proxy service obtains the response information corresponding to the returned result according to the mapping configuration file, and returns the response information to APP1. Similarly, when user 2 uses the game APP2, the processing flow of the request information is consistent with APP1. It can be understood that in this process, the proxy address, request parameters contained in the request information generated by APP1 and APP2, and the response information returned to APP1 and APP2 are all different, but the mapping information corresponding to the same type of request information (for example, both are login APP) of APP1 and APP2 is consistent with the returned result.

[0079] In an embodiment of the present application, the method is executed by a proxy server, and the proxy server is configured with a mapping configuration file; the method includes: receiving request information sent by a client; determining mapping information corresponding to the request information according to the mapping configuration file, and sending the mapping information to the target business layer of the application server; receiving the return result of the target business layer, and determining the corresponding response information of the return result according to the mapping configuration file; and returning the response information to the client. Through the above-mentioned method of application request processing based on a proxy service, the client's request information can be mapped through the proxy service, and then the distinction between similar function requests of different clients can be achieved without affecting the client function, which is conducive to reducing the similarity of request information between clients, so that the server can accurately distinguish network requests of different clients.

[0080] Embodiment 2

[0081] Figure 3 It is a flow chart of the application request processing method based on proxy service provided in the second embodiment of the present application. This solution makes a better improvement on the above embodiment, and the specific improvement is: the mapping information corresponding to the request information is determined according to the mapping configuration file, and the mapping information is sent to the target business layer of the application server, including: obtaining the proxy address in the request information; using the mapping configuration file to restore the proxy address to the actual address, and accessing the target business layer of the application server according to the actual address.

[0082] like Figure 3 As shown, specifically including the following:

[0083] S301, receiving request information sent by the client;

[0084] S302, obtaining the proxy address in the request information;

[0085] The proxy address can be the function request access address configured by the proxy server for the client. In this solution, the proxy server can configure multiple proxy addresses for the actual address, which are used by different clients to access the actual address. When the client accesses the actual address, it first needs to send the proxy address to the proxy server, and the proxy server accesses the actual address according to the configuration relationship of the proxy address in the mapping configuration file.

[0086] The proxy address can be obtained by the proxy server identifying the request information after receiving the request information from the client and extracting the address information therein as the proxy address.

[0087] S303, using the mapping configuration file to restore the proxy address to the actual address, and accessing the target business layer of the application server according to the actual address;

[0088] The actual address may be address information of a business layer that can implement functions related to the requested information.

[0089] The proxy address can be restored to the actual address by traversing the mapping configuration file, searching for the storage information that is consistent with the proxy address, and obtaining the actual address associated with the storage information. For example, when application a logs in, it requests to log in to proxy1.com / login, and when application b logs in, it requests to log in to proxy2.com / signin. Application a and application b are not associated at the network request interface address level. When the proxy service receives the interface request, it will query the background mapping configuration file, and the login address proxy1.com / login of application a and the login address proxy2.com / signin of application b will be restored to the actual business login address my.37.com / loginAccount.

[0090] The method for accessing the target business layer of the application server is that the proxy server can resolve the domain name according to the actual address identification protocol, domain name, path and other information, find the corresponding IP address, establish a connection with the server according to the address, and send a request to the corresponding business layer of the server.

[0091] S304, receiving the return result of the target business layer, and determining the corresponding response information of the return result according to the mapping configuration file;

[0092] S305: Return the response information to the client.

[0093] The benefit of this setting is that the proxy address can be restored to the actual address for access, while ensuring that the applications are independent of each other, ensuring the accuracy of the client access address, which is conducive to accurate response to client requests.

[0094] Embodiment 3

[0095] Figure 4It is a flowchart of the application request processing method based on proxy service provided in the third embodiment of the present application. This solution makes a better improvement on the above embodiment, and the specific improvement is: the mapping information corresponding to the request information is determined according to the mapping configuration file, and the mapping information is sent to the target business layer of the application server, and it also includes: obtaining the request parameters in the request information; using the mapping configuration file to determine the actual parameters corresponding to the request parameters, and accessing the target business layer of the application server according to the actual address.

[0096] like Figure 4 As shown, specifically including the following:

[0097] S401, receiving request information sent by the client;

[0098] S402, obtaining request parameters in the request information;

[0099] The request parameters may be parameter information required to implement the functional requirements. For example, if login is required, the request parameters may include a user name and password.

[0100] The method of obtaining the request parameters may be to determine the parameter type required to respond to the request according to the type of the user request, and extract the parameters of this type from the request information as the request parameters.

[0101] S403, using the mapping configuration file to determine the actual parameters corresponding to the request parameters, and using the actual parameters to access the target business layer of the application server according to the actual address;

[0102] The actual parameters may be the parameter types that the business layer can recognize and process when responding to user requests.

[0103] The method for determining the actual parameter corresponding to the request parameter may be to traverse the mapping configuration file, obtain the parameter type of the actual parameter associated with the parameter type consistent with the request parameter, and replace the parameter content of the request parameter with the parameter type corresponding to the actual parameter. For example, the request parameter of application a is account number: 123456, and the request parameter of application b is user name: 234567. If the actual parameter corresponding to the account number and user name in the mapping configuration file is ID, then the actual parameter of application a is ID: 123456, and the actual parameter of application b is ID: 234567.

[0104] The target business layer of the application server may be accessed by establishing a connection with the target business layer of the application server through an actual address and then sending actual parameters to the target business layer.

[0105] S404, receiving a return result from the target business layer, and determining corresponding response information of the return result according to the mapping configuration file;

[0106] S405: Return the response information to the client.

[0107] The advantage of this setting of the scheme is that the request parameters can be restored to actual parameters and sent to the target business layer. While ensuring that the parameter information of each client is not associated, it can avoid the request parameters not being recognized by the server, resulting in no response to the request information and other problems affecting the user experience.

[0108] Embodiment 4

[0109] Figure 5 It is a flow chart of the application request processing method based on proxy service provided in the fourth embodiment of the present application. This solution makes a better improvement on the above embodiment, and the specific improvement is: receiving the return result of the target business layer, and determining the corresponding response information of the return result according to the mapping configuration file, including: receiving the return result of the target business layer; formatting the return result to obtain the return parameter; using the mapping configuration file to obtain the response information corresponding to the return parameter.

[0110] like Figure 5 As shown, specifically including the following:

[0111] S501, receiving request information sent by the client;

[0112] S502, determining mapping information corresponding to the request information according to the mapping configuration file, and sending the mapping information to the target business layer;

[0113] S503, receiving the return result of the target business layer;

[0114] S504, formatting the returned result to obtain return parameters;

[0115] The way to format the returned result is that the response result of the target business layer to the mapping information is often presented in a data structure in JSON format, so the format needs to be disassembled, that is, traversing the data structure, extracting the keys and values ​​therein, and correspondingly using them as return parameters. For example, in response to the user's recharge request, the key: virtual currency and the corresponding value: 50000 are extracted from the returned result, and the return parameter is virtual currency: 50000. Among them, JSON format can be a lightweight data exchange format. The simple and clear hierarchical structure of JSON data makes it easy to be parsed and generated by most programming languages, so JSON has become one of the ideal formats for network transmission data. The data structure in JSON format mainly consists of two structures: objects (represented as an unordered set of key-value pairs in JSON, and the key in each key-value pair is a string) and arrays (represented as an ordered list of values ​​in JSON, and each value in the array can be a string, a number, an object, an array, or a Boolean value, etc.).

[0116] S505, using the mapping configuration file to obtain response information corresponding to the return parameter;

[0117] The way to obtain the response information corresponding to the return parameter can be to traverse the mapping configuration file, obtain the response information corresponding to the parameter type consistent with the return parameter, and replace the response information with the content of the return parameter. For example, if the response information corresponding to the return parameter virtual currency in the mapping configuration file is DRACO coin, then the response information corresponding to the return parameter virtual currency: 50000 is DRACO coin increased by 50000.

[0118] S506: Return the response information to the client.

[0119] The advantage of this arrangement of the scheme is that when the response result of the request information is returned, the return result can be converted into response information, so as to avoid the problem that the client cannot recognize the return result and causes no response to the request information.

[0120] Embodiment 5

[0121] Figure 6 This is a flowchart of the proxy service-based application request processing method provided in Example 5 of the present application. This solution makes a better improvement on the above-mentioned embodiment, and the specific improvement is: the method is executed by the application request system; the method includes: creating mapping information for at least one client; wherein the mapping information includes: the proxy address corresponding to the actual address requested for access, the request parameters corresponding to the actual parameters requested for access, and the response information corresponding to the return parameters of the request; constructing a mapping configuration file based on the mapping information; synchronizing the mapping configuration file to the proxy server.

[0122] like Figure 6 As shown, specifically including the following:

[0123] S601, creating mapping information for at least one client; wherein the mapping information includes: a proxy address corresponding to an actual address requested for access, request parameters corresponding to actual parameters requested for access, and response information corresponding to return parameters of the request;

[0124] The mapping information can be created by staff counting clients that use the same set of server interfaces, setting different proxy addresses, request parameters, and response information for each client, and associating each client's proxy address, request parameters, and response information with the server's actual address, actual parameters, and return parameters.

[0125] S602, constructing a mapping configuration file based on the mapping information;

[0126] The mapping configuration file can be constructed by arranging the created mapping information and storing it in a specified file in order to obtain the mapping configuration file. For example, the SDK document can be used to record the mapping information. The SDK document can list in detail all the mapping information provided, including interface names, parameters, return values, usage examples, etc., to facilitate users to quickly locate and use.

[0127] S603: Synchronize the mapping configuration file to the proxy server.

[0128] The mapping configuration file can be synchronized to the proxy server by the server sending the created mapping configuration file to the proxy server, and the proxy server decodes and identifies the mapping configuration file after receiving it, and uses it as the execution standard for configuring the mapping information. For example, the mapping configuration file can be synchronized to the proxy server using sync remote synchronization. Sync can be a command used in Linux and Unix systems to synchronize data in memory to the hard disk. When writing data to the hard disk, the operating system does not write the data to the hard disk immediately, but temporarily stores it in the memory buffer first. When the time is right, the operating system will synchronize the corresponding data to the hard disk.

[0129] The advantage of this setting of the scheme is that the mapping information configuration process of the proxy server can be set through the mapping configuration file, which is conducive to the unified setting of the docking relationship between multiple clients and servers and simplifies the configuration process of the mapping information.

[0130] Embodiment 6

[0131] Figure 7This is a flowchart of the proxy service-based application request processing method provided in Example 6 of the present application. This solution makes a better improvement on the above-mentioned embodiment, and the specific improvement is: the method also includes: if a mapping information update event is identified, modifying the mapping information of the mapping configuration file according to the mapping information update event; synchronizing the modified mapping configuration file to the proxy server.

[0132] like Figure 7 As shown, specifically including the following:

[0133] S701, creating mapping information for at least one client; wherein the mapping information includes: a proxy address corresponding to an actual address requested for access, request parameters corresponding to actual parameters requested for access, and response information corresponding to return parameters of the request;

[0134] S702, constructing a mapping configuration file based on the mapping information;

[0135] S703, synchronizing the mapping configuration file to the proxy server;

[0136] S704: if a mapping information update event is identified, modify the mapping information of the mapping configuration file according to the mapping information update event;

[0137] A mapping information update event may be a request to add or delete mapping information, or to modify existing mapping information after a mapping configuration file is created.

[0138] The method for modifying the mapping information of the mapping configuration file is that when mapping information needs to be added, the new mapping information entered by the staff is entered into the mapping configuration file according to the standard format to complete the mapping information modification; when the mapping information needs to be deleted or modified, the mapping information content entered by the staff is obtained, the consistent information content is matched in the mapping configuration file, and the information is deleted or replaced according to the instruction requirements.

[0139] S705: Synchronize the modified mapping configuration file to the proxy server.

[0140] The modified mapping configuration file is synchronized to the proxy server by sending the modified mapping configuration file to the proxy server after completing the mapping information modification, and the proxy server responds by deleting the original mapping configuration file and storing the modified mapping configuration file.

[0141] The advantage of this arrangement of the solution is that the mapping configuration file can be modified, thereby implementing changes to the client without re-creating the mapping configuration file, thereby improving the updating efficiency of the mapping configuration file.

[0142] Embodiment 7

[0143] Figure 8 It is a structural diagram of an application request processing device based on a proxy service provided in Example 7 of the present application.

[0144] like Figure 8 As shown, specifically including the following:

[0145] The device is configured on a proxy server, and the proxy server is configured with a mapping configuration file; the device comprises:

[0146] The request information receiving module 801 is used to receive the request information sent by the client;

[0147] A mapping information sending module 802 is used to determine the mapping information corresponding to the request information according to the mapping configuration file, and send the mapping information to the target business layer of the application server;

[0148] A response information determination module 803 is used to receive the return result of the target business layer and determine the corresponding response information of the return result according to the mapping configuration file;

[0149] The response information sending module 804 is used to return the response information to the client.

[0150] In an embodiment of the present application, the proxy server is configured with a mapping configuration file; the device includes: a request information receiving module for receiving request information sent by a client; a mapping information sending module for determining mapping information corresponding to the request information according to the mapping configuration file, and sending the mapping information to the target business layer of the application server; a response information determination module for receiving the return result of the target business layer, and determining the corresponding response information of the return result according to the mapping configuration file; a response information sending module for returning the response information to the client. Through the above-mentioned device for application request processing based on a proxy service, the request information of the client can be mapped through the proxy service, and then the distinction between similar function requests of different clients can be achieved without affecting the client function, which is conducive to reducing the similarity of request information between clients, so that the server can accurately distinguish network requests of different clients.

[0151] Embodiment 8

[0152] Fig. 9 It is a structural diagram of an application request processing device based on a proxy service provided in Example 8 of the present application.

[0153] like Fig. 9 As shown, specifically including the following:

[0154] The device is configured in an application request system; the device comprises:

[0155] A mapping information creation module 901 is used to create mapping information for at least one client; wherein the mapping information includes: a proxy address corresponding to an actual address requested for access, request parameters corresponding to actual parameters requested for access, and response information corresponding to return parameters of the request;

[0156] A mapping configuration file building module 902, configured to build a mapping configuration file based on the mapping information;

[0157] The mapping configuration file synchronization module 903 is used to synchronize the mapping configuration file to the proxy server.

[0158] In an embodiment of the present application, the device is configured in an application request system; the device includes: a mapping information creation module, which is used to create mapping information for at least one client; wherein the mapping information includes: a proxy address corresponding to the actual address requested for access, a request parameter corresponding to the actual parameter requested for access, and a response information corresponding to the return parameter of the request; a mapping profile construction module, which is used to construct a mapping profile based on the mapping information; a mapping profile synchronization module, which is used to synchronize the mapping profile to the proxy server. Through the above-mentioned device for application request processing based on a proxy service, the request information of the client can be mapped through the proxy service, and then the distinction between similar function requests of different clients can be achieved without affecting the client function, which is conducive to reducing the similarity of request information between clients and enables the server to accurately distinguish network requests of different clients.

[0159] In the embodiment of the present application, an application request processing device based on proxy service can be a device, or a component, integrated circuit, or chip in a terminal. The device can be a mobile electronic device or a non-mobile electronic device. For example, the mobile electronic device can be a mobile phone, a tablet computer, a laptop computer, a PDA, an in-vehicle electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook, or a personal digital assistant (PDA), etc. The non-mobile electronic device can be a server, a network attached storage (NAS), a personal computer (PC), a television (TV), a teller machine or a self-service machine, etc., which is not specifically limited in the embodiment of the present application.

[0160] In the embodiment of the present application, a device for processing application requests based on a proxy service may be a device having an operating system. The operating system may be an Android operating system, an iOS operating system, or other possible operating systems, which are not specifically limited in the embodiment of the present application.

[0161] The device for application request processing based on proxy service provided in the embodiment of the present application can implement each process implemented in the above-mentioned method embodiments. To avoid repetition, it will not be described here.

[0162] Embodiment 9

[0163] like Fig.10 As shown, an embodiment of the present application also provides an electronic device 1000, including a processor 1001, a memory 1002, and a program or instruction stored in the memory 1002 and executable on the processor 1001. When the program or instruction is executed by the processor 1001, each process of the above-mentioned device embodiment for application request processing based on a proxy service is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be described here.

[0164] It should be noted that the electronic devices in the embodiments of the present application include the mobile electronic devices and non-mobile electronic devices mentioned above.

[0165] Embodiment 10

[0166] An embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, each process of the above-mentioned device embodiment for application request processing based on a proxy service is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.

[0167] The processor is a processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a computer read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0168] Embodiment 11

[0169] An embodiment of the present application further provides a chip, which includes a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the various processes of the above-mentioned device embodiment for application request processing based on a proxy service, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.

[0170] It should be understood that the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.

[0171] It should be noted that, in this article, the terms "comprise", "include" or any other variant thereof are intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise one..." do not exclude the presence of other identical elements in the process, method, article or device including the element. In addition, it should be pointed out that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved, for example, the described method may be performed in an order different from that described, and various steps may also be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.

[0172] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM / RAM, a disk, or an optical disk), and includes a number of instructions for a terminal (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present application.

[0173] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.

[0174] The above are only preferred embodiments of the present application and the technical principles used. The present application is not limited to the specific embodiments described herein, and various obvious changes, readjustments and substitutions that can be made by those skilled in the art will not deviate from the scope of protection of the present application. Therefore, although the present application is described in more detail through the above embodiments, the present application is not limited to the above embodiments, and may include more other equivalent embodiments without departing from the concept of the present application, and the scope of the present application is determined by the scope of the claims.

Claims

1. A method for processing application requests based on a proxy service, characterized in that: The method is performed by a proxy server, and the proxy server is configured with a mapping configuration file; the method comprises: Receive request information from the client; Determine mapping information corresponding to the request information according to the mapping configuration file, and send the mapping information to the target business layer of the application server; Receive a return result from the target business layer, and determine corresponding response information of the return result according to the mapping configuration file; The response information is returned to the client.

2. The method for processing application requests based on proxy services according to claim 1, characterized in that: The determining, according to the mapping configuration file, mapping information corresponding to the request information, and sending the mapping information to a target business layer of the application server includes: Obtaining the proxy address in the request information; The mapping configuration file is used to restore the proxy address to an actual address, and the target business layer of the application server is accessed according to the actual address.

3. The method for processing application requests based on proxy services according to claim 2, characterized in that: The determining the mapping information corresponding to the request information according to the mapping configuration file, and sending the mapping information to the target business layer of the application server, further includes: Obtaining request parameters in the request information; The mapping configuration file is used to determine the actual parameters corresponding to the request parameters, and the actual parameters are used to access the target business layer of the application server according to the actual address.

4. The method for processing application requests based on proxy services according to claim 1, characterized in that: Receiving the return result of the target business layer, and determining the corresponding response information of the return result according to the mapping configuration file, including: Receive the return result of the target business layer; Decomposing the returned result to obtain the returned parameter; The mapping configuration file is used to obtain response information corresponding to the return parameter.

5. A method for processing application requests based on a proxy service, characterized in that: The method is executed by the application requesting the system; The method comprises: Creating mapping information for at least one client; wherein the mapping information includes: a proxy address corresponding to an actual address requested for access, request parameters corresponding to actual parameters requested for access, and response information corresponding to return parameters of the request; Building a mapping configuration file based on the mapping information; The mapping configuration file is synchronized to the proxy server.

6. The method for processing application requests based on proxy services according to claim 5, characterized in that: The method further comprises: If a mapping information update event is identified, modifying the mapping information of the mapping configuration file according to the mapping information update event; The modified mapping configuration file is synchronized to the proxy server.

7. An application request processing device based on proxy service, characterized in that: The device is configured on a proxy server, and the proxy server is configured with a mapping configuration file; the device comprises: A request information receiving module, used for receiving request information sent by a client; A mapping information sending module, used to determine the mapping information corresponding to the request information according to the mapping configuration file, and send the mapping information to the target business layer of the application server; A response information determination module, configured to receive a return result from the target business layer and determine corresponding response information of the return result according to the mapping configuration file; A response information sending module is used to return the response information to the client.

8. An application request processing device based on proxy service, characterized in that: The device is configured in an application request system; The device comprises: A mapping information creation module, used to create mapping information for at least one client; wherein the mapping information includes: a proxy address corresponding to an actual address requested for access, request parameters corresponding to actual parameters requested for access, and response information corresponding to return parameters of the request; A mapping configuration file building module, used to build a mapping configuration file based on the mapping information; The mapping configuration file synchronization module is used to synchronize the mapping configuration file to the proxy server.

9. An electronic device, characterized in that: It includes a processor, a memory, and a program or instruction stored in the memory and executable on the processor. When the program or instruction is executed by the processor, the steps of an application request processing method based on a proxy service are implemented as described in any one of claims 1 to 4 or claims 5 to 6.

10. A readable storage medium, characterized in that: The readable storage medium stores a program or instruction, and when the program or instruction is executed by the processor, the steps of the application request processing method based on proxy service are implemented as described in any one of claims 1-4 or claims 5-6.