Data disaster recovery processing method, server, live broadcast system and storage medium

By determining the important amount of data to be returned based on the client's request instructions on the server side, if the amount of data is small, the data is obtained from the backup end, and if the amount of data is large, it is directly sent to the client and backed up, thus solving the problem of data transmission in live broadcast technology. User experience problems caused by errors improve the fault tolerance rate and user experience of data transmission.

CN113867996BActive Publication Date: 2024-09-20GUANGZHOU FANGGUI INFORMATION TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110949921.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-08-18
Publication Date
2024-09-20
Estimated Expiration
2041-08-18

AI Technical Summary

Technical Problem

In live broadcast technology, problems during data transmission cause the server to be unable to return data correctly, causing the client to display errors or blank pages, reducing user experience.

Method used

By determining the important data amount in the data to be returned corresponding to the client request instruction on the server side, if the data amount is not greater than the first preset value, the backup data is obtained from the backup end and sent to the client. If the data amount is greater than the second preset value value will send the data to be returned to the client and send important data to the backup side for update.

Benefits of technology

It effectively avoids the situation where the client has no available data, ensures that the client can display content based on the backup data, avoids displaying error codes or blank pages, improves the user experience, and increases the fault tolerance rate of data transmission.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113867996B
    Figure CN113867996B
Patent Text Reader

Abstract

The present application discloses a data disaster recovery processing method, a server, a live broadcast system and a storage medium, and relates to the field of live broadcast technology. The data disaster recovery processing method includes: the server obtains a request instruction sent by a client; the server determines the data to be returned based on the request instruction; the server determines the amount of important data in the data to be returned; if the amount of data is not greater than a first preset value, the server obtains the backup data corresponding to the request instruction from the backup end, and sends the backup data to the client; if the amount of data is greater than a second preset value, the server sends the data to be returned to the client, and sends the important data to the backup end to update the backup data; wherein the first preset value is less than the second preset value. Based on the above method, it is beneficial to improve the user experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of live broadcast technology, and in particular to a data disaster recovery processing method, a server, a live broadcast system and a storage medium. Background Art

[0002] In the existing live broadcast technology, due to problems at a certain stage in the data transmission process, it is easy for the server to be unable to correctly return the corresponding data based on the client's request, resulting in the client being unable to display the correct content, or even unable to display any content, so that the user can only see a blank page, greatly reducing the user experience. Summary of the invention

[0003] The main technical problem solved by this application is how to improve user experience.

[0004] In order to solve the above technical problems, the first technical solution adopted in the present application is: a data disaster recovery processing method, comprising: a server obtains a request instruction sent by a client; the server determines the data to be returned based on the request instruction; the server determines the amount of important data in the data to be returned; if the amount of data is not greater than a first preset value, the server obtains the backup data corresponding to the request instruction from the backup end, and sends the backup data to the client; if the amount of data is greater than a second preset value, the server sends the data to be returned to the client, and sends the important data to the backup end to update the backup data; wherein, the first preset value is less than the second preset value.

[0005] In order to solve the above technical problems, the second technical solution adopted in the present application is: a data disaster recovery processing method, applied to a live broadcast system, the live broadcast system includes: a server, a client and a backup end, and the processing method includes: the client sends a request instruction to the server; the server determines the data to be returned based on the request instruction; the server determines the data volume of important data in the data to be returned; if the data volume is not greater than a first preset value, the server obtains the backup data corresponding to the request instruction from the backup end and sends the backup data to the client, and the client displays it based on the backup data; if the data volume is greater than a second preset value, the server sends the data to be returned to the client and sends the important data to the backup end, and the backup end updates the backup data based on the important data; wherein, the first preset value is less than the second preset value.

[0006] In order to solve the above technical problems, the third technical solution adopted in this application is: a server, the server comprising: a communication module and a processing module; the communication module is used to obtain the request instruction sent by the client; the processing module is used to determine the data to be returned based on the request instruction; determine the data volume of important data in the data to be returned; if the data volume is not greater than the first preset value, obtain the backup data corresponding to the request instruction from the backup end, and trigger the communication module to send the backup data to the client; if the data volume is greater than the second preset value, send the data to be returned to the client, and trigger the communication module to send the important data to the backup end to update the backup data; wherein, the first preset value is less than the second preset value.

