WO2021258575A1 - Système, procédé et appareil de traitement de demande, et dispositif électronique et support lisible par ordinateur - Google Patents

Système, procédé et appareil de traitement de demande, et dispositif électronique et support lisible par ordinateur Download PDF

Info

Publication number
WO2021258575A1
WO2021258575A1 PCT/CN2020/118867 CN2020118867W WO2021258575A1 WO 2021258575 A1 WO2021258575 A1 WO 2021258575A1 CN 2020118867 W CN2020118867 W CN 2020118867W WO 2021258575 A1 WO2021258575 A1 WO 2021258575A1
Authority
WO
WIPO (PCT)
Prior art keywords
resource
address
target resource
target
parameter information
Prior art date
Application number
PCT/CN2020/118867
Other languages
English (en)
Chinese (zh)
Inventor
李小强
张亮
任彦达
Original Assignee
北京旷视科技有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Priority claimed from CN202010576545.2A external-priority patent/CN111931100B/zh
Application filed by 北京旷视科技有限公司 filed Critical 北京旷视科技有限公司
Publication of WO2021258575A1 publication Critical patent/WO2021258575A1/fr

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/958Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/955Retrieval from the web using information identifiers, e.g. uniform resource locators [URL]
    • G06F16/9566URL specific, e.g. using aliases, detecting broken or misspelled links

