Data retrieval method, device, electronic device and storage medium

By receiving faulty requests from the data requesting end and switching to the simulated server, the problem of application unavailability caused by third-party server failure is solved, improving user experience and simplifying application design.

CN116155700BActive Publication Date: 2024-08-23BEIJING QIYI CENTURY SCI & TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310175463.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-02-27
Publication Date
2024-08-23
Estimated Expiration
2043-02-27

AI Technical Summary

Technical Problem

In the existing technology, when the third-party server fails, the application cannot effectively handle it, resulting in a reduced user experience, and the application is bloated and requires additional fault protection functions.

Method used

By receiving the data retrieval fault request from the data requesting end, the retrieval data is determined based on the data retrieval interface identification and the fault identification, and is sent to the simulation server. The network address of the simulation server is sent to the data requesting end, triggering the data requesting end from Simulate the server to obtain the required data.

Benefits of technology

When the third-party server fails, it switches to other servers to retrieve data, avoiding the application from being dragged to death, improving the user experience, and reducing the complexity and labor costs of the application.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116155700B
    Figure CN116155700B
Patent Text Reader

Abstract

The data retrieval method, device, electronic device and storage medium provided by the embodiments of the present invention include receiving a data retrieval fault request sent by a data request end, determining the retrieval data based on the data retrieval interface identifier and the data retrieval fault identifier of the data retrieval fault request packet, and sending the retrieval data to a simulation server; sending an address conversion request carrying the first network address of the simulation server to the data request end to trigger the data request end to send a data retrieval request carrying the data retrieval interface identifier to the simulation server through the first network address, so that the simulation server sends the retrieval data corresponding to the data retrieval interface identifier to the data request end. The present invention can switch to the simulation server to retrieve the required retrieval data when the data request end requests to retrieve data failure, effectively solving the problem of the service, i.e., the application being dragged to death and becoming unavailable due to the data request end failing to retrieve data, and greatly improving the user experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] Embodiments of the present invention relate to the field of Internet technology, and in particular to a data retrieval method, device, electronic device and storage medium. Background Art

[0002] With the continuous development and improvement of network technology, terminals such as mobile phones and tablet computers have become an indispensable part of people's lives. People can use the applications in these terminals to realize functions such as communication and games, meeting various needs of users in work and life.

[0003] When a user opens an application, the server corresponding to the application needs to retrieve the data required by the application from the third-party server through the data retrieval interface to enable normal use of the application. Usually, during a third-party server failure, in order to prevent the application from being blocked and becoming unavailable, common fault handling methods include but are not limited to: circuit breaking, security data, downgrade, etc.

[0004] However, the above solutions all rely on the application server to support these functions in advance, which leads to bloated applications and waste of manpower. In other words, in addition to business functions, the business team is also required to develop fault protection and processing functions. At the same time, for applications that do not support fault protection and processing functions in advance, there is no other way to handle the failure of the third-party server, which is likely to cause the application to be unavailable, reducing the user experience. Summary of the invention

[0005] In view of this, the embodiments of the present invention provide a data retrieval method, device, electronic device and storage medium, which can switch to other servers to retrieve data required by the application during a failure of a third-party server, effectively solving the problem of the application being unavailable due to being stuck, and greatly improving the user experience.

[0006] In a first aspect, an embodiment of the present invention provides a data retrieval method, wherein the method is applied to a fault handling platform; the method comprises:

[0007] Receive a data retrieval fault request sent by a data request end, where the data retrieval fault request includes a data retrieval interface identifier and a data retrieval fault identifier;

[0008] Determine the retrieved data based on the data retrieval interface identifier and the data retrieval fault identifier, and send the retrieved data to the simulation server;

[0009] An address translation request carrying the first network address of the simulated server is sent to the data request end to trigger the data request end to send a data retrieval request carrying the data retrieval interface identifier to the simulated server end through the first network address, so that the simulated server end sends the retrieval data corresponding to the data retrieval interface identifier to the data request end.

[0010] In a possible implementation, determining to retrieve data based on the data retrieval interface identifier and the data retrieval fault identifier includes:

[0011] Searching for a target specific identifier corresponding to a data retrieval interface identifier and a data retrieval fault identifier from a data retrieval library; wherein the data retrieval library stores a plurality of different specific retrieval data and a specific identifier corresponding to each specific retrieval data, the specific identifier including a specific data retrieval interface identifier and a specific data retrieval fault identifier;

[0012] The target specific retrieval data corresponding to the target specific identifier is determined as the retrieval data.

[0013] In a possible implementation, sending an address translation request carrying a first network address of a simulated server to a data request end includes:

[0014] In response to an input sending operation for the network address of the simulated server, an address translation request carrying the first network address of the simulated server is sent to the data requesting end.

[0015] In a possible implementation, it is characterized in that the method further comprises:

[0016] Monitor whether the simulated server has any faults;

[0017] In case of a failure in the simulation server, the retrieved data will be sent to the backup simulation server;

[0018] In the case that there is no fault in the simulation server, the step of sending the retrieved data to the simulation server is executed.

[0019] In a possible implementation, the data retrieval fault request further includes a second network address, where the second network address is a network address of a data service end where a data service that the data request end relies on is located; the method further includes:

[0020] Whether the second network address and the data retrieval interface identifier are found in the preset request rule base; wherein the preset request rule base stores a plurality of different specific network addresses and a plurality of different specific data retrieval interface identifiers;

[0021] When the second network address and the data retrieval interface identifier are found in the preset request rule library, a step of sending an address translation request carrying the first network address of the simulated server to the data request end is performed.

[0022] In a second aspect, an embodiment of the present invention provides a data retrieval method, wherein the method is applied to a data requesting end; the method comprises:

[0023] Sending a data retrieval fault request to the fault handling platform, the data retrieval fault request including a data retrieval interface identifier and a data retrieval fault identifier;

[0024] receiving an address translation request for a data retrieval fault request sent by a fault handling platform, wherein the address translation request carries a first network address of a simulated server;

[0025] A data retrieval request carrying a data retrieval interface identifier is sent to the first network address to trigger the simulation server to send the retrieval data corresponding to the data retrieval interface identifier to the data requesting end; wherein the retrieval data is determined by the fault handling platform based on the data retrieval interface identifier and the data retrieval fault identifier and sent to the simulation server.

[0026] In a third aspect, an embodiment of the present invention provides a data retrieval method, wherein the method is applied to a simulation server; the method comprises:

[0027] Receiving the retrieved data sent by the fault processing platform; wherein the retrieved data is determined by the fault processing platform based on the data retrieval interface identifier and the data retrieval fault identifier included in the data retrieval fault request sent by the received data request end;

[0028] Receive a data retrieval request carrying a data retrieval interface identifier sent by a data request end; wherein the data retrieval request is sent by the data request end based on the first network address of the simulated server sent by the fault handling platform;

[0029] The retrieved data corresponding to the data retrieval interface identifier is sent to the data request end.

[0030] In a fourth aspect, an embodiment of the present invention provides a data retrieval device, wherein the device is applied to a fault processing platform; the device includes:

[0031] A first receiving module, configured to receive a data retrieval fault request sent by a data requesting end, wherein the data retrieval fault request includes a data retrieval interface identifier and a data retrieval fault identifier;

[0032] A determination module, used for determining the retrieved data based on the data retrieval interface identifier and the data retrieval fault identifier, and sending the retrieved data to the simulation server;

[0033] The first sending module is used to send an address conversion request carrying the first network address of the simulated server to the data request end, so as to trigger the data request end to send a data retrieval request carrying the data retrieval interface identifier to the simulated server through the first network address, so that the simulated server sends the retrieval data corresponding to the data retrieval interface identifier to the data request end.

[0034] In a fifth aspect, an embodiment of the present invention provides a data retrieval device, wherein the device is applied to a data request end; the device includes:

[0035] A second sending module is used to send a data retrieval fault request to the fault processing platform, where the data retrieval fault request includes a data retrieval interface identifier and a data retrieval fault identifier;

[0036] A second receiving module is used to receive an address conversion request for a data retrieval fault request sent by the fault processing platform, wherein the address conversion request carries a first network address of a simulated server;

[0037] The third sending module is used to send a data retrieval request carrying a data retrieval interface identifier to the first network address, so as to trigger the simulation server to send the retrieval data corresponding to the data retrieval interface identifier to the data requesting end; wherein the retrieval data is determined by the fault handling platform based on the data retrieval interface identifier and the data retrieval fault identifier and sent to the simulation server.

[0038] In a sixth aspect, an embodiment of the present invention provides a data retrieval device, wherein the device is applied to a simulation server; the device includes:

[0039] A third receiving module is used to receive the retrieved data sent by the fault processing platform; wherein the retrieved data is determined by the fault processing platform based on the data retrieval interface identifier and the data retrieval fault identifier included in the data retrieval fault request sent by the received data request end;

[0040] A fourth receiving module, configured to receive a data retrieval request carrying a data retrieval interface identifier sent by a data request end; wherein the data retrieval request is sent by the data request end based on the first network address of the simulated server sent by the fault handling platform;