[0007] In order to solve the above technical problems, the fourth technical solution adopted in this application is: a live broadcast system, comprising: a client, used to send a request instruction to a server; a server, used to: determine the data to be returned based on the request instruction; determine the data volume of important data in the data to be returned; a backup end, used to update the backup data based on the important data; the server is also used to: if the data volume is not greater than a first preset value, obtain the backup data corresponding to the request instruction from the backup end and send the backup data to the client; the client is also used to display based on the backup data; the server is also used to: if the data volume is greater than a second preset value, send the data to be returned to the client and send the important data to the backup end; wherein the first preset value is less than the second preset value.

[0008] In order to solve the above technical problems, the fifth technical solution adopted in this application is: a computer-readable storage medium, which stores program instructions, and when the program instructions are executed by a processor, the above data disaster recovery processing method is implemented.

[0009] Different from the prior art, the present application determines the data to be returned and the amount of important data in the data to be returned based on the client's request instruction, and then determines the size of the data amount. When the data amount is too small, the backup data is obtained from the backup end to send to the client. When the data amount is large enough, the data to be returned can be directly sent to the client and the important data can be sent to the backup end for backup. Based on the above method, the important data can be backed up when the amount of important data is large, and the backup data can be retrieved and sent to the client when the amount of important data is small, so as to avoid the situation where the client has no available data, so that the client can display the content based on the backup data, and avoid the situation where the client displays an error code or a blank page, thereby improving the user experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0010] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0011] Figure 1 It is a flowchart of a first embodiment of the data disaster recovery processing method of the present application;

[0012] Figure 2 It is a flowchart of a second embodiment of the data disaster recovery processing method of the present application;

[0013] Figure 3 It is a flowchart of a third embodiment of the data disaster recovery processing method of the present application;

[0014] Figure 4 It is a flowchart of a fourth embodiment of the data disaster recovery processing method of the present application;

[0015] Figure 5 It is a flowchart of a fifth embodiment of the data disaster recovery processing method of the present application;

[0016] Figure 6 This is a schematic diagram of the structure of an embodiment of the server of this application;

[0017] Figure 7 This is a structural diagram of an embodiment of the live broadcast system of the present application;

[0018] Figure 8 It is a structural diagram of an embodiment of the computer-readable storage medium of the present application. DETAILED DESCRIPTION

[0019] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0020] The terms "first" and "second" in this application are only used for descriptive purposes and cannot be understood as indicating or implying relative importance or implicitly indicating the number of indicated technical features. In the description of this application, the meaning of "multiple" is at least two, such as two, three, etc., unless otherwise clearly and specifically limited. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not limited to the listed steps or units, but optionally also includes steps or units that are not listed, or optionally also includes other steps or units inherent to these processes, methods, products or devices.

[0021] See also Figure 1 , Figure 1 It is a flowchart of the first embodiment of the data disaster recovery processing method of the present application.

[0022] The data disaster recovery processing method of this embodiment includes:

[0023] Step S11: The server obtains the request instruction sent by the client.

[0024] The user can select the content he wants to view on the client, and the client can generate a request instruction for requesting data in the corresponding list based on the user's selection, and send the request instruction to the server, which can receive the request instruction to understand the user's needs.

[0025] Optionally, after step S11, the processing method may further include:

[0026] Determine whether the request instruction meets the preset conditions.

[0027] If the request instruction does not meet the preset conditions, the request instruction is determined to be invalid.

[0028] If the request instruction meets the preset condition, the subsequent step S12 is executed.

[0029] Specifically, the request instruction may include at least one of the client version number, the device number of the device where the client is located, and other parameters, which are not limited here. The preset condition may include: the client version number is one of the preset version numbers, the device number of the device where the client is located is one of the preset device numbers, and at least one of other conditions.

[0030] Based on the above settings, only request instructions sent by clients that meet the preset requirements can be responded to, prompting users to update their clients or devices, avoiding the increase in server computing pressure due to the need to respond to request instructions for all old versions of clients or devices and provide data in the corresponding version format, thereby improving the speed at which the server responds to request instructions.

[0031] Step S12: The server determines the data to be returned based on the request instruction.

[0032] The server may determine the user's needs based on the request instruction, and further determine the data to be returned to the client tentatively.

[0033] Step S13: The server determines the amount of important data in the data to be returned.

[0034] The data to be returned may include important data and non-important data. The important data is data that needs to be sent to the client as much as possible and used for display, and the non-important data is all data that is not important data in the data to be returned.