Definitions

  • the embodiments of the present application relate to the field of computer technology, and specifically relate to request processing systems, methods, devices, electronic equipment, and computer-readable media.
  • the front-end device can usually send a request to the back-end server through a browser to obtain the required resources.
  • a proxy server such as Nginx, etc.
  • Nginx such as Nginx, etc.
  • the resources returned by the back-end server Such as pictures, videos, texts, etc.
  • the address is forwarded to the front-end equipment. Therefore, when users view or download resources on the front-end page, they can request corresponding resources according to the resource address returned by the proxy server.
  • this request processing method requires frequent modification of the data in the back-end server, resulting in a large workload.
  • the back-end server needs to be restarted, resulting in poor system security and stability.
  • the embodiment of the application proposes a request processing system, method, device, electronic device, and computer readable medium to reduce the workload when the resource address is frequently changed, and improve the security and stability of the system when the resource address is frequently changed .
  • an embodiment of the present application provides a request processing system, including: a front-end device, a proxy server, a resource conversion server, and a back-end server; the proxy server is used to forward the resource address acquisition request sent by the front-end device to the back-end Server, and receive the original resource address returned by the back-end server, where the original resource address includes the original IP address of the device where the target resource is located and the parameter information of the target resource; the original IP address is replaced with the IP address of the resource conversion server to get the modification The resource address after the modification; the modified resource address is returned to the front-end device; the front-end device is used to send a target resource acquisition request containing parameter information to the resource conversion server based on the IP address in the modified resource address; the resource conversion server uses To determine the current resource address of the target resource based on the parameter information, obtain the target resource from the current resource address, and return the target resource to the front-end device.
  • the embodiments of the present application provide a request processing method, which is applied to a resource conversion server.
  • the resource conversion server communicates with a front-end device, and the front-end device communicates with the back-end server through a proxy server.
  • the method includes: receiving the front-end device The sent target resource acquisition request, where the target resource acquisition request includes parameter information of the target resource, the parameter information is obtained by the front-end device from the resource address, and the resource address is obtained by the proxy server by modifying the IP address in the original resource address, The original resource address is returned by the back-end server after receiving the resource address acquisition request forwarded by the front-end device via the proxy server; based on the parameter information, the current resource address of the target resource is determined; the target resource is obtained from the current resource address, and the target resource is returned To the front-end equipment.
  • an embodiment of the present application provides a request processing device.
  • the device includes: applied to a resource conversion server, the resource conversion server communicates with a front-end device, and the front-end device communicates with the back-end server through a proxy server.
  • the device includes : The receiving unit is configured to receive the target resource acquisition request sent by the front-end device.
  • the target resource acquisition request includes parameter information of the target resource.
  • the original IP address in the resource address is obtained by replacing the IP address of the resource conversion server.
  • the original resource address is returned by the back-end server after receiving the resource address acquisition request forwarded by the front-end device via the proxy server; the determining unit is configured to be based on parameters The information determines the current resource address of the target resource; the returning unit is configured to obtain the target resource from the current resource address and return the target resource to the front-end device.
  • an embodiment of the present application provides an electronic device, including: one or more processors; a storage device, on which one or more programs are stored, when one or more programs are used by one or more processors Execution causes one or more processors to implement the method as described in the second aspect.
  • an embodiment of the present application provides a computer-readable medium on which a computer program is stored, and when the program is executed by a processor, the method as described in the second aspect is implemented.
  • the request processing system, method, device, electronic device, and computer-readable medium provided by the embodiments of the present application forward the resource address acquisition request sent by the front-end device to the back-end server through the proxy server, thereby receiving the original resource address returned by the back-end server , Where the original resource address includes the original IP address of the device where the target resource is located and the parameter information of the target resource. Then, the original IP address is replaced with the IP address of the resource conversion server through the proxy server, and the modified resource address is obtained, so that the modified resource address is returned to the front-end device. Afterwards, the front-end device sends a target resource acquisition request containing parameter information to the resource conversion server based on the IP address in the modified resource address.
  • the resource conversion server determines the current resource address of the target resource based on the parameter information, obtains the target resource from the current resource address, and returns the target resource to the front-end device.
  • a resource conversion server independent of the back-end server is introduced into the system.
  • the resource conversion server determines the current resource address of the target resource.
  • Fig. 1 is a schematic diagram of the interaction process between devices of the request processing system according to the present application
  • Fig. 2 is a schematic diagram of an application scenario of the request processing system according to the present application.
  • Fig. 3 is a schematic diagram of an application scenario of the request processing system according to the present application.
  • Fig. 4 is a schematic diagram of an application scenario of the request processing system according to the present application.
  • Fig. 5 is a schematic diagram of an application scenario of the request processing system according to the present application.
  • Fig. 6 is a schematic diagram of an application scenario of the request processing system according to the present application.
  • Fig. 7 is a flowchart of an embodiment of a request processing method according to the present application.
  • Fig. 8 is a schematic structural diagram of an embodiment of a request processing apparatus according to the present application.
  • Fig. 9 is a schematic structural diagram of a computer system suitable for implementing an electronic device according to an embodiment of the present application.
  • the request processing system includes front-end equipment, proxy server, resource conversion server and back-end server.
  • the front-end equipment can be hardware or software.
  • the front-end device When the front-end device is hardware, it can be various electronic devices that support network information transmission, including but not limited to smart phones, tablet computers, e-book readers, laptop portable computers, desktop computers, and wearable devices.
  • the front-end device can send the request through an application (such as a browser) installed on it.
  • the front-end device When the front-end device is software, it can be installed in the electronic devices listed above. It can be implemented as multiple software or software modules (for example, to provide distributed services), or as a single software or software module. There is no specific limitation here.
  • the proxy server may be a proxy web (network) server such as Nginx (engine x).
  • the request of the front-end device (such as a resource address acquisition request) can be forwarded to the back-end server, and the address of the resource (such as pictures, videos, text, etc.) returned by the back-end server can be forwarded to the front-end device.
  • the front-end equipment and the back-end server are isolated.
  • the resource conversion server may be a device that provides resource conversion services, and the device may be hardware or software.
  • the device When the device is hardware, it can be implemented as a distributed server cluster composed of multiple servers, or as a single server.
  • the device When the device is software, it can be implemented as multiple software or software modules (for example, to provide distributed services), or as a single software or software module. There is no specific limitation here.
  • the back-end server may be a server that provides data support for the front-end device.
  • the back-end server can interact with the front-end device through the proxy server to process resource address acquisition requests and so on.
  • the resource conversion server can be hardware or software.
  • the device When the device is hardware, it can be implemented as a distributed server cluster composed of multiple servers, or as a single server.
  • the device When the device is software, it can be implemented as multiple software or software modules (for example, to provide distributed services), or as a single software or software module. There is no specific limitation here.
  • the interaction process of each device of the request processing system may include the following steps:
  • Step 101 The front-end device sends a resource address acquisition request to the proxy server.
  • the front-end device can send a resource address acquisition request to the proxy server through a browser application installed on it.
  • the resource address acquisition request can be used to request the resource address.
  • the resource address may refer to the access address of the resource, and specifically may refer to the URL (Uniform Resource Locator, Uniform Resource Locator) of the resource.
  • the resources here can be various network data, such as pictures, videos, texts, etc.
  • the user can trigger the sending of the resource address acquisition request in various ways. For example, if a user clicks on a certain link on a certain page through a browser, he can send a resource address acquisition request through the browser to request the URL of the resource corresponding to the link. For another example, if a user enters a search term in a search engine and clicks a search button, he can send a resource address acquisition request through the browser to request the URL of the search result corresponding to the search term.
  • Step 102 The proxy server forwards the resource address acquisition request to the back-end server.
  • the proxy server may forward the resource address acquisition request to the back-end server.
  • Step 103 The back-end server returns the original resource address to the proxy server.
  • the back-end server after receiving the resource address acquisition request, the back-end server can query and return the original resource address of the target resource requested by the resource address acquisition request. It should be noted that, in addition to the original resource address, the data returned by the back-end server to the proxy server may also include other data for supporting network communication, which is not limited in this embodiment.
  • the original resource address may be the original URL of the target resource. It is understandable that the URL of the resource may be changed according to business needs, so the original URL may be the URL before the change of the target resource, that is, the URL to be changed.
  • the original resource address may include the original IP (Internet Protocol, Internet Protocol) address of the device where the target resource is located and parameter information of the target resource.
  • the device where the target resource is located here is the device storing the target resource. Since the URL of the resource may be changed according to business needs and the changed content may be the IP address of the device where the target resource is located, the IP address in the original resource address may be called the original IP address.
  • the URL usually contains various information such as IP address, port, URL parameters, path, transmission protocol, etc. Therefore, the parameter information here may refer to information other than the IP address in the original URL of the target resource. Such as port, URL parameter, path, transmission protocol information, etc.
  • Step 104 The proxy server replaces the original IP address with the IP address of the resource conversion server to obtain the modified resource address.
  • the proxy server can replace the original IP address in the original resource address with the IP address of the resource conversion server to obtain the modified resource address.
  • the sub_filter module of Nginx can be used to replace the original IP address with the IP address of the resource conversion server.
  • IP1 is used to represent the original IP address
  • IPs is used to represent the IP address of the resource conversion server
  • the original IP address (ie IP1) in the original resource address can be replaced with the resource by adding the code sub_filter'IP1''IPs' Convert the IP address (ie IPs) of the server so that the modified resource address points to the resource conversion server.
  • Step 105 The proxy server returns the modified resource address to the front-end device.
  • Step 106 The front-end device sends a target resource acquisition request including parameter information to the resource conversion server based on the IP address in the modified resource address.
  • the IP address in the modified resource address (that is, the modified URL) obtained by the front-end device is the IP address of the resource conversion server. Therefore, the modified resource address points to the resource conversion server. With this, a target resource acquisition request can be sent to the resource conversion server to acquire the target resource.
  • the target resource acquisition request here may include parameter information in the modified resource address, and the parameter information is the same as the parameter information in the original resource address.
  • Step 107 The resource conversion server determines the current resource address of the target resource based on the parameter information.
  • the resource conversion server may determine the current resource address of the target resource based on the parameter information in the received target resource acquisition request.
  • different resource address conversion rules can be preset for different resource address change scenarios, and the current resource address of the target resource can be generated based on the resource address conversion rule.
  • the new IP address can be stored in the resource conversion server in advance.
  • the resource conversion server After the resource conversion server receives the target resource acquisition request, it combines the new IP address with the parameter information in the target resource acquisition request to obtain a new URL, that is, the current resource address.
  • the new URL is the URL obtained by replacing the IP address in the original URL with the new IP address.
  • the corresponding relationship between the original path and the new path can be set in advance, and the corresponding relationship can be stored In the resource conversion server.
  • the resource conversion server After the resource conversion server receives the target resource acquisition request, it may replace the original path in the parameter information carried in the target resource acquisition request with a new path corresponding to the original path.
  • the proxy server will replace the original IP address with the IP address of the resource server.
  • the resource conversion server can pre-store the original IP address (that is, the above-mentioned designated IP address), so that after replacing the original path in the parameter information with the new path, the original IP address and the updated path The parameter information is combined to obtain a new URL, that is, the current resource address.
  • the original IP address may not be restricted. For example, every time the proxy server receives the original resource address returned by the back-end server, it can replace the original IP address in the original resource address with the IP address of the resource server .
  • the resource conversion server may also pre-store the correspondence between the resource ID and the IP address of the device where the resource is located.
  • the original path in the parameter information carried in the target resource acquisition request may include a resource ID, and based on the resource ID and the foregoing corresponding relationship, the IP address of the device where the target resource is located can be determined. Therefore, after replacing the original path in the parameter information with the new path, the IP address of the device where the target resource is located can be combined with the updated path parameter information to obtain a new URL, that is, the current resource address.
  • the IP address recorded in the correspondence is the original IP address.
  • the IP address recorded in the correspondence is the latest IP address, and the resource conversion server can maintain the correspondence to update the correspondence in real time. Therefore, when the IP address of the device where the target resource is located and the path of the resource change at the same time, the resource conversion server can also determine the current resource address.
  • the resource address change scenario and the resource address conversion rule can also be set as needed, and are not limited to the above examples.
  • Step 108 The resource conversion server obtains the target resource from the current resource address.
  • the resource conversion server can obtain the target resource from the current resource address.
  • Step 109 The resource conversion server returns the target resource to the front-end device.
  • FIG. 2 shows a schematic diagram of an application scenario of the request processing system.
  • the browser that is, the front-end device
  • Nginx which can be regarded as a proxy server
  • the back-end service cluster can return the original resource address based on the request.
  • the original resource address contains the original IP address of the device where the target resource is located.
  • Nginx can modify the IP address in the original resource address to the IP address of the resource conversion server through the sub_filter module, so that the modified resource address points to the resource conversion server.
  • Nginx can return the modified resource address to the browser.
  • the browser can request the resource from the resource conversion server.
  • the resource conversion server can determine the new resource address (that is, the current resource address), and obtain the resource from the new resource address, thereby forwarding the obtained resource to the browser.
  • the acquired resources may be resources in the new IP address, resources under the new rule path, third-party resources, and so on.
  • the resource conversion server can also be used to determine the current resource address based on other rules, thereby improving the scalability of the resource address change scenario.
  • the resource conversion server may first determine the resource address change type of the target resource.
  • the resource address change type may include but is not limited to at least one of the following: the IP address of the device where the target resource is located is changed, the path of the target resource is changed, and the transmission protocol is changed. Then, the resource conversion server can determine the current resource address of the target resource based on the parameter information and the resource address change type.
  • the resource address change type is that the IP address of the device where the target resource is located changes.
  • the resource conversion server can obtain the current IP address of the device where the target resource is located. Then, based on the current IP address and parameter information, the current resource address of the target resource is determined. For example, by combining the current IP address and parameter information, the current resource address is obtained.
  • FIG. 3 shows a schematic diagram of the application scenario of the request processing system.
  • the browser that is, the front-end device
  • Nginx which can be regarded as a proxy server
  • the back-end service cluster can return the original resource address based on the request.
  • the original resource address contains the original IP address of the device where the target resource is located.
  • Nginx can use the sub_filter module to modify the original IP address in the original resource address (IP1 in Figure 3) to the IP address of the resource conversion server (IPs in Figure 3), so that the modified resource address points to the resource conversion server.
  • Nginx can return the modified resource address to the browser.
  • the browser can request the resource from the resource conversion server.
  • the IP address of the device where the target resource is located IP1 in FIG. 3 can be changed to IP2, IP3, or IP4 in FIG. 3, etc.
  • the resource conversion server can determine a new resource address based on the new IP address (such as IP2, IP3, or IP4, etc.) and the parameter information carried in the request.
  • the resource can be obtained from the new resource address, so that the obtained resource is forwarded to the browser.
  • the resource conversion server independent of the back-end server points to the changed IP address to obtain resources, without modifying the data in the back-end server or restarting the back-end server. This reduces the workload and improves the safety and stability of the system.
  • the parameter information may include the original path of the target resource.
  • the resource address change type is that the path of the target resource changes.
  • the resource conversion server may replace the original path in the parameter information with the current path of the target resource.
  • the current resource address of the target resource can be determined based on the original IP address of the storage device of the target resource and the parameter information after the replacement path. For example, by combining the original IP address and the parameter information after the replacement path, the current resource address is obtained.
  • Fig. 4 shows a schematic diagram of the application scenario of the request processing system.
  • the browser that is, the front-end device
  • Nginx which can be regarded as a proxy server
  • the back-end service cluster can return the original resource address based on the request.
  • the original resource address contains the original IP address of the device where the target resource is located.
  • Nginx can use the sub_filter module to modify the original IP address in the original resource address (IP in Figure 4) to the IP address of the resource conversion server (IPs in Figure 4), so that the modified resource address points to the resource conversion server.
  • Nginx can return the modified resource address to the browser.
  • the browser can request the resource from the resource conversion server.
  • the original path is path1
  • the new path (path) can be path2, path3, or path4. Therefore, the resource conversion server can replace the original path path1 in the parameter information with a new path (path2, path3, or path4, etc.). Then, the resource conversion server can obtain the required resources from the device pointed to by the original IP address according to the parameter information replaced with the new path, and thus forward the obtained resources to the browser.
  • the resource conversion server independent of the back-end server points to the resource address after the changed path to obtain resources, without modifying the data in the back-end server or restarting the back-end server. This reduces the workload and improves the safety and stability of the system.
  • the IP address of the device where the target resource is located and the path in the resource address can be changed at the same time.
  • the operations involved in FIG. 3 and FIG. 4 can be combined at the same time, in the device pointed to by the changed IP address, the target resource can be obtained according to the changed path.
  • the parameter information may include the identification (such as ID) of the target resource.
  • the resource conversion server can be connected to or deployed with a database. The latest resource address corresponding to each resource identifier can be stored in the database. At this time, after receiving the target resource acquisition request, the resource conversion server may query the database for the resource address associated with the identifier of the target resource. Thus, the resource address that is queried can be determined as the current resource address of the target resource.
  • FIG. 5 shows a schematic diagram of the application scenario of the request processing system.
  • the browser that is, the front-end device
  • Nginx which can be regarded as a proxy server
  • the back-end service cluster can return the original resource address based on the request.
  • the original resource address contains the original IP address of the device where the target resource is located.
  • Nginx can use the sub_filter module to modify the original IP address in the original resource address (IP in Figure 5) to the IP address of the resource conversion server (IPs in Figure 5), so that the modified resource address points to the resource conversion server.
  • Nginx can return the modified resource address to the browser.
  • the browser can request the resource from the resource conversion server.
  • the resource conversion server can query the database based on the ID of the resource in the parameter information in the request, so as to obtain the new URL (that is, the new resource address) of the required resource.
  • the database may include the new URL corresponding to each resource. Different resources have different IDs, such as ID1, ID2, and so on. After obtaining the new URL of the required resource, the resource conversion server can obtain the resource according to the new URL, thereby forwarding the obtained resource to the browser.
  • the resource conversion server independent of the back-end server can query the current resource address of the target resource from the database based on the identification of the target resource, without modifying the data in the back-end server, and there is no need to restart the back-end server.
  • the workload has improved the safety and stability of the system.
  • the type of resource address change is a change in the transfer protocol, such as converting HTTP (Hyper Text Transfer Protocol) to FTP (File Transfer Protocol).
  • the resource conversion server can obtain the IP address of the device where the target resource that complies with the current transmission protocol is located. Then, the transmission protocol information in the parameter information is replaced with the changed target transmission protocol information (that is, the new transmission protocol information).
  • the current resource address of the target resource can be determined based on the acquired IP address and the parameter information after replacing the transmission protocol. For example, by combining the IP address and the parameter information after replacing the transmission protocol, the current resource address is obtained.
  • FIG. 6 shows a schematic diagram of the application scenario of the request processing system.
  • the browser that is, the front-end device
  • Nginx which can be regarded as a proxy server
  • the back-end service cluster can return the original resource address based on the request.
  • the original resource address contains the original IP address of the device where the target resource is located.
  • Nginx can use the sub_filter module to modify the original IP address in the original resource address (IP in Figure 6) to the IP address of the resource conversion server (IPs in Figure 6), so that the modified resource address points to the resource conversion server.
  • Nginx can return the modified resource address to the browser.
  • the browser can request the resource from the resource conversion server.
  • the transfer protocol is changed from HTTP to FTP.
  • the resource conversion server can be pre-configured with the IP address of the device (such as the FTP server) where the target resource that follows the current transfer protocol is located. At this time, the resource conversion server can directly obtain the IP address locally, thereby obtaining the required resource from the FTP server pointed to by the IP address according to the parameter information, and forwarding the obtained resource to the browser.
  • the resource conversion server independent of the back-end server obtains resources from the devices that comply with the changed transmission protocol, without modifying the data in the back-end server, and without restarting the back-end server. Less workload and improved system safety and stability.
  • the request processing system forwards the resource address acquisition request sent by the front-end device to the back-end server through the proxy server, thereby receiving the original resource address returned by the back-end server, where the original resource address includes the device where the target resource is located The original IP address and the parameter information of the target resource. Then, the original IP address is replaced with the IP address of the resource conversion server through the proxy server, and the modified resource address is obtained, so that the modified resource address is returned to the front-end device. Afterwards, the front-end device sends a target resource acquisition request containing parameter information to the resource conversion server based on the IP address in the modified resource address.
  • the resource conversion server determines the current resource address of the target resource based on the parameter information, obtains the target resource from the current resource address, and returns the target resource to the front-end device.
  • a resource conversion server independent of the back-end server is introduced into the system.
  • the resource conversion server determines the current resource address of the target resource.
  • FIG. 7 shows a flow 700 of an embodiment of a request processing method according to the present application.
  • the request processing method is applied to a resource conversion server, the above-mentioned resource conversion server is in communication connection with a front-end device, and the above-mentioned front-end device is in communication connection with the back-end server through a proxy server.
  • the request processing method includes the following steps:
  • Step 701 Receive a target resource acquisition request sent by a front-end device.
  • the execution subject of the request processing method can receive the target resource acquisition request sent by the front-end device.
  • the target resource acquisition request may include parameter information of the target resource.
  • the above-mentioned parameter information can be obtained by the front-end device from the resource address.
  • the above resource address can be obtained by the proxy server by modifying the IP address in the original resource address (for example, the original IP address of the device where the target resource is located is modified to the IP address of the resource conversion server, so that the modified resource address can point to the resource conversion server).
  • the foregoing original resource address may be returned by the back-end server after receiving the resource address acquisition request forwarded by the front-end device via the proxy server.
  • Step 702 Determine the current resource address of the target resource based on the parameter information.
  • the above-mentioned execution subject may determine the current resource address of the target resource based on the parameter information.
  • the above-mentioned execution subject may determine the resource address change type of the above-mentioned target resource.
  • the aforementioned resource address change type includes one or more of the change of the IP address of the device where the target resource is located, the change of the path of the target resource, and the change of the transmission protocol. Then, the current resource address of the target resource can be determined based on the parameter information and the resource address change type.
  • the execution subject in response to the resource address change type being the IP address of the device where the target resource is changed, may obtain the current IP address of the device where the target resource is located. Then, the current resource address of the target resource can be determined based on the current IP address and the parameter information.
  • the foregoing parameter information includes the original path of the foregoing target resource.
  • the execution subject may replace the original path in the parameter information with the current path of the target resource. Then, the current resource address of the target resource can be determined based on the original IP address of the storage device of the target resource and the parameter information after the replacement path.
  • the above-mentioned parameter information includes the identifier of the above-mentioned target resource.
  • the above-mentioned execution subject can query the resource address associated with the above-mentioned identifier from the database. Then, the resource address found can be determined as the current resource address of the aforementioned target resource.
  • the above-mentioned executive body may obtain the IP address of the device where the target resource that complies with the current transmission protocol is located. Then, the current resource address of the target resource can be determined based on the obtained IP address and the parameter information.
  • Step 703 Obtain the target resource from the current resource address, and return the target resource to the front-end device.
  • steps 701 to 703 can refer to the corresponding steps in the embodiment corresponding to FIG. 1, which will not be repeated here.
  • the resource conversion server receives the target resource acquisition request containing parameter information sent by the front-end device, and then determines the current resource address of the target resource based on the parameter information, and finally acquires the target resource from the current resource address. And return the target resource to the front-end equipment.
  • the current resource address of the target resource can be determined by the resource conversion server independent of the back-end server.
  • this application provides an embodiment of a request processing apparatus.
  • the apparatus embodiment corresponds to the method embodiment shown in FIG.
  • the above-mentioned resource conversion server is in communication connection with a front-end device
  • the above-mentioned front-end device is in a communication connection with the back-end server through a proxy server.
  • the request processing apparatus 800 in this embodiment includes: a receiving unit 801 configured to receive a target resource acquisition request sent by a front-end device, wherein the target resource acquisition request includes parameter information of the target resource,
  • the above-mentioned parameter information is obtained by the above-mentioned front-end device from the resource address
  • the above-mentioned resource address is obtained by the above-mentioned proxy server by replacing the original IP address in the original resource address with the IP address of the above-mentioned resource conversion server, and the above-mentioned original resource address is obtained by the above-mentioned back-end
  • the server returns after receiving the resource address acquisition request forwarded by the front-end device via the above-mentioned proxy server
  • the determining unit 802 is configured to determine the current resource address of the above-mentioned target resource based on the above-mentioned parameter information
  • the returning unit 803 is configured to obtain the current resource address from the above-mentioned current Obtain the target resource from the resource address,
  • the determining unit 802 is further configured to determine the resource address change type of the target resource, where the resource address change type includes a change in the IP address of the device where the target resource is located. One or more of a change in the path of the target resource and a change in the transmission protocol; based on the above parameter information and the above resource address change type, the current resource address of the above target resource is determined.
  • the determining unit 802 is further configured to: in response to the resource address change type being the IP address of the device where the target resource is changed, obtain the current IP of the device where the target resource is located. Address: Based on the current IP address and the parameter information, the current resource address of the target resource is determined.
  • the aforementioned parameter information includes the original path of the aforementioned target resource; and, the aforementioned determining unit 802 is further configured to respond to the occurrence of the aforementioned resource address change type being the path of the aforementioned target resource. Change, replace the original path in the parameter information with the current path of the target resource; determine the current resource address of the target resource based on the original IP address of the storage device of the target resource and the parameter information after the replacement path.
  • the above-mentioned parameter information includes the identifier of the above-mentioned target resource; and, the above-mentioned determining unit 802 is further configured to query the resource address associated with the above-mentioned identifier from the database; The resource address of is determined as the current resource address of the aforementioned target resource.
  • the above determining unit 802 is further configured to: in response to the above resource address change type being a transmission protocol change, obtain the IP address of the device where the target resource that complies with the current transmission protocol is located; Replace the transmission protocol information in the above parameter information with the changed target transmission protocol information; determine the current resource address of the above target resource based on the acquired IP address and the parameter information after replacing the transmission information.
  • the device provided by the foregoing embodiment of the present application receives a target resource acquisition request containing parameter information sent by a front-end device through a resource conversion server, and then determines the current resource address of the target resource based on the parameter information, and finally acquires the target resource from the current resource address, And return the target resource to the front-end equipment.
  • the current resource address of the target resource can be determined by the resource conversion server independent of the back-end server.
  • FIG. 9 shows a schematic structural diagram of a computer system 900 suitable for implementing an electronic device according to an embodiment of the present application.
  • the electronic device shown in FIG. 9 is only an example, and should not bring any limitation to the function and scope of use of the embodiments of the present application.
  • the computer system 900 includes a central processing unit (CPU) 901, which can be based on a program stored in a read-only memory (ROM) 902 or a program loaded from a storage portion 908 into a random access memory (RAM) 903 And perform various appropriate actions and processing.
  • ROM read-only memory
  • RAM random access memory
  • various programs and data required for the operation of the system 900 are also stored.
  • the CPU 901, the ROM 902, and the RAM 903 are connected to each other through a bus 904.
  • An input/output (I/O) interface 905 is also connected to the bus 904.
  • the following components are connected to the I/O interface 905: an input section 906 including a keyboard, a mouse, etc.; an output section 907 including a liquid crystal display (LCD), etc., and speakers, etc.; a storage section 908 including a hard disk, etc.;
  • the communication section 909 performs communication processing via a network such as the Internet.
  • the drive 910 is also connected to the I/O interface 905 as needed.
  • a removable medium 911 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 910 as needed, so that the computer program read from it is installed into the storage portion 908 as needed.
  • the process described above with reference to the flowchart can be implemented as a computer software program.
  • the embodiments of the present disclosure include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program contains program code for executing the method shown in the flowchart.
  • the computer program may be downloaded and installed from the network through the communication part 909, and/or installed from the removable medium 911.
  • the central processing unit (CPU) 901 the above-mentioned functions defined in the method of the present application are executed.
  • the computer-readable medium described in this application may be a computer-readable signal medium or a computer-readable storage medium, or any combination of the two.
  • the computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or device, or a combination of any of the above. More specific examples of computer-readable storage media may include, but are not limited to: electrical connections with one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable Programmable read only memory (EPROM or flash memory), optical fiber, portable compact disk read only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination of the above.
  • the computer-readable storage medium may be any tangible medium that contains or stores a program, and the program may be used by or in combination with an instruction execution system, apparatus, or device.
  • a computer-readable signal medium may include a data signal propagated in a baseband or as a part of a carrier wave, and a computer-readable program code is carried therein.
  • This propagated data signal can take many forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the foregoing.
  • the computer-readable signal medium may also be any computer-readable medium other than the computer-readable storage medium.
  • the computer-readable medium may send, propagate, or transmit the program for use by or in combination with the instruction execution system, apparatus, or device .
  • the program code contained on the computer-readable medium can be transmitted by any suitable medium, including but not limited to: wireless, wire, optical cable, RF, etc., or any suitable combination of the above.
  • each block in the flowchart or block diagram can represent a module, program segment, or part of code, and the module, program segment, or part of code contains one or more for realizing the specified logic function.
  • Executable instructions can also occur in a different order from the order marked in the drawings. For example, two blocks shown one after the other can actually be executed substantially in parallel, or they can sometimes be executed in the reverse order, depending on the functions involved.
  • each block in the block diagram and/or flowchart, and the combination of the blocks in the block diagram and/or flowchart can be implemented by a dedicated hardware-based system that performs the specified functions or operations Or it can be realized by a combination of dedicated hardware and computer instructions.
  • the units involved in the embodiments described in this application can be implemented in software or hardware.
  • the described units can also be arranged in the processor, where the names of these units do not constitute a limitation on the unit itself under certain circumstances.
  • the present application also provides a computer-readable medium, which may be included in the device described in the above embodiment; or it may exist alone without being assembled into the device.
  • the above-mentioned computer-readable medium carries one or more programs.
  • the apparatus is caused to receive a target resource acquisition request sent by the front-end equipment, wherein the target resource acquisition request
  • the parameter information of the target resource, the parameter information is obtained by the front-end device from the resource address, the resource address is obtained by the proxy server by modifying the IP address in the original resource address, and the original resource address is obtained by the source
  • the back-end server returns after receiving the resource address acquisition request forwarded by the front-end device via the proxy server; determines the current resource address of the target resource based on the parameter information; acquires the target from the current resource address Resource, and return the target resource to the front-end device.

