Server proxy methods, devices, equipment, and storage media
By setting characteristic values in the proxy server configuration file, the target server cluster is made to be in the same domain, which solves the problem of long communication call chains between external servers and client platforms, and improves communication efficiency and system response speed.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- CHINA MERCHANTS BANK
- Filing Date
- 2023-06-27
- Publication Date
- 2026-07-17
AI Technical Summary
The communication call chain between the external server and the client's platform is long, resulting in low communication efficiency between the client and other servers.
By setting a characteristic value in the proxy server's configuration file, all servers in the target server cluster are made to be under the same domain, and access requests are sent to the target server based on the characteristic value, thus avoiding cross-domain issues and improving communication efficiency.
By unifying the domain names of external servers, data transmission paths are simplified, communication efficiency between clients and other servers is improved, call chains are reduced, and system response efficiency is optimized.
Smart Images

Figure CN116723237B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of computer technology, and in particular to a server proxy method, apparatus, device and storage medium. Background Technology
[0002] Currently, many large enterprises or group-level systems have very high requirements for system network performance, requiring a good user experience and fast server response speed to improve enterprise management efficiency. In the process of enterprise systems accessing external systems or servers, in order to improve security and achieve functions such as load balancing, proxy devices / servers are usually set up between the server and client devices to forward data through the proxy server.
[0003] In related technologies, clients access multiple external servers through nginx (engine x) proxy servers. When using the same proxy server for data transmission, since the domain names or protocols of the external servers are mostly different, the routing matching rules between the proxy server and the external servers are also different. The data or requests forwarded by the proxy server need to be forwarded to each different server step by step. Therefore, the communication call chain between the external server and the client's platform is long, resulting in low communication efficiency between the client and other servers. Summary of the Invention
[0004] The main objective of this application is to provide a server proxy method, apparatus, device, and storage medium, which aims to solve the technical problem in the related art that the communication call chain between the external server and the client's platform is long, resulting in low communication efficiency between the client and other servers.
[0005] To achieve the above objectives, embodiments of this application provide a server proxy method, the method comprising:
[0006] Obtain the client's access request;
[0007] Based on the access request, a first feature value corresponding to the target server in the target server cluster is matched. The target server cluster includes at least one server, and the first feature value of the target server is pre-stored in the first configuration file of the proxy server, so that the servers in the target server cluster are all under the same domain.
[0008] Based on the first feature value, the target data corresponding to the access request is sent to the target server.
[0009] In one possible implementation of this application, after the step of sending the target data corresponding to the access request to the target server based on the first feature value, the method includes:
[0010] Based on the first feature value, a sub-feature value corresponding to the target sub-server is determined, wherein the target server includes multiple target sub-servers;
[0011] Based on the sub-feature value, the target data is sent to the target sub-server.
[0012] In one possible implementation of this application, the step of sending the target data to the target sub-server based on the sub-feature value includes:
[0013] A connection is established with the target sub-server based on the sub-feature value;
[0014] Obtain the client's preset verification file, and verify the access request according to the preset verification file to obtain the verification result.
[0015] If the verification result is unsuccessful, an access failure message is returned to the client so that the client user can re-initiate the access request;
[0016] If the verification result is successful, the target data is sent to the target sub-server.
[0017] In one possible implementation of this application, the step of sending the target data to the target sub-server if the verification result is successful includes:
[0018] If the verification result is successful and the access request is a static resource request, then the target data is forwarded to the target sub-server.
[0019] If the access request is a dynamic resource request, the access request is redirected to the proxy server, and the target data is sent to the target sub-server according to the redirected access request.
[0020] In one possible implementation of this application, after the step of obtaining the client's access request, the following steps are included:
[0021] The access request is decrypted to obtain the target request data;
[0022] After the step of sending the target data corresponding to the access request to the target server based on the first feature value, the method includes:
[0023] The execution result returned by the target server based on the access request is encrypted to obtain encrypted result data;
[0024] The encrypted result data is forwarded to the client.
[0025] In one possible implementation of this application, the data between the target server clusters is shared, enabling the servers in the target server clusters to access each other's real-time data.
[0026] In one possible implementation of this application, before the step of sending the target data corresponding to the access request to the target server based on the first feature value, the method includes:
[0027] Add a business identifier to the access request, and monitor the processing task corresponding to the access request based on the business identifier;
[0028] The process of the task being processed is visualized.
[0029] This application also provides a server proxy device, the server proxy device further comprising:
[0030] The acquisition module is used to acquire access requests from clients;
[0031] The matching module is used to match the first feature value corresponding to the target server in the target server cluster based on the access request. The target server cluster includes at least one server, and the first feature value of the target server is pre-stored in the first configuration file of the proxy server, so that the servers in the target server cluster are all under the same domain.
[0032] The sending module is used to send the target data corresponding to the access request to the target server according to the first feature value.
[0033] This application also provides a server proxy device, which is a physical node device. The server proxy device includes a memory, a processor, and a program of the server proxy method stored in the memory and executable on the processor. When the program of the server proxy method is executed by the processor, it can implement the steps of the server proxy method as described above.
[0034] To achieve the above objectives, a storage medium is also provided, on which a server proxy program is stored, which, when executed by a processor, implements the steps of any of the server proxy methods described above.
[0035] This application provides a server proxy method, apparatus, device, and storage medium. Compared to related technologies where a proxy server establishes connections with multiple external servers with different domain names, resulting in a long communication call chain between the external servers and the client's platform and low communication efficiency between the client and other servers, this application obtains the client's access request; based on the access request, it matches a first feature value corresponding to a target server in a target server cluster, wherein the target server cluster includes at least one server, and the first feature value of the target server is pre-stored in the proxy server's configuration file, ensuring that all servers in the target server cluster are under the same domain; and according to the first feature value, it sends the target data corresponding to the access request to the target server. In this application, by allocating the client's access request to different servers based on corresponding feature values, and using the first feature value in the proxy server's configuration file to unify the domain names of the connected external servers, the application ensures that all servers in the target server cluster are under the same domain, avoiding long communication call chains between servers when the client transmits data with various external servers, thereby improving the communication efficiency between the client and other servers. Attached Figure Description
[0036] Figure 1 This is a flowchart illustrating the first embodiment of the server proxy method of this application;
[0037] Figure 2 This is a schematic diagram of the nginx proxy server execution process involved in the server proxy method of this application;
[0038] Figure 3 This is a schematic diagram of the device structure of the hardware operating environment involved in the embodiments of this application;
[0039] Figure 4 This is a schematic diagram illustrating the request flow of the nginx proxy server involved in the server proxy method of this application. Detailed Implementation
[0040] It should be understood that the specific embodiments described herein are merely illustrative of this application and are not intended to limit this application.
[0041] This application provides a server proxy method. In the first embodiment of the server proxy method of this application, refer to... Figure 1 The method includes:
[0042] Step S10: Obtain the client's access request;
[0043] Step S20: Based on the access request, match the first feature value corresponding to the target server in the target server cluster, wherein the target server cluster includes at least one server, and the first feature value of the target server is pre-stored in the configuration file of the proxy server, so that the servers in the target server cluster are all under the same domain.
[0044] Step S30: Based on the first feature value, send the target data corresponding to the access request to the target server.
[0045] This embodiment aims to: by setting characteristic values for external servers in the configuration file of the proxy server, make all servers in the target server cluster under the same domain, thereby making it easier to transmit data between the target servers, thus reducing the number of communication call chains between servers and improving the communication efficiency between servers.
[0046] In this embodiment, the research and development background is as follows:
[0047] When integrating a new system into an outdated system or application, the different technology stacks and communication methods of the external systems may require a lot of compatibility work. Using an Nginx proxy server to proxy external systems can optimize the calling logic between systems, reduce the call chain, improve response efficiency, and ensure the reliability of communication data.
[0048] The specific steps are as follows:
[0049] Step S10: Obtain the client's access request;
[0050] As an example, the server proxy method can be applied to a server proxy device, which belongs to a server proxy system, and the server proxy system belongs to a server proxy equipment.
[0051] As an example, the client can be a bank's platform, system, server, etc.
[0052] As an example, an access request can be an access instruction, a request to access data, or a request to access other servers.
[0053] As an example, the client establishes a connection between itself and the corresponding server by sending an access request to a proxy server or external server.
[0054] Step S20: Based on the access request, match the first feature value corresponding to the target server in the target server cluster, wherein the target server cluster includes at least one server, and the first feature value of the target server is pre-stored in the configuration file of the proxy server, so that the servers in the target server cluster are all under the same domain.
[0055] As an example, an access request is used to match the corresponding server to be connected. The access request includes the corresponding server identifier and the business data to be sent. Based on the corresponding server identifier, the domain name of the server can be determined.
[0056] As an example, the first feature value is the value corresponding to the domain name of each server. The first feature value is pre-stored in the configuration file. Each server sets the same feature value, for example, system B / server is set to featureB. In this case, all servers in the B server cluster are set to feature value B. This eliminates the need for step-by-step forwarding, reduces the data transmission call chain, and thus improves response efficiency.
[0057] As an example, a target server cluster is a collection of multiple servers. When a target server cluster corresponds to only one feature value, and the servers in the target server cluster can be different servers deployed with the same code, the way they process data is roughly the same.
[0058] As an example, the target server is the server that receives the access request, which can be a web server, a departmental server, or an enterprise server, etc.
[0059] As an example, the proxy server is specifically an Nginx server. Nginx servers can handle high concurrency connections, consume little memory, have low cost and simple configuration files. They can distribute HTTP requests to different backend server groups based on different domain names and URLs. Using an Nginx server as a proxy server can improve the overall performance between systems.
[0060] The data between the target server clusters is shared, allowing the servers in the target server clusters to access each other's real-time data.
[0061] As an example, the servers in the target server cluster have the same characteristic values and are under the same domain, so there will be no cross-domain issues. Therefore, the data between the target servers can be shared. Thus, when calling data between target servers, it can be called in real time through parent and child pages within the system, which can also solve the errors caused by mutual calls between parent and child pages within the system.
[0062] Prior to the step of sending the target data corresponding to the access request to the target server based on the first feature value, the method includes:
[0063] Step A1: Add a service identifier to the access request, and monitor the processing task corresponding to the access request based on the service identifier;
[0064] As an example, a business identifier is added to the access request to track the flow of the access request. This allows for real-time monitoring of the processing task corresponding to the access request based on the business identifier.
[0065] As an example, the processing task could be that the client sends a request to the web server, the web server receives the corresponding file and returns it to the client, and the client parses the received file;
[0066] The processing task can also involve the client submitting a request to a web storage point, which then connects to a database. After the database processes the data, it sends the data to the web server, which in turn returns the processing result to the client for rendering.
[0067] As an example, the purpose of monitoring and processing tasks is to detect which part of the task execution process is malfunctioning, so as to deal with it in a timely manner and prevent the system or server from malfunctioning.
[0068] Step A2: Visualize the task progress corresponding to the processing task.
[0069] As an example, the task progress corresponding to the processing task can be visualized. The visualization method can be: displaying it in the visualization interface in the form of a pie chart, bar chart, or waterfall chart. Using the appropriate display chart can make the task progress more intuitive and easy for relevant personnel to observe.
[0070] Step S30: Based on the first feature value, send the target data corresponding to the access request to the target server.
[0071] As an example, after determining the characteristic value corresponding to the target server, the access request is sent to the target server so that the target server can process the access request and return the execution result to the proxy server and the client.
[0072] In this embodiment, the execution flow diagram of the nginx proxy server is as follows: Figure 2As shown in the figure, system A represents the client and system B represents the target server. When establishing a connection between the client and the target server, system A obtains the subsequent access control system and login path, then feeds back the feature value of system B, forwards the feature value of system B to the address of system B, opens the login interface of system B, loads resources, and completes the login process of system B after the verification of system B is completed. Subsequently, system B processes the received requests or data and returns the execution result, while system A retains the login success status of its system.
[0073] This application provides a server proxy method, apparatus, device, and storage medium. Compared to related technologies where a proxy server establishes connections with multiple external servers with different domain names, resulting in a long communication call chain between the external servers and the client's platform and low communication efficiency between the client and other servers, this application obtains the client's access request; based on the access request, it matches a first feature value corresponding to a target server in a target server cluster, wherein the target server cluster includes at least one server, and the first feature value of the target server is pre-stored in the proxy server's configuration file, ensuring that all servers in the target server cluster are under the same domain; and according to the first feature value, it sends the target data corresponding to the access request to the target server. In this application, by allocating the client's access request to different servers based on corresponding feature values, and using the first feature value in the proxy server's configuration file to unify the domain names of the connected external servers, the application ensures that all servers in the target server cluster are under the same domain, avoiding long communication call chains between servers when the client transmits data with various external servers, thereby improving the communication efficiency between the client and other servers.
[0074] Furthermore, based on the first embodiment of this application, another embodiment of this application is provided. In this embodiment, after the step of sending the target data corresponding to the access request to the target server according to the first feature value, the method includes:
[0075] Step B1: Determine the sub-feature value corresponding to the target sub-server based on the first feature value, wherein the target server includes multiple target sub-servers;
[0076] As an example, the target server includes multiple target sub-servers, each of which corresponds to a sub-feature value. For example, the feature value corresponding to the target server is feature B, and the sub-feature values corresponding to the target sub-servers can be feature B-1, feature B-1, etc. Multiple target sub-servers are distinguished by adding suffixes.
[0077] As an example, when the target server receives an access request, it can either process the access request itself or forward it to other sub-servers for corresponding processing.
[0078] Step B2: Based on the sub-feature value, send the target data to the target sub-server.
[0079] As an example, after determining that the request is to access the target sub-server, the target data corresponding to the access request is forwarded to the target sub-server through the sub-feature value, so that the target sub-server can process the access request.
[0080] The step of sending the target data to the target sub-server based on the sub-feature value includes:
[0081] Step C1: Establish a connection with the target sub-server based on the sub-feature value;
[0082] As an example, after determining the sub-feature value, a connection is established with the target sub-server through the corresponding login path.
[0083] Step C2: Obtain the client's preset verification file, and verify the access request according to the preset verification file to obtain the verification result.
[0084] As an example, the default verification file is a file pre-stored by the client for token verification. The default verification file can be obtained from the client's cookie. Since the data has already been shared through the nginx proxy, there is no need to transmit the token in other ways, which increases the efficiency of system usage to a certain extent.
[0085] As an example, the verification process is token verification, which checks whether there is a token file in the access request. If there is, the request passes; otherwise, it fails.
[0086] As an example, the verification results are divided into verification passed and verification failed.
[0087] Step C3: If the verification result is unsuccessful, an access failure message is returned to the client so that the client user can re-initiate the access request;
[0088] As an example, if the verification fails, it means there is a problem with the sent access request, and it needs to be resent.
[0089] As an example, after the client receives an access failure message, it re-initiates the access request.
[0090] Step C4: If the verification result is successful, the target data is sent to the target sub-server.
[0091] As an example, once the verification result is passed, the corresponding target data can be sent to the target sub-server.
[0092] The step of sending the target data to the target sub-server if the verification result is successful includes:
[0093] Step D1: If the verification result is successful and the access request is a static resource request, then forward the target data to the target sub-server.
[0094] As an example, after the verification result passes, it is necessary to determine the appropriate method for forwarding the target data based on the type of access request.
[0095] As an example, different access requests require different tasks, so the data forwarding methods also differ.
[0096] As an example, static resource requests are relatively simple. The client sends a request to the web server, the web server receives the corresponding file, returns it to the client, and the client parses the received file. Static resource requests do not require database queries or program processing; they can be directly displayed on the page.
[0097] Step D2: If the access request is a dynamic resource request, then the access request is redirected to the proxy server, and the target data is sent to the target sub-server according to the redirected access request.
[0098] As an example, a dynamic resource request is a request that requires opening a page.
[0099] As an example, dynamic resource requests can involve a client submitting a request to a web storage point, which then connects to a database. After the database processes the data, it sends the data to a web server, which in turn returns the processing result to the client for rendering. This process may require programmatic processing or reading data from the database, and different data can be displayed on different pages based on different conditions.
[0100] As an example, the redirection process involves redirecting dynamic resource requests to the nginx proxy server, which then forwards them to the target server, and finally the target server returns the relevant data or page.
[0101] In this embodiment, the request flow diagram of the nginx proxy server is as follows: Figure 4As shown in the diagram, when the nginx proxy server sends a request to the target sub-server, taking system B as an example, it first determines whether the corresponding sub-feature value is B-1 or B-2. If it is not feature value B, a 404 error is reported. Then, the request type of the access request is determined. Generally, the request is a static resource request. When the access request is determined to be a static resource request, it is directly forwarded to the corresponding B-1 / B-2 server. When the access request is determined to be a dynamic resource request, the access request is redirected and then sent to the target server to request the corresponding data, until the request process ends.
[0102] In this embodiment, access requests are forwarded to different target sub-servers based on different sub-feature values. Since the different target sub-servers are in the same domain, cross-domain issues will not occur during data transmission, thus avoiding errors caused by mutual calls between parent and child pages within the system.
[0103] Furthermore, based on the first and second embodiments of this application, another embodiment of this application is provided, in which, after the step of obtaining the client's access request, the following steps are included:
[0104] Step E1: Decrypt the access request to obtain the target request data;
[0105] As an example, before the client sends an access request to the proxy server, it needs to be encrypted for security purposes. After the proxy server receives the access request, it first decodes it and then decrypts it to obtain the corresponding target request data.
[0106] As an example, the target request data is the data obtained after decrypting the access request.
[0107] After the step of sending the target data corresponding to the access request to the target server based on the first feature value, the method includes:
[0108] Step M1: Encrypt the execution result returned by the target server based on the access request to obtain encrypted result data;
[0109] As an example, after the target server processes the access request and obtains the execution result, the execution result needs to be encrypted to prevent it from being intercepted by others.
[0110] As an example, the encrypted result data is the execution result data after encryption processing.
[0111] Step M2: Forward the encrypted result data to the client.
[0112] As an example, after encryption is completed, the proxy server forwards the encrypted result data to the client.
[0113] In this embodiment, access requests and execution results are encrypted to enhance the security of data transmitted between the system and the server.
[0114] Reference Figure 3 , Figure 3 This is a schematic diagram of the device structure of the hardware operating environment involved in the embodiments of this application.
[0115] like Figure 3 As shown, the server agent device may include: a processor 1001, a memory 1005, and a communication bus 1002. The communication bus 1002 is used to realize the connection and communication between the processor 1001 and the memory 1005.
[0116] Optionally, the server agent device may also include a user interface, a network interface, a camera, RF (Radio Frequency) circuitry, sensors, a WiFi module, etc. The user interface may include a display screen, an input submodule such as a keyboard, and optionally, standard wired or wireless interfaces. The network interface may include standard wired or wireless interfaces (such as a Wi-Fi interface).
[0117] Those skilled in the art will understand that Figure 3 The server agent device structure shown does not constitute a limitation on the server agent device, and may include more or fewer components than shown, or combine certain components, or have different component arrangements.
[0118] like Figure 3 As shown, the memory 1005, as a storage medium, may include an operating system, a network communication module, and a server agent program. The operating system is a program that manages and controls the hardware and software resources of the server agent device, supporting the operation of the server agent program and other software and / or programs. The network communication module is used to enable communication between the various components within the memory 1005, as well as communication with other hardware and software in the server agent system.
[0119] exist Figure 3 In the server proxy device shown, the processor 1001 is used to execute the server proxy program stored in the memory 1005 to implement the steps of the server proxy method described in any of the above claims.
[0120] The specific implementation method of the server proxy device in this application is basically the same as that of the above-described server proxy method embodiments, and will not be repeated here.
[0121] This application also provides a server proxy device, the server proxy device comprising:
[0122] The acquisition module is used to acquire access requests from clients;
[0123] The matching module is used to match the first feature value corresponding to the target server in the target server cluster based on the access request. The target server cluster includes at least one server, and the first feature value of the target server is pre-stored in the first configuration file of the proxy server, so that the servers in the target server cluster are all under the same domain.
[0124] The first sending module is used to send the target data corresponding to the access request to the target server according to the first feature value.
[0125] In one possible embodiment of this application, the server proxy device further includes:
[0126] The determining module is used to determine the sub-feature value corresponding to the target sub-server based on the first feature value, wherein the target server includes multiple target sub-servers;
[0127] The second sending module is used to send the target data to the target sub-server according to the sub-feature value.
[0128] In one possible implementation of this application, the second sending module includes:
[0129] A connection unit is used to establish a connection with the target sub-server based on the sub-feature value;
[0130] The acquisition unit is used to acquire the preset verification file of the client, and to verify the access request according to the preset verification file to obtain the verification result.
[0131] The feedback unit is used to return access failure information to the client if the verification result is unsuccessful, so that the client user can re-initiate the access request;
[0132] The sending unit is used to send the target data to the target sub-server if the verification result is successful.
[0133] In one possible implementation of this application, the transmitting unit includes:
[0134] The forwarding subunit is used to forward the target data to the target sub-server if the verification result is successful and the access request is a static resource request.
[0135] The sending subunit is configured to redirect the access request to the proxy server if the access request is a dynamic resource request, and send the target data to the target subserver according to the redirected access request.
[0136] In one possible embodiment of this application, the apparatus further includes:
[0137] The first processing module is used to decrypt the access request to obtain the target request data;
[0138] The second processing module is used to encrypt the execution result fed back by the target server based on the access request to obtain encrypted result data;
[0139] The forwarding module is used to forward the encrypted result data to the client.
[0140] In one possible embodiment of this application, the apparatus further includes:
[0141] The monitoring module is used to add a business identifier to the access request and monitor the processing task corresponding to the access request based on the business identifier.
[0142] The display module is used to visually display the task progress corresponding to the processing task.
[0143] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or system. Unless otherwise specified, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or system that includes that element.
[0144] The sequence numbers of the embodiments in this application are for descriptive purposes only and do not represent the superiority or inferiority of the embodiments.
[0145] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) as described above, and includes several instructions to cause a terminal device (which may be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the methods described in the various embodiments of this application.
[0146] The above are merely preferred embodiments of this application and do not limit the patent scope of this application. Any equivalent structural or procedural transformations made using the content of this application's specification and drawings, or direct or indirect applications in other related technical fields, are similarly included within the patent protection scope of this application.
Claims
1. A server proxy method, characterized in that, The method includes the following steps: Obtain the client's access request; Based on the access request, a first feature value corresponding to the target server in the target server cluster is matched. The first feature value is the value corresponding to the domain name of each server. The target server cluster includes at least one server, and the first feature value of the target server is pre-stored in the configuration file of the proxy server. The first feature values of the servers in the target server cluster are the same, so that the servers in the target server cluster are all under the same domain, and the data between the target server clusters is shared. Based on the first feature value, the target data corresponding to the access request is sent to the target server; Based on the first feature value, a sub-feature value corresponding to the target sub-server is determined, wherein the target server includes multiple target sub-servers, and the sub-feature value is obtained by adding a suffix to the first feature value; Based on the sub-feature value, the target data is sent to the target sub-server.
2. The server proxy method as described in claim 1, characterized in that, The step of sending the target data to the target sub-server based on the sub-feature value includes: A connection is established with the target sub-server based on the sub-feature value; Obtain the client's preset verification file, and verify the access request according to the preset verification file to obtain the verification result; If the verification result is unsuccessful, an access failure message is returned to the client so that the client user can re-initiate the access request; If the verification result is successful, the target data is sent to the target sub-server.
3. The server proxy method as described in claim 2, characterized in that, The step of sending the target data to the target sub-server if the verification result is successful includes: If the verification result is successful and the access request is a static resource request, then the target data is forwarded to the target sub-server. If the access request is a dynamic resource request, the access request is redirected to the proxy server, and the target data is sent to the target sub-server according to the redirected access request.
4. The server proxy method as described in claim 1, characterized in that, After the step of obtaining the client's access request, the following steps are included: The access request is decrypted to obtain the target request data; After the step of sending the target data corresponding to the access request to the target server based on the first feature value, the method includes: The execution result returned by the target server based on the access request is encrypted to obtain encrypted result data; The encrypted result data is forwarded to the client.
5. The server proxy method as described in claim 1, characterized in that, The data between the target server clusters is shared, allowing the servers in the target server clusters to access each other's real-time data.
6. The server proxy method as described in claim 1, characterized in that, Before the step of sending the target data corresponding to the access request to the target server based on the first feature value, the following steps are included: Add a business identifier to the access request, and monitor the processing task corresponding to the access request based on the business identifier; The process of the task being processed is visualized.
7. A server proxy device, characterized in that, The server proxy device includes: The acquisition module is used to acquire access requests from clients; The matching module is used to match the first feature value corresponding to the target server in the target server cluster based on the access request. The first feature value is the value corresponding to the domain name of each server. The target server cluster includes at least one server, and the first feature value of the target server is pre-stored in the configuration file of the proxy server. The first feature values of the servers in the target server cluster are the same, so that the servers in the target server cluster are all under the same domain and the data between the target server clusters is shared. The sending module is configured to send the target data corresponding to the access request to the target server based on the first feature value; The determining module is used to determine a sub-feature value corresponding to the target sub-server based on the first feature value, wherein the target server includes multiple target sub-servers, and the sub-feature value is obtained by adding a suffix to the feature value; The second sending module is used to send the target data to the target sub-server according to the sub-feature value.
8. A server proxy device, characterized in that, The device includes: a memory, a processor, and a server agent program stored on the memory and executable on the processor, the server agent program being configured to implement the steps of the server agent method as described in any one of claims 1 to 6.
9. A computer storage medium, characterized in that, The computer storage medium stores a server proxy program, which, when executed by a processor, implements the steps of the server proxy method as described in any one of claims 1 to 6.