[0035] Specifically, the data to be returned may include live video module data and anchor introduction module data. The live video module data may be preset as important data, and the anchor introduction module data may be preset as unimportant data. Step S13 may specifically be that the server determines the amount of live video module data in the returned data. Important data may also include other types of data, and unimportant data may also include other types of data, which are not limited here.

[0036] If the data amount determined in step S13 is not greater than the first preset value, step S14 is executed.

[0037] Step S14: The server obtains the backup data corresponding to the request instruction from the backup end, and sends the backup data to the client.

[0038] The first preset value may be 0 or other values, which are not limited here. When the amount of important data in the data to be returned is not greater than the first preset value, it can be determined that the client cannot normally display the important content corresponding to the important data based on the data to be returned, and the amount of data is 0, and even the client may display a blank page. At this time, the server can request the backup end to obtain the backup data corresponding to the request instruction, and send the backup data to the client after obtaining it, so that the client can display the corresponding content based on the backup data.

[0039] Optionally, step S14 may specifically include:

[0040] The server determines the requested data category based on the request instruction.

[0041] Based on the requested data category, the server obtains the backup data corresponding to the requested data category from the backup end.

[0042] The server sends the backup data to the client.

[0043] If the data amount determined in step S13 is greater than the second preset value, step S15 is executed.

[0044] Step S15: The server sends the data to be returned to the client, and sends the important data to the backup end to update the backup data.

[0045] Wherein, the first preset value is less than the second preset value. When the amount of important data in the data to be returned is greater than the second preset value, it can be determined that the client can normally display the important content corresponding to the important data based on the data to be returned, and the important data in the data to be returned can be used as the basis for updating the backup data. At this time, the data to be returned can be directly sent to the client, and the important data can be sent to the backup end to update the backup data.

[0046] Optional, such as Figure 1 As shown, after step S13, the processing method may further include:

[0047] If the data amount determined in step S13 is greater than the first preset value and not greater than the second preset value, step S16 is executed.

[0048] Step S16: The server sends the data to be returned to the client.

[0049] Specifically, the backup end may include at least one of Redis (Remote Dictionary Server), Mysql (MyStructured Query Language, a relational database management system), Oracle database, MongoDB (a database based on distributed file storage) and other types of databases, which are not limited here.

[0050] It should be noted that when storing important data in the backup end, the important data must first be serialized to convert the data into a readable form. When obtaining backup data from the backup end, the backup data must be deserialized to convert the data into a storage form.

[0051] Different from the prior art, the present application determines the data to be returned and the amount of important data in the data to be returned based on the client's request instruction, and then determines the size of the data amount. When the data amount is too small, the backup data is obtained from the backup end to send to the client. When the data amount is large enough, the data to be returned can be directly sent to the client and the important data can be sent to the backup end for backup. Based on the above method, the important data can be backed up when the amount of important data is large, and the backup data can be retrieved and sent to the client when the amount of important data is small, so as to avoid the situation where the client has no available data, so that the client can display the content based on the backup data, and avoid the situation where the client displays an error code or a blank page, thereby improving the user experience.

[0052] In addition, since the above-mentioned data disaster recovery processing method only replaces or does not process the returned data before returning the data to the client, and there is no need to change the underlying logic of the program that obtains the data to be returned based on the request instruction, the above-mentioned data disaster recovery processing method can improve the fault tolerance rate of data transmission in a manner with minimal coupling.

[0053] See also Figure 2 , Figure 2 This is a flow chart of a second embodiment of the data disaster recovery processing method of the present application.

[0054] The data disaster recovery processing method of this embodiment includes:

[0055] Step S21: The server obtains the request instruction sent by the client.

[0056] Step S22: The server determines the data to be returned based on the request instruction.

[0057] Step S23: The server determines the amount of important data in the data to be returned.

[0058] If the data amount determined in step S23 is not greater than the first preset value, step S24 is executed.

[0059] Step S24: The server determines whether there is cache data corresponding to the request instruction in the local cache.

[0060] The local cache may be a local cache of the server. The server may first determine whether there is cache data corresponding to the request instruction in its own cache. The cache data may be a cache of data sent to the client last time based on the same or similar request instruction. Since the data in the cache data will not be permanently retained, the cache data corresponding to the request instruction may not necessarily exist in the server.

[0061] If the result of step S24 is yes, then step S25 is executed.

[0062] Step S25: The server sends the cached data to the client.