[0041] The fourth sending module is used to send the retrieved data corresponding to the data retrieval interface identifier to the data requesting end.

[0042] In a seventh aspect, an embodiment of the present invention provides an electronic device, which includes: a processor and a memory, the processor being used to execute a data retrieval method program stored in the memory to implement the above-mentioned data retrieval method.

[0043] In an eighth aspect, an embodiment of the present invention provides a storage medium, wherein the storage medium stores one or more first computer programs, one or more second computer programs, and one or more third computer programs, and the one or more first computer programs can be executed by one or more processors to implement the steps of the above-mentioned data retrieval method; or,

[0044] One or more second computer programs can be executed by one or more processors to implement the steps of the above-mentioned data retrieval method;

[0045] One or more third computer programs may be executed by one or more processors to implement the steps of the above-mentioned data retrieval method.

[0046] The data retrieval method, device, electronic device and storage medium provided by the embodiments of the present invention include receiving a data retrieval fault request sent by a data request end, the data retrieval fault request includes a data retrieval interface identifier and a data retrieval fault identifier; determining the retrieval data based on the data retrieval interface identifier and the data retrieval fault identifier, and sending the retrieval data to a simulation server; sending an address conversion request carrying a first network address of the simulation server to the data request end, so as to trigger the data request end to send a data retrieval request carrying a data retrieval interface identifier to the simulation server through the first network address, so that the simulation server sends the retrieval data corresponding to the data retrieval interface identifier to the data request end. The present invention can switch to the simulation server to retrieve the required retrieval data when the data request end requests to retrieve data failure, effectively solving the problem that the service, i.e., the application is blocked and becomes unavailable due to the data request end failing to retrieve data, and greatly improving the user experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0047] Figure 1 A flow chart of a data retrieval method provided by an embodiment of the present invention;

[0048] Figure 2 A flowchart of another data retrieval method provided by an embodiment of the present invention;

[0049] Figure 3 A flowchart of another data retrieval method provided by an embodiment of the present invention;

[0050] Figure 4 A flowchart of another data retrieval method provided by an embodiment of the present invention;

[0051] Figure 5 A schematic diagram of the structure of a data retrieval device provided by an embodiment of the present invention;

[0052] Figure 6 A schematic diagram of the structure of another data retrieval device provided by an embodiment of the present invention;

[0053] Figure 7 A schematic diagram of the structure of another data retrieval device provided by an embodiment of the present invention;

[0054] Figure 8 A schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0055] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0056] To facilitate understanding of the embodiments of the present invention, specific embodiments will be further explained below in conjunction with the accompanying drawings. The embodiments do not constitute a limitation on the embodiments of the present invention.

[0057] An embodiment of the present invention provides a data retrieval method, which is applied to a fault processing platform; Figure 1 A flow chart of a data retrieval method is shown, and the method specifically comprises the following steps:

[0058] Step 101, receiving a data retrieval fault request sent by a data request end, the data retrieval fault request including a data retrieval interface identifier and a data retrieval fault identifier;

[0059] The data request end can be understood as a backend server that can operate the application installed by the client. Usually, when the application is in use, the data request end can retrieve the required data from the third-party server that the application depends on through the data retrieval interface to ensure the normal operation of the application. When the data request end cannot retrieve data from the third-party server through the data retrieval interface, it is regarded as a third-party server failure. At this time, the data request end can generate a data retrieval fault request to send to the fault handling platform to inform the current data request end that it cannot retrieve data and needs to switch to the simulation server to retrieve data.

[0060] The data retrieval interface identifier included in the above-mentioned data retrieval fault request can be understood as the unique identification information of the data retrieval interface, which is used to indicate which data retrieval interface is currently retrieving data. The data retrieval fault identifier can be understood as the unique identification information of the data retrieval fault, which is used to indicate what specific type of fault on the current third-party server has caused the data requesting end to be unable to retrieve data normally; among them, the data retrieval interface identifier and the data retrieval fault identifier can be represented by numbers, symbols, letters, etc., and are not limited here.

[0061] Step 102, determining the retrieved data based on the data retrieval interface identifier and the data retrieval fault identifier, and sending the retrieved data to the simulation server;

[0062] In this embodiment, the fault handling platform can uniquely determine the specific retrieval data required by the current data request end through the data retrieval interface identifier and the data retrieval fault identifier. The specific determination process is: search the data retrieval library for the target specific identifier corresponding to the data retrieval interface identifier and the data retrieval fault identifier; and determine the target specific retrieval data corresponding to the target specific identifier as the retrieval data.