Abstract

Un système, un procédé et un appareil de traitement de demande, et un dispositif électronique et un support lisible par ordinateur sont divulgués. Le système comprend un dispositif frontal, un serveur mandataire, un serveur de transformation de ressource et un serveur dorsal, le serveur mandataire étant utilisé pour l'acheminement, au serveur dorsal, d'une demande d'acquisition d'adresse de ressource envoyée par le dispositif frontal, de façon à recevoir une adresse de ressource d'origine renvoyée par le serveur dorsal, remplacer une adresse IP d'origine dans l'adresse de ressource d'origine avec une adresse IP du serveur de transformation de ressource, et renvoyer une adresse de ressource modifiée au dispositif frontal ; le dispositif frontal est utilisé pour envoyer, au serveur de transformation de ressource et sur la base de l'adresse IP dans l'adresse de ressource modifiée, une demande d'acquisition de ressource cible qui comprend des informations de paramètre ; et le serveur de transformation de ressource est utilisé pour déterminer l'adresse de ressource actuelle d'une ressource cible sur la base des informations de paramètre, acquérir la ressource cible à partir de l'adresse de ressource actuelle, et renvoyer la ressource cible au dispositif frontal. Au moyen des modes de réalisation, la sécurité et la stabilité d'un système sont améliorées lorsque des changements fréquents se produisent en termes d'adresse de ressource.
PCT/CN2020/118867 2020-06-22 2020-09-29 Système, procédé et appareil de traitement de demande, et dispositif électronique et support lisible par ordinateur WO2021258575A1 (fr)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202010576545.2A CN111931100B (zh) 2020-06-22 请求处理系统、方法、装置、电子设备和计算机可读介质
CN202010576545.2 2020-06-22