[0063] If there is cache data corresponding to the request instruction in the local cache of the server, the cache data may be sent to the client instead of the data to be returned, so that the client displays the content corresponding to the request instruction based on the cache data.

[0064] If the result of step S24 is not present, step S26 is executed.

[0065] Step S26: The server determines whether there is backup data corresponding to the request instruction in the backup end.

[0066] Among them, if there is no cache data corresponding to the request instruction in the local cache of the server, a corresponding request can be sent to the backup end to determine whether there is backup data corresponding to the request instruction in the backup end. The backup data can be a backup of the data previously sent to the client based on the same or similar request instruction.

[0067] If the result of step S26 is yes, then step S27 is executed.

[0068] Step S27: The server obtains the backup data corresponding to the request instruction from the backup end, and sends the backup data to the client.

[0069] If the backup end has backup data corresponding to the request instruction, the server can obtain the backup data from the backup end and send the backup data to the client, so that the client displays the content corresponding to the request instruction based on the backup data.

[0070] Specifically, the backup data in the backup end are all set with corresponding validity periods. If a backup data has not been obtained after the corresponding validity period, the backup data is deleted.

[0071] Step S27 may specifically include: the server obtains the backup data corresponding to the request instruction from the backup end, sends the backup data to the client, and resets or extends the validity period corresponding to the backup data.

[0072] Based on the above settings, firstly, cache data or backup data can be efficiently obtained based on the dual mechanism of local cache and backup end to be sent to the client, thereby improving the response speed of data disaster recovery; secondly, the effective time can be set to avoid returning backup data that has been stored for too long to the client, and it can also avoid the situation where the server receives too many or too frequent request instructions but still deletes the corresponding backup data due to the effective time, resulting in no backup data being returned to the client, thereby improving the reliability of data disaster recovery.

[0073] Different from the prior art, the present application determines the data to be returned and the amount of important data in the data to be returned based on the client's request instruction, and then determines the size of the data amount. When the data amount is too small, the backup data is obtained from the backup end to send to the client. When the data amount is large enough, the data to be returned can be directly sent to the client and the important data can be sent to the backup end for backup. Based on the above method, the important data can be backed up when the amount of important data is large, and the backup data can be retrieved and sent to the client when the amount of important data is small, so as to avoid the situation where the client has no available data, so that the client can display the content based on the backup data, and avoid the situation where the client displays an error code or a blank page, thereby improving the user experience.

[0074] See also Figure 3 , Figure 3 This is a flow chart of a third embodiment of the data disaster recovery processing method of the present application.

[0075] The data disaster recovery processing method of this embodiment includes:

[0076] Step S31: The server obtains the request instruction sent by the client.

[0077] Step S32: The server determines the data to be returned based on the request instruction.

[0078] Step S33: The server determines the amount of important data in the data to be returned.

[0079] Step S34: The server determines whether there is cache data corresponding to the request instruction in the local cache, and whether there is no backup identification data.

[0080] If the result of step S34 is that cache data exists, step S35 is executed.

[0081] Step S35: The server sends the cached data to the client.

[0082] If the result of step S34 is that there is no cache data and no backup identification data, step S36 is executed.

[0083] Step S36: The server determines whether there is backup data corresponding to the request instruction in the backup end.

[0084] If the result of step S36 is yes, step S37 is executed.

[0085] Step S37: The server obtains the backup data corresponding to the request instruction from the backup end, and sends the backup data to the client.

[0086] If the result of step S36 is not present, step S38 is executed.

[0087] Step S38: The server writes the no-backup identification data into the local cache.

[0088] Specifically, the no-backup identification data may be deleted when the corresponding backup data is updated, or may be deleted at intervals of a preset requestable time duration, which is not limited here.

[0089] Based on the above method, when there is no backup identification data in the local cache, the corresponding backup data will no longer be obtained from the backup end, thereby avoiding the situation where the backup end continues to request backup data when there is no backup data corresponding to the request instruction, preventing the occurrence of cache penetration, reducing the computing pressure and software crash probability of the backup end, and improving the reliability of data disaster recovery.

[0090] Different from the prior art, the present application determines the data to be returned and the amount of important data in the data to be returned based on the client's request instruction, and then determines the size of the data amount. When the data amount is too small, the backup data is obtained from the backup end to send to the client. When the data amount is large enough, the data to be returned can be directly sent to the client and the important data can be sent to the backup end for backup. Based on the above method, the important data can be backed up when the amount of important data is large, and the backup data can be retrieved and sent to the client when the amount of important data is small, so as to avoid the situation where the client has no available data, so that the client can display the content based on the backup data, and avoid the situation where the client displays an error code or a blank page, thereby improving the user experience.