[0063] The data retrieval library stores a plurality of different specific retrieval data and a specific identifier corresponding to each specific retrieval data, wherein the specific identifier includes a specific data retrieval interface identifier and a specific data retrieval fault identifier.

[0064] It can be known from the above description that only the target-specific identifier-specific retrieval data corresponding to both the data retrieval interface identifier and the data retrieval fault identifier is the retrieval data required by the data requesting end.

[0065] In order to enable the data request end to accurately retrieve the corresponding retrieved data from the simulation server, after the fault handling platform sends the retrieved data to the simulation server, it is necessary to identify the retrieved data with the data retrieval interface identifier and store the identified retrieved data for subsequent data retrieval.

[0066] Step 103, sending an address translation request carrying the first network address of the simulated server to the data request end, so as to trigger the data request end to send a data retrieval request carrying the data retrieval interface identifier to the simulated server through the first network address, so that the simulated server sends the retrieval data corresponding to the data retrieval interface identifier to the data request end.

[0067] Since the data required by the data request end is sent to the simulation server in step 102, the simulation server can be regarded as a third-party server on which the data request end depends. Therefore, the data request end can retrieve the required data from the simulation server. Therefore, the fault handling platform needs to send the first network address of the simulation server to the data request end, so that the data request end can send a data retrieval request carrying a data retrieval interface identifier to the simulation server, so that the simulation server will send the retrieval data corresponding to the data retrieval interface identifier to the data request end.

[0068] The data retrieval method provided by the embodiment of the present invention includes receiving a data retrieval fault request sent by a data request end, the data retrieval fault request includes a data retrieval interface identifier and a data retrieval fault identifier; determining the retrieval data based on the data retrieval interface identifier and the data retrieval fault identifier, and sending the retrieval data to a simulation server; sending an address conversion request carrying a first network address of the simulation server to the data request end, so as to trigger the data request end to send a data retrieval request carrying a data retrieval interface identifier to the simulation server through the first network address, so that the simulation server sends the retrieval data corresponding to the data retrieval interface identifier to the data request end. The present invention can switch to the simulation server to retrieve the required retrieval data when the data request end requests to retrieve data failure, effectively solving the problem that the service, i.e., the application is blocked and becomes unavailable due to the data request end failing to retrieve data, and greatly improving the user experience.

[0069] This embodiment provides another data retrieval method, which is implemented on the basis of the above embodiment; for ease of understanding, Figure 2 A flow chart of another data retrieval method is shown. The data retrieval method in this embodiment includes the following steps:

[0070] Step 201, receiving a data retrieval fault request sent by a data request end, the data retrieval fault request including a data retrieval interface identifier and a data retrieval fault identifier;

[0071] Step 202, determining the retrieved data based on the data retrieval interface identifier and the data retrieval fault identifier;

[0072] Step 203, monitoring whether the simulated server has any faults;

[0073] In the event of a failure in the simulation server, execute step 204 to use a backup simulation server as a backup for the simulation server to continue to retrieve data from the data requesting end. In the event of a failure in the simulation server, execute step 205 to use the simulation server to retrieve data from the data requesting end.

[0074] Step 204, sending the retrieved data to the standby simulation server;

[0075] After sending the retrieved data to the backup simulation server, the subsequent process of the data request end requesting to retrieve data on the backup simulation server can be referred to the following steps 206 to 207, except that the simulation server in steps 206 to 207 is replaced by the backup simulation server, which will not be repeated here.

[0076] Step 205, sending the retrieved data to the simulation server;

[0077] Step 206: whether the second network address and the data retrieval interface identifier are found in the preset request rule base; wherein the preset request rule base stores a plurality of different specific network addresses and a plurality of different specific data retrieval interface identifiers;

[0078] Typically, the data retrieval fault request also includes a second network address, where the second network address is the network address of a data service end, ie, a third-party service end, where the data service that the data request end relies on is located.

[0079] In the case where there is no second network address and / or data retrieval interface identifier in the preset request rule library, it means that the fault handling platform does not support the data service corresponding to the data service end, so the data request end cannot request the required retrieval data from the simulation server end; only when the second network address and the data retrieval interface identifier are found in the preset request rule library, that is, the fault handling platform supports the data service corresponding to the data service end, then the fault handling platform sends the first network address of the simulation server end to the data request end, so that the data request end can request the required retrieval data from the simulation server end.

[0080] Step 207, when the second network address and the data retrieval interface identifier are found in the preset request rule library, an address conversion request carrying the first network address of the simulated server is sent to the data request end to trigger the data request end to send a data retrieval request carrying the data retrieval interface identifier to the simulated server end through the first network address, so that the simulated server end sends the retrieval data corresponding to the data retrieval interface identifier to the data request end.