Publications (1)

Publication Number Publication Date
WO2021258575A1 true WO2021258575A1 (fr) 2021-12-30

Family

ID=73317623

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/118867 WO2021258575A1 (fr) 2020-06-22 2020-09-29 Système, procédé et appareil de traitement de demande, et dispositif électronique et support lisible par ordinateur

Country Status (1)

Country Link
WO (1) WO2021258575A1 (fr)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115118624A (zh) * 2022-06-28 2022-09-27 平安银行股份有限公司 一种生产流量的分流方法、装置、电子设备及存储介质
CN115314552A (zh) * 2022-06-30 2022-11-08 中汽创智科技有限公司 一种数据处理方法、装置、电子设备及存储介质

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104105007A (zh) * 2013-04-09 2014-10-15 腾讯科技(深圳)有限公司 移动终端的视频加载方法、装置及系统
EP3588875A1 (fr) * 2018-06-30 2020-01-01 Hewlett-Packard Enterprise Development LP Services web sur le routage et le transfert virtuels
CN110661826A (zh) * 2018-06-28 2020-01-07 北京京东尚科信息技术有限公司 代理服务器端处理网络请求的方法和代理服务器
CN111107134A (zh) * 2019-11-29 2020-05-05 北京三快在线科技有限公司 连接控制方法、装置、电子设备及可读存储介质

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104105007A (zh) * 2013-04-09 2014-10-15 腾讯科技(深圳)有限公司 移动终端的视频加载方法、装置及系统
CN110661826A (zh) * 2018-06-28 2020-01-07 北京京东尚科信息技术有限公司 代理服务器端处理网络请求的方法和代理服务器
EP3588875A1 (fr) * 2018-06-30 2020-01-01 Hewlett-Packard Enterprise Development LP Services web sur le routage et le transfert virtuels
CN111107134A (zh) * 2019-11-29 2020-05-05 北京三快在线科技有限公司 连接控制方法、装置、电子设备及可读存储介质

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115118624A (zh) * 2022-06-28 2022-09-27 平安银行股份有限公司 一种生产流量的分流方法、装置、电子设备及存储介质
CN115118624B (zh) * 2022-06-28 2024-04-05 平安银行股份有限公司 一种生产流量的分流方法、装置、电子设备及存储介质
CN115314552A (zh) * 2022-06-30 2022-11-08 中汽创智科技有限公司 一种数据处理方法、装置、电子设备及存储介质
CN115314552B (zh) * 2022-06-30 2023-08-22 中汽创智科技有限公司 一种数据处理方法、装置、电子设备及存储介质