[0091] See also Figure 4 , Figure 4 This is a flow chart of a fourth embodiment of the data disaster recovery processing method of the present application.

[0092] The data disaster recovery processing method of this embodiment includes:

[0093] Step S41: The server obtains the request instruction sent by the client.

[0094] Step S42: The server determines the data to be returned based on the request instruction.

[0095] Step S43: The server determines the amount of important data in the data to be returned.

[0096] If the data amount determined in step S43 is greater than the second preset value, step S44 is executed.

[0097] Step S44: The server determines the requested data category based on the request instruction.

[0098] Step S45: Based on the requested data category, the server obtains a storage identifier corresponding to the requested data category from the backup end.

[0099] Among them, a storage identifier corresponding to a request data category can be obtained a preset number of times within a preset time period.

[0100] Step S46: the server sends the important data to the backup end based on the storage identifier, so that the backup end stores the important data into the storage space corresponding to the storage identifier to update the backup data.

[0101] Specifically, by making the storage identifier corresponding to each request data category available only for a preset number of times within a preset duration, the frequency of updating the backup data of the backup end is limited, the computing pressure of the backup end is reduced, and the failure rate of the backup end is reduced. The preset duration can be one hour, the preset number of times can be one time, or a combination of other preset durations and preset numbers. Different request data categories can correspond to different combinations of preset durations and preset numbers, which are not limited here.

[0102] The backup end can be Redis, which implements distributed lock technology based on Redis. Only by obtaining a specific lock can data be stored, modified, or deleted in the corresponding storage space. Different request data categories correspond to specific Redis storage spaces, and only by obtaining the corresponding lock can data related processing be performed on the storage spaces corresponding to different request data categories.

[0103] Different from the prior art, the present application determines the data to be returned and the amount of important data in the data to be returned based on the client's request instruction, and then determines the size of the data amount. When the data amount is too small, the backup data is obtained from the backup end to send to the client. When the data amount is large enough, the data to be returned can be directly sent to the client and the important data can be sent to the backup end for backup. Based on the above method, the important data can be backed up when the amount of important data is large, and the backup data can be retrieved and sent to the client when the amount of important data is small, so as to avoid the situation where the client has no available data, so that the client can display the content based on the backup data, and avoid the situation where the client displays an error code or a blank page, thereby improving the user experience.

[0104] See also Figure 5 and 7 , Figure 5 is a flowchart of a fifth embodiment of the data disaster recovery processing method of the present application, Figure 7 This is a structural diagram of an embodiment of the live broadcast system of the present application.

[0105] The data disaster recovery processing method of this embodiment is applied to a live broadcast system 70, which includes: a server 71, a client 72 and a backup end 73. The processing method includes:

[0106] Step S51: The client 72 sends a request instruction to the server 71.

[0107] Step S52: The server 71 determines the data to be returned based on the request instruction.

[0108] Step S53: The server 71 determines the amount of important data in the data to be returned.

[0109] If the data amount determined in step S53 is not greater than the first preset value, step S54 is executed.

[0110] Step S54: the server 71 obtains the backup data corresponding to the request instruction from the backup terminal 73 and sends the backup data to the client 72, and the client 72 displays based on the backup data.

[0111] If the data amount determined in step S53 is greater than the second preset value, step S55 is executed.

[0112] Step S55: the server 71 sends the data to be returned to the client 72 and sends the important data to the backup end 73, and the backup end 73 updates the backup data based on the important data.

[0113] The first preset value is smaller than the second preset value.

[0114] Different from the prior art, the present application determines the data to be returned and the amount of important data in the data to be returned based on the client's request instruction, and then determines the size of the data amount. When the data amount is too small, the backup data is obtained from the backup end to send to the client. When the data amount is large enough, the data to be returned can be directly sent to the client and the important data can be sent to the backup end for backup. Based on the above method, the important data can be backed up when the amount of important data is large, and the backup data can be retrieved and sent to the client when the amount of important data is small, so as to avoid the situation where the client has no available data, so that the client can display the content based on the backup data, and avoid the situation where the client displays an error code or a blank page, thereby improving the user experience.

[0115] See also Figure 6 , Figure 6 A schematic diagram of the structure of an embodiment of the server of the present application.