[0081] Usually, the first network address of the simulated server is pre-stored on the fault processing platform. When the second network address and the data retrieval interface identifier are found in the preset request rule library, the fault processing platform can directly send the first network address of the simulated server to the data request end. Alternatively, in the case where the fault processing platform does not pre-store the first network address, in response to the input sending operation for the network address of the simulated server, an address conversion request carrying the first network address of the simulated server is sent to the data request end, and the input sending operation is performed by the staff of the fault processing platform.

[0082] The data retrieval method provided in the embodiment of the present invention can retrieve the required retrieval data from the simulation server when the data request end is unable to retrieve data from the data service end and the simulation server is not faulty, or retrieve the required retrieval data from the backup simulation server when there is a fault in the simulation server, effectively solving the problem of the service, i.e., the application being blocked and becoming unavailable due to the data request end being unable to retrieve data, thereby greatly improving the user experience.

[0083] An embodiment of the present invention provides a data retrieval method, which is applied to a data requesting end; Figure 3 A flow chart of another data retrieval method is shown, and the method specifically includes the following steps:

[0084] Step 301, sending a data retrieval fault request to a fault handling platform, the data retrieval fault request including a data retrieval interface identifier and a data retrieval fault identifier;

[0085] Step 302, receiving an address translation request for a data retrieval fault request sent by a fault processing platform, wherein the address translation request carries a first network address of a simulated server;

[0086] Step 303, sending a data retrieval request carrying a data retrieval interface identifier to the first network address to trigger the simulation server to send the retrieval data corresponding to the data retrieval interface identifier to the data requesting end; wherein the retrieval data is determined by the fault handling platform based on the data retrieval interface identifier and the data retrieval fault identifier and sent to the simulation server.

[0087] The data retrieval process is Figure 1 and Figure 2 The data retrieval process shown is the same, but the method is applied to different objects, so it will not be discussed here. Figure 3 A detailed description of the data retrieval process.

[0088] An embodiment of the present invention provides a data retrieval method, which is applied to a simulation server; Figure 4 A flow chart of another data retrieval method is shown, and the method specifically includes the following steps:

[0089] Step 401, receiving the retrieved data sent by the fault processing platform; wherein the retrieved data is determined by the fault processing platform based on the data retrieval interface identifier and the data retrieval fault identifier included in the data retrieval fault request sent by the received data request end;

[0090] Step 402, receiving a data retrieval request carrying a data retrieval interface identifier sent by a data request end; wherein the data retrieval request is sent by the data request end based on the first network address of the simulated server sent by the fault processing platform;

[0091] Step 403: Send the retrieved data corresponding to the data retrieval interface identifier to the data requesting end.

[0092] The data retrieval process is Figures 1 to 3 The data retrieval process shown is the same, but the method is applied to different objects, so it will not be discussed here. Figure 4 A detailed description of the data retrieval process.

[0093] Corresponding to the above method embodiment, the embodiment of the present invention provides a data retrieval device, which is applied to a fault processing platform, such as Figure 5 A structural schematic diagram of a data retrieval device is shown, the data retrieval device comprises:

[0094] The first receiving module 501 is used to receive a data retrieval fault request sent by a data request end, where the data retrieval fault request includes a data retrieval interface identifier and a data retrieval fault identifier;

[0095] A determination module 502, configured to determine the retrieved data based on the data retrieval interface identifier and the data retrieval fault identifier, and send the retrieved data to the simulation server;

[0096] The first sending module 503 is used to send an address conversion request carrying the first network address of the simulated server to the data request end, so as to trigger the data request end to send a data retrieval request carrying a data retrieval interface identifier to the simulated server through the first network address, so that the simulated server sends the retrieval data corresponding to the data retrieval interface identifier to the data request end.

[0097] Corresponding to the above method embodiment, the embodiment of the present invention provides a data retrieval device, which is applied to a data request end, such as Figure 6 The structural diagram of another data retrieval device shown is as follows, the data retrieval device comprises:

[0098] The second sending module 601 is used to send a data retrieval fault request to the fault processing platform, where the data retrieval fault request includes a data retrieval interface identifier and a data retrieval fault identifier;

[0099] The second receiving module 602 is used to receive an address translation request for a data retrieval fault request sent by the fault handling platform, where the address translation request carries a first network address of a simulated server;

[0100] The third sending module 603 is used to send a data retrieval request carrying a data retrieval interface identifier to the first network address, so as to trigger the simulation server to send the retrieval data corresponding to the data retrieval interface identifier to the data requesting end; wherein the retrieval data is determined by the fault handling platform based on the data retrieval interface identifier and the data retrieval fault identifier and sent to the simulation server.