Also Published As

Publication number Publication date
CN111931100A (zh) 2020-11-13

Similar Documents

Publication Publication Date Title
US11677857B2 (en) Configurable and dynamic transformation of web content
US11240289B2 (en) Apparatus and method for low-latency message request/response processing
CN108282529B (zh) 发布和订阅数据的系统、方法和装置
US7499981B2 (en) Methods and apparatus for peer-to-peer services
US7546363B2 (en) Adaptive route determination for peer-to-peer services
US9871850B1 (en) Enhanced browsing using CDN routing capabilities
CN109218368B (zh) 实现Http反向代理的方法、装置、电子设备和可读介质
US10182126B2 (en) Multilevel redirection in a virtual desktop infrastructure environment
US10284671B2 (en) Dynamic bundling of web components for asynchronous delivery
JP2020508505A (ja) カスタムデジタルコンポーネント
WO2021258575A1 (fr) Système, procédé et appareil de traitement de demande, et dispositif électronique et support lisible par ordinateur
US20180131678A1 (en) Managing Idempotent Operations while Interacting with a System of Record
WO2016176160A1 (fr) Agrégation et fédération d'entités et d'associations de service distribué
US20190102465A1 (en) Api query extension
KR20110008179A (ko) 사이트맵 생성
US20100036892A1 (en) Determination of an updated data source from disparate data sources
CN112256772A (zh) 数据服务方法、装置以及可读存储介质
CN110267077B (zh) 离线缓存方法、装置、终端及可读存储介质
CN109428872B (zh) 数据传输方法、设备、服务器及启动方法、系统
US10868881B1 (en) Loading web resources using remote resource pushing
CN113760278A (zh) 一种页面管理方法和装置
US11323537B1 (en) Generating early hints informational responses at an intermediary server
US10438169B2 (en) Systems and methods for providing binary data files for real-time collaboration
US20220229858A1 (en) Multi-cloud object store access
US20230093004A1 (en) System and method for asynchronous backend processing of expensive command line interface commands

Legal Events

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

Ref document number: 20941864

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20941864

Country of ref document: EP

Kind code of ref document: A1