[0116] The server 60 of this embodiment includes: a communication module 61 and a processing module 62 .

[0117] The communication module 61 is used to obtain the request instruction sent by the client.

[0118] The processing module 62 is used to determine the data to be returned based on the request instruction; determine the data volume of important data in the data to be returned; if the data volume is not greater than the first preset value, obtain the backup data corresponding to the request instruction from the backup end, and trigger the communication module 61 to send the backup data to the client; if the data volume is greater than the second preset value, send the data to be returned to the client, and trigger the communication module 61 to send the important data to the backup end to update the backup data.

[0119] The first preset value is smaller than the second preset value.

[0120] Different from the prior art, the present application determines the data to be returned and the amount of important data in the data to be returned based on the client's request instruction, and then determines the size of the data amount. When the data amount is too small, the backup data is obtained from the backup end to send to the client. When the data amount is large enough, the data to be returned can be directly sent to the client and the important data can be sent to the backup end for backup. Based on the above method, the important data can be backed up when the amount of important data is large, and the backup data can be retrieved and sent to the client when the amount of important data is small, so as to avoid the situation where the client has no available data, so that the client can display the content based on the backup data, and avoid the situation where the client displays an error code or a blank page, thereby improving the user experience.

[0121] See also Figure 7 , Figure 7 This is a structural diagram of an embodiment of the live broadcast system of the present application.

[0122] The live broadcast system 70 of this embodiment includes: a server 71, a client 72 and a backup terminal 73.

[0123] The client 72 is used to send a request instruction to the server 71 .

[0124] The server 71 is used to: determine the data to be returned based on the request instruction; and determine the data volume of important data in the data to be returned.

[0125] The backup terminal 73 is used to update the backup data based on the important data.

[0126] The server 71 is further configured to: if the data volume is not greater than a first preset value, obtain backup data corresponding to the request instruction from the backup terminal 73 and send the backup data to the client 72; the client 72 is further configured to display based on the backup data.

[0127] The server 71 is further configured to: if the data volume is greater than a second preset value, send the data to be returned to the client 72 and send the important data to the backup end 73 .

[0128] The first preset value is smaller than the second preset value.

[0129] Different from the prior art, the present application determines the data to be returned and the amount of important data in the data to be returned based on the client's request instruction, and then determines the size of the data amount. When the data amount is too small, the backup data is obtained from the backup end to send to the client. When the data amount is large enough, the data to be returned can be directly sent to the client and the important data can be sent to the backup end for backup. Based on the above method, the important data can be backed up when the amount of important data is large, and the backup data can be retrieved and sent to the client when the amount of important data is small, so as to avoid the situation where the client has no available data, so that the client can display the content based on the backup data, and avoid the situation where the client displays an error code or a blank page, thereby improving the user experience.

[0130] See also Figure 8 , Figure 8 It is a structural diagram of an embodiment of the computer-readable storage medium of the present application.

[0131] The computer-readable storage medium 80 of this embodiment stores program instructions 81 thereon. When the program instructions 81 are executed by a processor (not shown), the data disaster recovery processing method of the above-mentioned embodiment is implemented.

[0132] The computer-readable storage medium 80 of this embodiment may be, but is not limited to, a USB flash drive, an SD card, a PD optical drive, a mobile hard disk, a large-capacity floppy drive, a flash memory, a multimedia memory card, a server, etc.

[0133] Different from the prior art, the present application determines the data to be returned and the amount of important data in the data to be returned based on the client's request instruction, and then determines the size of the data amount. When the data amount is too small, the backup data is obtained from the backup end to send to the client. When the data amount is large enough, the data to be returned can be directly sent to the client and the important data can be sent to the backup end for backup. Based on the above method, the important data can be backed up when the amount of important data is large, and the backup data can be retrieved and sent to the client when the amount of important data is small, so as to avoid the situation where the client has no available data, so that the client can display the content based on the backup data, and avoid the situation where the client displays an error code or a blank page, thereby improving the user experience.

[0134] The above description is only an implementation method of the present application, and does not limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made using the contents of the present application specification and drawings, or directly or indirectly used in other related technical fields, are also included in the patent protection scope of the present application.

Claims