[0101] Corresponding to the above method embodiment, the embodiment of the present invention provides a data retrieval device, which is applied to a simulation server, such as Figure 7 The structural diagram of another data retrieval device shown is as follows, the data retrieval device comprises:

[0102] The third receiving module 701 is used to receive the retrieved data sent by the fault processing platform; wherein the retrieved data is determined by the fault processing platform based on the data retrieval interface identifier and the data retrieval fault identifier included in the data retrieval fault request sent by the received data request end;

[0103] The fourth receiving module 702 is used to receive a data retrieval request carrying a data retrieval interface identifier sent by a data request end; wherein the data retrieval request is sent by the data request end based on the first network address of the simulated server sent by the fault processing platform;

[0104] The fourth sending module 703 is used to send the retrieved data corresponding to the data retrieval interface identifier to the data request end.

[0105] Figure 8 A schematic diagram of the structure of an electronic device provided by an embodiment of the present invention, Figure 8 The electronic device 800 shown includes: at least one processor 801, a memory 802, at least one network interface 804 and other user interfaces 803. The various components in the electronic device 800 are coupled together via a bus system 805. It is understood that the bus system 805 is used to achieve connection and communication between these components. In addition to the data bus, the bus system 805 also includes a power bus, a control bus and a status signal bus. However, for the sake of clarity, the bus system 805 is not described in detail. Figure 8 Various buses are labeled as bus system 805 .

[0106] The user interface 803 may include a display, a keyboard, or a pointing device (eg, a mouse, a trackball, a touch pad, or a touch screen).

[0107] It can be understood that the memory 802 in the embodiment of the present invention can be a volatile memory or a non-volatile memory, or can include both volatile and non-volatile memories. Among them, the non-volatile memory can be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory can be a random access memory (RAM), which is used as an external cache. By way of example but not limitation, many forms of RAM are available, such as static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM), and direct RAM bus random access memory (DRRAM). The memory 802 described herein is intended to include, but is not limited to, these and any other suitable types of memory.

[0108] In some implementations, the memory 802 stores the following elements, executable units or data structures, or a subset thereof, or an extended set thereof: an operating system 8021 and an application program 8022 .

[0109] The operating system 8021 includes various system programs, such as a framework layer, a core library layer, a driver layer, etc., which are used to implement various basic services and process hardware-based tasks. The application program 8022 includes various application programs, such as a media player (Media Player), a browser (Browser), etc., which are used to implement various application services. The program for implementing the method of the embodiment of the present invention can be included in the application program 8022.

[0110] In the embodiment of the present invention, by calling the program or instruction stored in the memory 802, specifically, the program or instruction stored in the application 8022, the processor 801 is used to execute the method steps provided by each method embodiment.

[0111] The method disclosed in the above embodiment of the present invention can be applied to the processor 801, or implemented by the processor 801. The processor 801 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by the hardware integrated logic circuit in the processor 801 or the instruction in the form of software. The above processor 801 can be a general processor, a digital signal processor (Digital Signal Processor, DSP), an application specific integrated circuit (Application Specific Integrated Circuit, ASIC), a field programmable gate array (Field Programmable Gate Array, FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The methods, steps and logic block diagrams disclosed in the embodiments of the present invention can be implemented or executed. The general processor can be a microprocessor or the processor can also be any conventional processor. The steps of the method disclosed in the embodiment of the present invention can be directly embodied as a hardware decoding processor to execute, or the hardware and software units in the decoding processor can be executed. The software unit can be located in a mature storage medium in the field such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory 802, and the processor 801 reads the information in the memory 802 and completes the steps of the above method in combination with its hardware.

[0112] It is understood that the embodiments described herein may be implemented in hardware, software, firmware, middleware, microcode, or a combination thereof. For hardware implementation, the processing unit may be implemented in one or more application specific integrated circuits (ASIC), digital signal processors (DSP), digital signal processing devices (DSPDevice, DSPD), programmable logic devices (PLD), field programmable gate arrays (FPGA), general purpose processors, controllers, microcontrollers, microprocessors, other electronic units for performing the functions described in the present application, or a combination thereof.

[0113] For software implementation, the technology described herein can be implemented by a unit that performs the functions described herein. The software code can be stored in a memory and executed by a processor. The memory can be implemented in the processor or outside the processor.

[0114] The electronic device provided in this embodiment may be Figure 8 The electronic device shown in FIG. 1 may perform the following steps: Figure 1-4 All steps of the data retrieval method in the Figure 1-4 For details, please refer to the technical effect of the data retrieval method shown in Figure 1-4 For the sake of brevity, the relevant description is not repeated here.

[0115] The embodiment of the present invention also provides a storage medium (computer-readable storage medium). The storage medium here stores one or more programs. The storage medium may include a volatile memory, such as a random access memory; the memory may also include a non-volatile memory, such as a read-only memory, a flash memory, a hard disk or a solid-state drive; the memory may also include a combination of the above-mentioned types of memory.

[0116] When one or more programs in the storage medium can be executed by one or more processors, the above-mentioned data retrieval method can be implemented.

[0117] The processor is used to execute the data retrieval program stored in the memory to implement the steps of the data retrieval method.

[0118] The professionals should further realize that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented by electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to the function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.

[0119] The steps of the method or algorithm described in conjunction with the embodiments disclosed herein may be implemented using hardware, a software module executed by a processor, or a combination of the two. The software module may be placed in a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.

[0120] The specific implementation methods described above further illustrate the objectives, technical solutions and beneficial effects of the present invention in detail. It should be understood that the above description is only a specific implementation method of the present invention and is not intended to limit the scope of protection of the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the scope of protection of the present invention.

Claims

1. A data retrieval method, characterized in that: The method is applied to a fault handling platform; the method comprises: Receive a data retrieval fault request sent by a data request end, wherein the data retrieval fault request includes a data retrieval interface identifier and a data retrieval fault identifier; Determine the retrieved data based on the data retrieval interface identifier and the data retrieval fault identifier, and send the retrieved data to the simulation server; determine the retrieved data based on the data retrieval interface identifier and the data retrieval fault identifier, including: searching for a target specific identifier corresponding to the data retrieval interface identifier and the data retrieval fault identifier from a data retrieval library; determine the target specific retrieval data corresponding to the target specific identifier as the retrieved data; An address translation request carrying the first network address of the simulated server is sent to the data request end to trigger the data request end to send a data retrieval request carrying the data retrieval interface identifier to the simulated server end through the first network address, so that the simulated server end sends the retrieval data corresponding to the data retrieval interface identifier to the data request end.

2. The method according to claim 1, characterized in that The determining the retrieved data based on the data retrieval interface identifier and the data retrieval fault identifier includes: Searching for a target specific identifier corresponding to the data retrieval interface identifier and the data retrieval fault identifier from a data retrieval library; wherein the data retrieval library stores a plurality of different specific retrieval data and a specific identifier corresponding to each specific retrieval data, the specific identifier including a specific data retrieval interface identifier and a specific data retrieval fault identifier; The target specific retrieval data corresponding to the target specific identifier is determined as the retrieval data.

3. The method according to claim 2, characterized in that The sending of the address translation request carrying the first network address of the simulated server to the data requesting end includes: In response to an input sending operation for the network address of the simulated server, an address translation request carrying the first network address of the simulated server is sent to the data requesting end.

4. The method according to claim 1, characterized in that: The method further comprises: Monitoring whether the simulated server has any faults; In case of a failure of the simulation server, the retrieved data is sent to a backup simulation server; In the case that there is no fault in the simulation server, the step of sending the retrieved data to the simulation server is performed.

5. The method according to claim 1, characterized in that The data retrieval fault request further includes a second network address, where the second network address is a network address of a data service end where a data service that the data request end relies on is located; the method further includes: whether the second network address and the data retrieval interface identifier are found in a preset request rule base; wherein the preset request rule base stores a plurality of different specific network addresses and a plurality of different specific data retrieval interface identifiers; When the second network address and the data retrieval interface identifier are found in the preset request rule library, a step of sending an address translation request carrying the first network address of the simulated server to the data request end is performed.

6. A data retrieval method, characterized in that: The method is applied to a data requesting end; the method comprises: Sending a data retrieval fault request to the fault processing platform, wherein the data retrieval fault request includes a data retrieval interface identifier and a data retrieval fault identifier; Receiving an address translation request for the data retrieval fault request sent by the fault processing platform, wherein the address translation request carries a first network address of a simulated server; A data retrieval request carrying the data retrieval interface identifier is sent to the first network address to trigger the simulation server to send the retrieval data corresponding to the data retrieval interface identifier to the data requesting end; wherein the retrieval data is determined by the fault handling platform based on the data retrieval interface identifier and the data retrieval fault identifier and sent to the simulation server, and the fault handling platform determines the retrieval data based on the data retrieval interface identifier and the data retrieval fault identifier, including: the fault handling platform searches for a target specific identifier corresponding to the data retrieval interface identifier and the data retrieval fault identifier from a data retrieval library; and determines the target specific retrieval data corresponding to the target specific identifier as the retrieval data.

7. A data retrieval method, characterized in that: The method is applied to a simulated server; the method comprises: Receive the retrieved data sent by the fault processing platform; wherein the retrieved data is determined by the fault processing platform based on the data retrieval interface identifier and the data retrieval fault identifier included in the data retrieval fault request sent by the data request end, and the fault processing platform determines the retrieved data based on the data retrieval interface identifier and the data retrieval fault identifier, including: the fault processing platform searches for a target specific identifier corresponding to the data retrieval interface identifier and the data retrieval fault identifier from a data retrieval library; and determines the target specific retrieval data corresponding to the target specific identifier as the retrieval data; Receiving a data retrieval request carrying the data retrieval interface identifier sent by the data request end; wherein the data retrieval request is sent by the data request end based on the first network address of the simulated service end sent by the fault handling platform; The retrieved data corresponding to the data retrieval interface identifier is sent to the data requesting end.

8. A data retrieval device, characterized in that: The device is applied to a fault handling platform; The device comprises: A first receiving module, configured to receive a data retrieval fault request sent by a data requesting end, wherein the data retrieval fault request includes a data retrieval interface identifier and a data retrieval fault identifier; A determination module is used to determine the retrieved data based on the data retrieval interface identifier and the data retrieval fault identifier, and send the retrieved data to the simulation server; the retrieval data is determined based on the data retrieval interface identifier and the data retrieval fault identifier, including: searching for a target specific identifier corresponding to the data retrieval interface identifier and the data retrieval fault identifier from a data retrieval library; determining the target specific retrieval data corresponding to the target specific identifier as the retrieval data; The first sending module is used to send an address conversion request carrying the first network address of the simulated server to the data request end, so as to trigger the data request end to send a data retrieval request carrying the data retrieval interface identifier to the simulated server through the first network address, so that the simulated server sends the retrieval data corresponding to the data retrieval interface identifier to the data request end.

9. A data retrieval device, characterized in that: The device is applied to a data requesting end; the device comprises: A second sending module is used to send a data retrieval fault request to the fault processing platform, wherein the data retrieval fault request includes a data retrieval interface identifier and a data retrieval fault identifier; A second receiving module is used to receive an address conversion request for the data retrieval fault request sent by the fault processing platform, wherein the address conversion request carries a first network address of a simulated server; A third sending module is used to send a data retrieval request carrying the data retrieval interface identifier to the first network address, so as to trigger the simulation server to send the retrieval data corresponding to the data retrieval interface identifier to the data requesting end; wherein, the retrieval data is determined by the fault handling platform based on the data retrieval interface identifier and the data retrieval fault identifier and sent to the simulation server, and the fault handling platform determines the retrieval data based on the data retrieval interface identifier and the data retrieval fault identifier, including: the fault handling platform searches for a target specific identifier corresponding to the data retrieval interface identifier and the data retrieval fault identifier from a data retrieval library; and determines the target specific retrieval data corresponding to the target specific identifier as the retrieval data.

10. A data retrieval device, characterized in that: The device is applied to simulate the server; the device comprises: A third receiving module is used to receive the retrieval data sent by the fault processing platform; wherein, the retrieval data is determined by the fault processing platform based on the data retrieval interface identifier and the data retrieval fault identifier included in the data retrieval fault request sent by the data request end, and the fault processing platform determines the retrieval data based on the data retrieval interface identifier and the data retrieval fault identifier, including: the fault processing platform searches for a target specific identifier corresponding to the data retrieval interface identifier and the data retrieval fault identifier from a data retrieval library; and determines the target specific retrieval data corresponding to the target specific identifier as the retrieval data; A fourth receiving module, configured to receive a data retrieval request carrying the data retrieval interface identifier sent by the data request end; wherein the data retrieval request is sent by the data request end based on the first network address of the simulated server sent by the fault handling platform; A fourth sending module is used to send the retrieved data corresponding to the data retrieval interface identifier to the data requesting end.

11. An electronic device, characterized in that: include: A processor and a memory, wherein the processor is used to execute a data retrieval method program stored in the memory to implement the data retrieval method according to any one of claims 1 to 7.

12. A storage medium, characterized in that: The storage medium stores one or more first computer programs, one or more second computer programs, and one or more third computer programs, and the one or more first computer programs can be executed by one or more processors to implement the steps of the data retrieval method according to any one of claims 1 to 5; or, The one or more second computer programs can be executed by one or more processors to implement the steps of the data retrieval method according to claim 6; The one or more third computer programs can be executed by one or more processors to implement the steps of the data retrieval method as claimed in claim 7.