1. A data disaster recovery processing method, It is characterized in that include: The server obtains the request instruction sent by the client; The server determines the data to be returned based on the request instruction; The server determines the amount of important data in the data to be returned; If the data volume is not greater than a first preset value, the server obtains backup data corresponding to the request instruction from the backup end, and sends the backup data to the client; If the data volume is greater than a second preset value, the server sends the data to be returned to the client, and sends the important data to the backup end to update the backup data; If the data volume is greater than the first preset value and not greater than the second preset value, the server sends the data to be returned to the client; The first preset value is smaller than the second preset value.

2. The processing method according to claim 1, It is characterized in that The step of the server acquiring the backup data corresponding to the request instruction from the backup end and sending the backup data to the client includes: The server determines whether there is cache data corresponding to the request instruction in the local cache; If cache data corresponding to the request instruction exists in the local cache, the server sends the cache data to the client; If the cache data corresponding to the request instruction does not exist in the local cache, the server determines whether the backup data corresponding to the request instruction exists in the backup end; If the server determines that the backup end has backup data corresponding to the request instruction, the server obtains the backup data corresponding to the request instruction from the backup end, and sends the backup data to the client.

3. The processing method according to claim 2, It is characterized in that After the step of the server determining whether there is backup data corresponding to the request instruction in the backup end, the processing method further includes: If the server determines that the backup data corresponding to the request instruction does not exist in the backup end, the server writes no backup identification data in the local cache; If the cache data corresponding to the request instruction does not exist in the local cache, the step of the server determining whether the backup data corresponding to the request instruction exists in the backup end includes: If the cache data corresponding to the request instruction and the no-backup identification data do not exist in the local cache, the server determines whether the backup data corresponding to the request instruction exists in the backup end.

4. The processing method according to claim 1, It is characterized in that The step of the server acquiring the backup data corresponding to the request instruction from the backup end and sending the backup data to the client includes: The server determines the requested data category based on the request instruction; The server obtains, based on the requested data category, the backup data corresponding to the requested data category from the backup end; The server sends the backup data to the client.

5. The processing method according to claim 1, It is characterized in that The step of sending the important data to the backup end to update the backup data includes: The server determines the requested data category based on the request instruction; The server obtains, from the backup end, a storage identifier corresponding to the requested data category based on the requested data category, wherein a storage identifier corresponding to the requested data category can be obtained a preset number of times within a preset time period; The server sends the important data to the backup end based on the storage identifier, so that the backup end stores the important data into the storage space corresponding to the storage identifier to update the backup data.

6. A data disaster recovery processing method, It is characterized in that Applied to a live broadcast system, the live broadcast system includes: a server, a client and a backup end, and the processing method includes: The client sends a request instruction to the server; The server determines the data to be returned based on the request instruction; The server determines the amount of important data in the data to be returned; If the data volume is not greater than a first preset value, the server obtains backup data corresponding to the request instruction from the backup end and sends the backup data to the client, and the client performs display based on the backup data; If the data volume is greater than a second preset value, the server sends the data to be returned to the client and sends the important data to the backup end, and the backup end updates the backup data based on the important data; If the data volume is greater than the first preset value and not greater than the second preset value, the server sends the data to be returned to the client; The first preset value is smaller than the second preset value.

7. A server, It is characterized in that The server comprises: a communication module and a processing module; The communication module is used to obtain the request instruction sent by the client; The processing module is used to determine the data to be returned based on the request instruction; determine the data volume of important data in the data to be returned; if the data volume is not greater than a first preset value, obtain the backup data corresponding to the request instruction from the backup end, and trigger the communication module to send the backup data to the client; if the data volume is greater than a second preset value, send the data to be returned to the client, and trigger the communication module to send the important data to the backup end to update the backup data; if the data volume is greater than the first preset value and not greater than the second preset value, send the data to be returned to the client; The first preset value is smaller than the second preset value.

8. A live broadcast system, It is characterized in that include: The client is used to send request instructions to the server; The server is used to: determine the data to be returned based on the request instruction; Determine the amount of important data in the data to be returned; A backup end, used for updating backup data based on the important data; The server is further configured to: if the data volume is not greater than a first preset value, obtain backup data corresponding to the request instruction from the backup end and send the backup data to the client; the client is further configured to display based on the backup data; The server is further configured to: if the data volume is greater than a second preset value, send the data to be returned to the client and send the important data to the backup end; The server is further configured to: if the data volume is greater than the first preset value and not greater than the second preset value, send the data to be returned to the client; The first preset value is smaller than the second preset value.

9. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores program instructions, and when the program instructions are executed by a processor, the method according to any one of claims 1 to 5 and / or the method according to claim 6 is implemented.