Data processing method, device, electronic device and storage medium

By generating data deletion instructions and a cache time limit in live broadcast technology, the data processing process is optimized, the balance problem between interface response pressure and real-time data display is solved, the real-time and accuracy of data is achieved, redundant data is avoided, and the user experience is improved.

CN116156004BActive Publication Date: 2025-09-09BEIJING DAJIA INTERNET INFORMATION TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310063883.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-01-16
Publication Date
2025-09-09
Estimated Expiration
2043-01-16

AI Technical Summary

Technical Problem

In live broadcast technology, the reduction of interface response pressure and the real-time display of data cannot be balanced, resulting in redundant data and reduced user experience.

Method used

By generating a data deletion instruction, the client is instructed to delete the locally cached target display data and obtain the updated target display data through the business interface. The data processing process is optimized by combining the cache time limit and the update request sending time.

Benefits of technology

While reducing the response pressure of business interfaces, it ensures the real-time and accuracy of data, avoids data redundancy, and improves user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116156004B_ABST
    Figure CN116156004B_ABST
Patent Text Reader

Abstract

The present disclosure relates to a data processing method, device, electronic device and storage medium, the method comprising: a first client being a provider of target display data, and a second client being a receiver of target display data. When the target display data corresponding to the first client in the target virtual space is updated, a data deletion instruction corresponding to the second client in the target virtual space is generated, and the data deletion instruction is used to instruct the second client to delete the locally cached target display data. An update data acquisition request sent by the second client through a business interface is received, and based on the update data acquisition request, the updated target display data is sent to the second client through the business interface. This method can reduce the instantaneous response pressure of the business interface while ensuring the real-time nature of the target display data, and promptly delete expired target display data, thereby avoiding data redundancy problems and improving the accuracy of displaying the target display data.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of live broadcast technology, and in particular to a data processing method, device, electronic device and storage medium. Background Art

[0002] As a highly interactive and real-time gameplay, the live broadcast room allows the host and the client to interact in real time in the live broadcast room with its instant response feature. However, in related technologies, reducing the response pressure of the business interface will reduce the real-time performance of data display, while displaying data in real time will increase the response pressure of the business interface. As a result, it is impossible to balance the reduction of the interface response pressure and the real-time display of data, resulting in redundant data and a reduced user experience. Summary of the Invention

[0003] The present disclosure provides a data processing method, device, and system to at least address the problem in related technologies of reducing interface response pressure and not being able to balance the real-time display of data, resulting in redundant data. The technical solutions of the present disclosure are as follows:

[0004] According to a first aspect of an embodiment of the present disclosure, there is provided a data processing method, the method comprising:

[0005] generating a data deletion instruction corresponding to a second client in the target virtual space when target display data corresponding to a first client in the target virtual space is updated, wherein the first client is a provider of the target display data; and the second client is at least one client that requests the target display data through a service interface corresponding to the target display data;

[0006] Sending the data deletion instruction to the second client, where the data deletion instruction is used to instruct the second client to delete the target presentation data cached locally;

[0007] receiving a request for obtaining updated data sent by the second client through the service interface;

[0008] Based on the updated data acquisition request, the updated target display data is sent to the second client through the service interface.

[0009] As an optional embodiment, the data deletion instruction includes the update request sending time, and the receiving the update data acquisition request sent by the second client through the service interface includes:

[0010] The update data acquisition request sent by the second client within the update request sending time is received.

[0011] As an optional embodiment, before generating the data deletion instruction corresponding to the second client in the target virtual space, the method further includes:

[0012] Upon receiving the display data acquisition request sent by the second client through the service interface, generating a cache time upper limit corresponding to the target display data;

[0013] The target display data and the cache time limit are sent to the second client through the service interface. The cache time limit is used to instruct the second client to delete the target display data if the local cache time of the target display data is greater than or equal to the cache time limit.

[0014] As an optional embodiment, the generating of the upper limit of the cache time corresponding to the target display data includes:

[0015] Based on the preset business scenario corresponding to the target display data, obtaining a data update level corresponding to the target display data, the data update level being used to indicate a data update frequency corresponding to different preset business scenarios;

[0016] Based on the data update level, a cache time upper limit corresponding to the target display data is generated.

[0017] According to a second aspect of an embodiment of the present disclosure, there is provided a data processing method, the method comprising:

[0018] receiving a data deletion instruction for target display data sent by a server, wherein the data deletion instruction is generated by the server when target display data corresponding to a first client in a target virtual space is updated;

[0019] In response to the data deletion instruction, deleting the target display data in the local cache, where the target display data in the local cache is cached through the service interface corresponding to the target display data;

[0020] An update data acquisition request is sent to the server through the service interface, where the update data acquisition request is used to instruct the server to send updated target display data through the service interface.

[0021] As an optional embodiment, the data deletion instruction includes an update request sending time, and the sending of the update data acquisition request to the server through the service interface includes:

[0022] Determining a target sending time from a time interval corresponding to the update request sending time;

[0023] Sending an update data acquisition request to the server via the service interface at the target sending time.

[0024] As an optional embodiment, before receiving the data deletion instruction of the target display data sent by the server, the method further includes:

[0025] receiving the target display data and the upper limit of the cache time corresponding to the target display time sent by the server;

[0026] When the local cache time of the target display data is greater than or equal to the cache time upper limit, the target display data is deleted.

[0027] According to a third aspect of an embodiment of the present disclosure, there is provided a data processing device, the device comprising:

[0028] a deletion instruction generation module configured to, when target display data corresponding to a first client in a target virtual space is updated, generate a data deletion instruction corresponding to a second client in the target virtual space, wherein the first client is a provider of the target display data; and the second client is at least one client that requests the target display data through a service interface corresponding to the target display data;

[0029] a deletion instruction sending module, configured to execute sending the data deletion instruction to the second client, wherein the data deletion instruction is used to instruct the second client to delete the target display data cached locally;

[0030] an update request interface module, configured to receive an update data acquisition request sent by the second client through the service interface;

[0031] The updated data sending module is configured to execute, based on the updated data acquisition request, sending the updated target display data to the second client through the service interface.

[0032] According to a fourth aspect of an embodiment of the present disclosure, there is provided a data processing device, the device comprising:

[0033] a deletion instruction receiving module configured to execute a data deletion instruction of target display data received from a server, wherein the data deletion instruction is generated by the server when target display data corresponding to a first client in a target virtual space is updated;

[0034] a data deletion module configured to execute, in response to the data deletion instruction, deletion of the target display data cached locally, where the target display data cached locally is cached via a service interface corresponding to the target display data;

[0035] The update request sending module is configured to send an update data acquisition request to the server through the service interface, wherein the update data acquisition request is used to instruct the server to send updated target display data through the service interface.

[0036] According to a fifth aspect of an embodiment of the present disclosure, an electronic device is provided, the electronic device including:

[0037] processor;

[0038] a memory for storing instructions executable by the processor;

[0039] The processor is configured to execute the instructions to implement the data processing method as described above.

[0040] According to a sixth aspect of an embodiment of the present disclosure, a computer-readable storage medium is provided. When instructions in the computer-readable storage medium are executed by a processor of an electronic device, the electronic device is enabled to perform the data processing method as described above.

[0041] According to a seventh aspect of an embodiment of the present disclosure, a computer program product is provided, comprising a computer program, which implements the above-mentioned data processing method when executed by a processor.

[0042] The technical solutions provided by the embodiments of the present disclosure bring at least the following beneficial effects:

[0043] The first client is the provider of the target display data, and the second client is the receiver of the target display data. When the target display data corresponding to the first client in the target virtual space is updated, a data deletion instruction corresponding to the second client in the target virtual space is generated, and the data deletion instruction is used to instruct the second client to delete the locally cached target display data. Receive an update data acquisition request sent by the second client through the business interface and, based on the update data acquisition request, send the updated target display data to the second client through the business interface. This method can ensure the real-time nature of the target display data while reducing the instantaneous response pressure of the business interface through local caching and data deletion instructions, balancing the reduction of the interface response pressure and the real-time display of data, and promptly delete expired target display data to avoid data redundancy and improve the accuracy of the display of the target display data.

[0044] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0045] The accompanying drawings herein are incorporated into and constitute a part of the specification, illustrate embodiments consistent with the present disclosure, and together with the description are used to explain the principles of the present disclosure, and do not constitute an improper limitation of the present disclosure.

[0046] Figure 1 The figure is a schematic diagram of an application scenario of a data processing method according to an exemplary embodiment.

[0047] Figure 2 The figure is a flow chart showing a data processing method according to an exemplary embodiment.

[0048] Figure 3 The present invention is a flowchart of performing data processing based on a cache time upper limit in a data processing method according to an exemplary embodiment.

[0049] Figure 4 The present invention is a flowchart of sending an update data acquisition request in a data processing method according to an exemplary embodiment.

[0050] Figure 5 The present invention is a flowchart of generating a cache time upper limit in a data processing method according to an exemplary embodiment.

[0051] Figure 6 The figure is a flow chart showing a data processing method on a server side according to an exemplary embodiment.

[0052] Figure 7 The figure is a flowchart showing a method for processing data on a client side according to an exemplary embodiment.

[0053] Figure 8 The figure is a block diagram showing a data processing device on a server side according to an exemplary embodiment.

[0054] Figure 9 The figure is a block diagram showing a data processing device on a client side according to an exemplary embodiment.

[0055] Figure 10 The figure is a block diagram of an electronic device on a client side according to an exemplary embodiment.

[0056] Figure 11 The figure is a block diagram of an electronic device on a server side according to an exemplary embodiment. DETAILED DESCRIPTION

[0057] In order to enable ordinary persons in the art to better understand the technical solutions of the present disclosure, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below with reference to the accompanying drawings.

[0058] It should be noted that the terms "first," "second," and the like in the specification and claims of the present disclosure and the above-mentioned drawings are used to distinguish similar objects and are not necessarily used to describe a specific order or precedence. It should be understood that the numbers used in this manner are interchangeable where appropriate so that the embodiments of the present disclosure described herein can be implemented in an order other than those illustrated or described herein. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure as detailed in the appended claims.

[0059] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for display, data for analysis, etc.) involved in this disclosure are all information and data authorized by the user or fully authorized by all parties.

[0060] Figure 1 is a schematic diagram of an application scenario of a data processing method according to an exemplary embodiment. Figure 1 As shown, this application scenario includes: a first client 110, a second client 120, and a server 130. When the first client 110 updates the target display data, the server 130 generates a data deletion instruction corresponding to the second client 120 in the target virtual space. The server 130 sends the data deletion instruction to the second client 120. The second client 120 deletes the target display data cached locally and sends an updated data request to the server 130 via a service interface. The server 130 sends the updated target display data to the second client via the service interface.

[0061] In the embodiments of the present disclosure, the first client 110 or the second client 120 includes a physical device such as a smartphone, a desktop computer, a tablet computer, a laptop computer, a digital assistant, or a smart wearable device, and may also include software running on the physical device, such as an application. The operating system running on the physical device in the embodiments of the present application may include, but is not limited to, Android, iOS, Linux, Unix, Windows, etc.

[0062] In the embodiment of the present disclosure, the server 130 may include an independent server, a distributed server, or a server cluster composed of multiple servers. The server 130 may include a network communication unit, a processor, a memory, and the like.

[0063] Figure 2 is an interactive flow chart of a data processing method according to an exemplary embodiment. Figure 2 As shown, the method includes the following steps.

[0064] S210. When the target display data corresponding to the first client in the target virtual space is updated, the server generates a data deletion instruction corresponding to the second client in the target virtual space, where the first client is the provider of the target display data; the second client is at least one client that requests the target display data through the service interface corresponding to the target display data;

[0065] As an optional embodiment, a first client and a second client can interact within the target virtual space. The first client provides target display data, and the second client requests the target display data through the corresponding service interface and caches the target display data locally. There can be multiple second clients. In a live broadcast scenario, the first client can be the host, and the second client can be the viewer. If the host modifies the target display data, the server generates a data deletion instruction.

[0066] As an alternative embodiment, see Figure 3 Before generating a data deletion instruction corresponding to the second client in the target virtual space, the method further includes:

[0067] S310. Upon receiving the display data acquisition request sent by the second client through the service interface, the server generates a cache time limit corresponding to the target display data;

[0068] S320. The server sends the target display data and cache time limit to the second client through the business interface;

[0069] S330. The second client receives the target display data and the upper limit of the cache time corresponding to the target display time sent by the server;

[0070] S340. The second client deletes the target display data when the local cache time of the target display data is greater than or equal to the upper cache time limit.

[0071] As an optional embodiment, when the second client sends a display data acquisition request to the server via a service interface to acquire target display data, the server sets a corresponding cache time limit for the target display data. When the second client receives the target display data, it also receives the cache time limit. If the local cache time of the target display data is greater than or equal to the cache time limit, the second client automatically deletes the target display data.

[0072] If the target display data has been locally cached for less than the upper cache time limit, i.e., the target display data has not expired, and the first client updates the target display data, then the second client may delete the target display data corresponding to the data deletion instruction after receiving the data deletion instruction from the server. If the target display data has been locally cached for more than or equal to the upper cache time limit, i.e., the target display data has expired, and the first client updates the target display data, then the target display data has already been deleted by the second client, and the data deletion instruction may not be executed.

[0073] The server may, upon sending the target display data and the maximum caching time, and receiving a display data reception result from the second client indicating successful reception of the target display data, deem the target display data to be cached on the local terminal of the second client. If the first client updates the target display data, the server may send a data deletion instruction to the second client, which then determines whether to execute the data deletion instruction.

[0074] As an optional embodiment, the target display data cached locally on the second client can be processed by setting an upper limit on the cache time. For example, if the server generates a data deletion instruction based on an update of the target display data by the first client, and the upper limit on the cache time is within a first preset range, the upper limit on the cache time is set to a second preset range that is smaller than the first preset range, thereby increasing the frequency of data requests from the second client. This allows the second client to proactively delete the target display data and obtain updated target display data from the server in real time.

[0075] By setting the upper limit of the cache time, the second client actively deletes the target display data, so that data processing can be performed on the target display data that needs to be updated frequently, simplifying the data processing steps and improving the data processing efficiency.

[0076] S220. The server sends a data deletion instruction to the second client;

[0077] S230. The second client deletes the target display data in the local cache in response to the data deletion instruction;

[0078] As an optional embodiment, the data deletion instruction is used to delete the target display data cached locally in the second client. After entering the target virtual space, the second client can interact with the first client and obtain the target display data from the first client through the service interface, caching the target display data locally. Receiving the data deletion instruction indicates that the first client has modified the target display data, and therefore deletes the locally cached target display data.

[0079] S240. The second client sends an update data acquisition request through the business interface;

[0080] As an optional embodiment, after deleting the locally cached target display data, the second client can send an update data acquisition request to the server via the service interface to obtain the updated target display data. The updated target display data is then displayed on the second client. The data deletion instruction can include the update request sending time. By setting the update request sending time, multiple second clients can obtain the updated target display data at different time points, thereby reducing the response pressure on the service interface.

[0081] As an alternative embodiment, see Figure 4 , the data deletion instruction includes the update request sending time, and the method includes:

[0082] S410. The second client determines the target sending time from the time interval corresponding to the update request sending time;

[0083] S420. The second client sends an update data acquisition request to the server through the service interface at the target sending time.

[0084] S430. The server receives the update data acquisition request sent by the second client within the update request sending time.

[0085] As an optional embodiment, when the server generates a data deletion instruction, the instruction may include an update request sending time. This update request sending time is activated when the second client receives the data deletion instruction. That is, if the second client encounters an error when executing the data deletion instruction and fails to delete the target display data, the update request sending time may be activated, allowing the second client to request an update from the server. After receiving the data deletion instruction, the second client deletes the target display data and, based on the update request sending time in the data deletion instruction, generates an updated data acquisition request and sends this updated data acquisition request to the server.

[0086] The second client can determine any time point as the target sending time within the time interval corresponding to the update request sending time, and send an update data acquisition request to the server through the business interface at the target sending time. In the case of multiple second clients, the randomly determined target sending time can be used to disperse the update data acquisition requests corresponding to each second client. For example, if there are 100 second clients, if the update request sending time is not set, these 100 second clients will send update data acquisition requests after deleting the target display data, which will cause the business interface to receive 100 update data acquisition requests at the same time. However, if the update request sending time is set, these 100 second clients will randomly determine a target sending time within the update request sending time, and send their corresponding update data acquisition requests when their corresponding target sending time arrives, so that the business interface can receive the update data acquisition requests corresponding to some second clients at each time point within the update request sending time.

[0087] By randomly determining the target sending time, when the number of second clients is large, the update data acquisition requests sent by the second clients are dispersed, avoiding an increase in the instantaneous access volume of the business interface, thereby reducing the response pressure of the business interface.

[0088] S250. Based on the updated data acquisition request, the server sends the updated target display data to the second client through the service interface.

[0089] As an optional embodiment, the update data acquisition request is a request actively sent by the second client. Based on the active access of the second client, the server sends the updated target display data in the first client to the second client.

[0090] As an alternative embodiment, see Figure 5 The upper limit of the cache time corresponding to the generated target display data includes:

[0091] S510. Based on the preset business scenario corresponding to the target display data, obtain the data update level corresponding to the target display data, the data update level is used to indicate the data update frequency corresponding to different preset business scenarios;

[0092] S520. Generate a cache time upper limit corresponding to the target display data based on the data update level.

[0093] As an optional embodiment, different preset business scenarios may correspond to different data update frequencies, and preset business scenarios with higher data update frequencies may correspond to lower cache time limits. For example, the data update frequency corresponding to a live shopping scenario may be higher than that corresponding to a live recruitment scenario, and the cache time limit corresponding to the live shopping scenario may be lower than that corresponding to the live recruitment scenario.

[0094] The threshold corresponding to the data update frequency is the preset update frequency. The upper limit of the cache time corresponding to the preset update frequency is the preset time threshold. The preset update frequency is used to determine whether the server generates a data deletion instruction instructing the second client to delete the target display data, or whether the second client deletes the target display data based on the upper limit of the cache time.

[0095] When the cache time limit is less than the preset time threshold, that is, when the data update frequency corresponding to the preset business scenario is greater than the preset update frequency, the target display data is updated frequently and the local cache time of the target display data is short. When the first client updates the target display data, the target display data cached locally by the second client may have expired. In this case, the second client will request data from the server again, and the data obtained from the server is likely to be the updated target display data. Therefore, when the first client updates the target display data, the server may not generate a data deletion instruction. Instead, it can enable the second client to proactively delete the target display data when the cache time of the target display data reaches the cache time limit and then request the target display data again from the server.

[0096] If the cache time limit is greater than or equal to the preset time threshold, that is, if the data update frequency corresponding to the preset business scenario is less than or equal to the preset update frequency, the target display data is updated less frequently and is cached locally for a longer period of time. When the first client updates the target display data, the target display data cached locally by the second client may not have expired, resulting in the second client not requesting the data from the server again. Therefore, when the first client updates the target display data, the server generates a data deletion instruction and sends it to the second client. Based on the data deletion instruction, the second client deletes the target display data and requests the updated target display data from the server. The updated target display data is then displayed on the second client.

[0097] Based on different cache time limits, different data processing methods are set to process data for different preset business scenarios, thereby improving the applicability and rationality of data processing.

[0098] Figure 6 is a flow chart showing a data processing method according to an exemplary embodiment. Figure 6 As shown, the method is used on the server side and includes the following steps:

[0099] S610. When the target display data corresponding to the first client in the target virtual space is updated, a data deletion instruction corresponding to the second client in the target virtual space is generated, where the first client is the provider of the target display data; the second client is at least one client that requests the target display data through the service interface corresponding to the target display data;

[0100] S620. Sending a data deletion instruction to the second client, the data deletion instruction is used to instruct the second client to delete the target display data cached locally;

[0101] S630. Receive the update data acquisition request sent by the second client through the business interface;

[0102] S640. Based on the updated data acquisition request, send the updated target display data to the second client through the service interface.

[0103] As an optional embodiment, a first client provides target display data, and a second client requests the target display data through a service interface corresponding to the target display data. The first and second clients can interact in the target virtual space. As the provider of the target display data, the first client can update the target display data, and the second client can cache the target display data obtained through the service interface locally. If the first client updates the target display data, it can be determined that the target display data has expired. The server can then generate a data deletion instruction corresponding to the second client and send the data deletion instruction to the second client, instructing the second client to delete the locally cached target display data.

[0104] The data deletion instruction may include an update request sending time. After deleting the target display data, the second client may send an update data acquisition request to the server through the business interface within the update request sending time. The server receives the update data acquisition request sent by the second client through the business interface, and sends the updated target display data and the cache time limit corresponding to the updated target display data to the second client through the business interface.

[0105] When the second client obtains the target display data through the service interface, the server sends the target display data and the corresponding cache time limit to the second client through the service interface. When the target display data's local cache time on the second client reaches the cache time limit, the second client proactively deletes the target display data. When generating the cache time limit, the server may obtain the data update level corresponding to the target display data based on the preset business scenario corresponding to the target display data. The data update level indicates the data update frequency corresponding to different preset business scenarios, and generates the cache time limit based on the data update level.

[0106] If the generated cache time limit is greater than the preset time threshold, the server generates a data deletion instruction when the first client updates the target display data. If the generated cache time limit is less than the preset time threshold, the server does not generate a data deletion instruction when the first client updates the target display data. The second client deletes the target display data when the cache time of the target display data reaches the cache time limit.

[0107] As an optional embodiment, in the case of a live recruitment broadcast, the target display data is job position data. If a first client modifies the job position data, thereby updating the target display data, the server can generate a data deletion instruction corresponding to a second client in the target virtual space. This data deletion instruction is used to delete the job position data cached locally by the second client. After the second client deletes the locally cached job position data, the server receives an update data acquisition request proactively sent by the second client via a service interface and sends the modified job position data to the second client via the service interface.

[0108] While reducing the instantaneous response pressure of the business interface through local caching, the real-time nature of the target display data can be ensured through data deletion instructions, and expired target display data can be deleted in a timely manner.

[0109] Figure 7 is a flow chart showing a data processing method according to an exemplary embodiment. Figure 7 As shown, the method is used in the second client side and includes the following steps:

[0110] S710. Receive a data deletion instruction for the target display data sent by the server, the data deletion instruction being generated by the server when the target display data corresponding to the first client in the target virtual space is updated;

[0111] S720. In response to the data deletion instruction, the target display data in the local cache is deleted. The target display data in the local cache is cached by the business interface corresponding to the target display data;

[0112] S730. Send an update data acquisition request to the server through the business interface. The update data acquisition request is used to instruct the server to send the updated target display data through the business interface.

[0113] As an optional embodiment, if the second client has the target display data cached locally, it can delete the locally cached target display data based on a received data deletion instruction. The data deletion instruction includes the update request sending time. The second client can determine any time point within the time interval corresponding to the update request sending time as the target sending time, and send an update data acquisition request to the server via the service interface at the target sending time. If there are multiple second clients, the randomly determined target sending time can be used to disperse the update data acquisition requests corresponding to each second client.

[0114] The second client sends an updated data acquisition request to the server through the service interface at the target sending time to obtain the updated target display data.

[0115] The target display data and updated target display data each have a corresponding maximum caching time. If the local cache time of the target display data reaches the maximum caching time, the second client can proactively delete the target display data and request new target display data from the server. If the target display data has not been updated at this time, the second client will receive the original target display data. If the target display data has been updated at this time, the second client will receive the updated target display data. Similarly, the same data processing method can be applied to the updated target display data.

[0116] As an optional embodiment, this data processing method can be applied to live broadcast scenarios such as live recruitment, live sales, and live gaming. In live broadcast scenarios, the first client can be the host, the second client can be the audience, the target virtual space can be the live broadcast room, and the service interface can be an instant response information interface. For example, in a live recruitment scenario, the service interface can be used for instant response job information query, and in a live sales scenario, the service interface can be used for instant response inventory information query.

[0117] The second client can obtain the target display data corresponding to the first client from the server through the service interface and cache it locally. The target display data can include a cache time limit. If the local cache time of the target display data is less than the cache time limit, the second client calls the locally cached target display data for display. If the local cache time of the target display data reaches the cache time limit, the second client deletes the locally cached target display data and requests new target display data from the server. This data may be the original target display data or updated target display data.

[0118] In the case where the upper limit of the cache time is less than the preset time threshold, when the first client updates the target display data, the server may not generate a data deletion instruction, but the second client may delete the locally cached target display data based on the upper limit of the cache time. In the case where the upper limit of the cache time is greater than or equal to the preset time threshold, when the first client updates the target display data, the server may generate a data deletion instruction and send the data deletion instruction to the second client currently online. In response to the data deletion instruction, the second client determines that the locally cached target display data has expired, and thus deletes the locally cached target display data. After deleting the target display data, the second client requests the updated target display data from the server through the business interface. In the live recruitment scenario, the recruitment position data can be modified for the first client during the live broadcast. The server generates a data deletion instruction corresponding to the recruitment position data and sends it to each second client. Based on the data deletion instruction, each second client deletes the locally cached recruitment position data and requests the modified recruitment position data from the server through the instantly responsive position information query interface.

[0119] The data deletion instruction sent by the server includes the update request sending time. Multiple second clients interacting with the first client in the same target virtual space can randomly select any time point as the target sending time within the time interval corresponding to the update request sending time and send an update data acquisition request to the server via the service interface at each corresponding target sending time. After receiving the updated target display data, the second clients display the updated target display data on their own.

[0120] Through local caching, the smoothness of the display of target display data can be guaranteed in the case of weak network and hot spot requests, and the update request sending time can be dispersed by distributing the update data acquisition requests corresponding to multiple second clients, thereby reducing the instantaneous response pressure of the business interface.

[0121] An embodiment of the present invention proposes a data processing method, which includes: a first client is a provider of target display data, and a second client is a receiver of target display data. When the target display data corresponding to the first client in the target virtual space is updated, a data deletion instruction corresponding to the second client in the target virtual space is generated, and the data deletion instruction is used to instruct the second client to delete the locally cached target display data. An update data acquisition request sent by the second client through a business interface is received, and based on the update data acquisition request, the updated target display data is sent to the second client through the business interface. This method can ensure the real-time nature of the target display data while reducing the instantaneous response pressure of the business interface through local caching and data deletion instructions, balance the reduction of the interface response pressure and the real-time display of data, and promptly delete expired target display data to avoid data redundancy problems and improve the accuracy of the display of target display data.

[0122] Figure 8 This is a block diagram of a data processing device according to an exemplary embodiment. Figure 8 , the device comprises:

[0123] The deletion instruction generation module 810 is configured to execute, when target display data corresponding to a first client in the target virtual space is updated, a data deletion instruction corresponding to a second client in the target virtual space, where the first client is a provider of the target display data; and the second client is at least one client that requests the target display data through a service interface corresponding to the target display data.

[0124] A deletion instruction sending module 820 is configured to execute sending a data deletion instruction to the second client, where the data deletion instruction is used to instruct the second client to delete the target display data cached locally;

[0125] The update request interface module 830 is configured to receive an update data acquisition request sent by the second client through the service interface;

[0126] The updated data sending module 840 is configured to execute, based on the updated data acquisition request, sending the updated target display data to the second client through the service interface.

[0127] As an optional embodiment, the data deletion instruction includes the update request sending time, and the update request interface module includes:

[0128] The update request interface unit is configured to receive an update data acquisition request sent by the second client within the update request sending time.

[0129] As an optional embodiment, the device further includes:

[0130] a cache time upper limit generating module configured to generate a cache time upper limit corresponding to target display data upon receiving a display data acquisition request sent by the second client through the service interface;

[0131] The cache time limit sending module is configured to execute sending the target display data and the cache time limit to the second client through the service interface. The cache time limit is used to instruct the second client to delete the target display data when the local cache time of the target display data is greater than or equal to the cache time limit.

[0132] As an optional embodiment, the cache time upper limit generating module includes:

[0133] a data update level acquisition unit configured to execute a preset business scenario corresponding to the target display data and acquire a data update level corresponding to the target display data, wherein the data update level is used to indicate a data update frequency corresponding to different preset business scenarios;

[0134] The cache time upper limit generating unit is configured to generate a cache time upper limit corresponding to the target display data based on the data update level.

[0135] Figure 9 This is a block diagram of a data processing device according to an exemplary embodiment. Figure 9 , the device comprises:

[0136] A deletion instruction receiving module 910 is configured to execute a data deletion instruction of target display data received from a server, the data deletion instruction being generated by the server when target display data corresponding to a first client in a target virtual space is updated;

[0137] The data deletion module 920 is configured to execute a data deletion instruction to delete the locally cached target display data, where the locally cached target display data is cached through the service interface corresponding to the target display data;

[0138] The update request sending module 930 is configured to send an update data acquisition request to the server through the business interface, where the update data acquisition request is used to instruct the server to send updated target display data through the business interface.

[0139] As an optional embodiment, the data deletion instruction includes the update request sending time, and the update request sending module includes:

[0140] a target sending time determining unit configured to determine a target sending time within a time interval corresponding to the update request sending time;

[0141] The update request sending unit is configured to send an update data acquisition request to the server at a target sending time through a service interface.

[0142] As an optional embodiment, the device further includes:

[0143] a cache time upper limit receiving unit configured to receive the target display data and the cache time upper limit corresponding to the target display time sent by the server;

[0144] The target display data deleting unit is configured to delete the target display data when the local cache time of the target display data is greater than or equal to the cache time upper limit.

[0145] Regarding the apparatus in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.

[0146] Figure 10 is a block diagram of an electronic device for data processing according to an exemplary embodiment. The electronic device may be a terminal, and its internal structure diagram may be as shown in FIG. Figure 10 As shown. The electronic device includes a processor, a memory, a network interface, a display screen and an input device connected via a system bus. The processor of the electronic device is used to provide computing and control capabilities. The memory of the electronic device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The network interface of the electronic device is used to communicate with an external terminal via a network connection. When the computer program is executed by the processor, a data processing method is implemented. The display screen of the electronic device can be a liquid crystal display screen or an electronic ink display screen, and the input device of the electronic device can be a touch layer covering the display screen, or a button, trackball or touchpad provided on the housing of the electronic device, or an external keyboard, touchpad or mouse, etc.

[0147] Figure 11 is a block diagram of an electronic device for data processing according to an exemplary embodiment. The electronic device may be a server, and its internal structure diagram may be as shown in FIG. Figure 11As shown. The electronic device includes a processor, a memory, and a network interface connected via a system bus. The processor of the electronic device is used to provide computing and control capabilities. The memory of the electronic device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and computer program in the non-volatile storage medium. The network interface of the electronic device is used to communicate with an external terminal via a network connection. When the computer program is executed by the processor, a data processing method is implemented.

[0148] Those skilled in the art will understand that Figure 10 and Figure 11 The structure shown in the figure is only a block diagram of a part of the structure related to the scheme of the present disclosure, and does not constitute a limitation on the electronic device to which the scheme of the present disclosure is applied. The specific electronic device may include more or fewer components than shown in the figure, or combine certain components, or have a different component arrangement.

[0149] In an exemplary embodiment, an electronic device is further provided, comprising: a processor; and a memory for storing instructions executable by the processor; wherein the processor is configured to execute the instructions to implement the data processing method in the embodiment of the present disclosure.

[0150] In an exemplary embodiment, a computer-readable storage medium including instructions is also provided, such as a memory including instructions, wherein the instructions can be executed by a processor of an electronic device to perform the above method. Alternatively, the computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.

[0151] In an exemplary embodiment, a computer program product containing instructions is also provided. When the computer program product is run on a computer, the computer is caused to execute the data processing method in the embodiment of the present disclosure.

[0152] Those skilled in the art will appreciate that all or part of the processes in the above-mentioned embodiment methods can be implemented by instructing the relevant hardware through a computer program, which can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in various forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).

[0153] Other embodiments of the present disclosure will readily occur to those skilled in the art after considering the specification and practicing the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art not disclosed herein. The description and examples are to be considered as exemplary only, with the true scope and spirit of the present disclosure being indicated by the following claims.

[0154] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes can be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims

1. A data processing method, characterized in that: The method comprises: generating, when target display data corresponding to a first client in a target virtual space is updated, a data deletion instruction corresponding to at least one second client in the target virtual space, wherein the first client is a provider of the target display data; the at least one second client is at least one client that requests the target display data through a service interface corresponding to the target display data; the data deletion instruction includes a time when the update request was sent; Sending the data deletion instruction to the at least one second client, where the data deletion instruction is used to instruct the at least one second client to delete the target presentation data cached locally; receiving an update data acquisition request sent by the at least one second client through the service interface at a respective corresponding target sending time; the respective corresponding target sending time being any time point determined by the at least one second client within a time interval corresponding to the update request sending time; In the case where the at least one second client is a plurality of second clients, the respective corresponding target sending times are different; Based on the update data acquisition request, the updated target display data and the upper limit of the cache time corresponding to the target display data are sent to the at least one second client through the service interface, so that the at least one second client deletes the target display data if the local cache time of the target display data is greater than or equal to the upper limit of the cache time.

2. The data processing method according to claim 1, wherein: The receiving the update data acquisition request sent by the at least one second client through the service interface includes: The update data acquisition request sent by the at least one second client within the update request sending time is received.

3. The data processing method according to claim 1, wherein: Before generating a data deletion instruction corresponding to at least one second client in the target virtual space, the method further includes: upon receiving a display data acquisition request sent by the at least one second client through the service interface, generating a cache time upper limit corresponding to the target display data; The target display data and the cache time upper limit are sent to the at least one second client through the service interface, where the cache time upper limit is used to instruct the at least one second client to delete the target display data if the local cache time of the target display data is greater than or equal to the cache time upper limit.

4. The data processing method according to claim 3, wherein: The upper limit of the cache time corresponding to generating the target display data includes: Based on the preset business scenario corresponding to the target display data, obtaining a data update level corresponding to the target display data, the data update level being used to indicate a data update frequency corresponding to different preset business scenarios; Based on the data update level, a cache time upper limit corresponding to the target display data is generated.

5. A data processing method, characterized in that: Applied to any second client among the at least one second client, the method further includes: receiving a data deletion instruction for target display data sent by a server, the data deletion instruction being generated by the server when target display data corresponding to a first client in a target virtual space is updated; the data deletion instruction including a time when the update request is sent; In response to the data deletion instruction, deleting the target display data in the local cache, where the target display data in the local cache is cached through the service interface corresponding to the target display data; sending, via the service interface, an update data acquisition request to the server at each corresponding target sending time, the update data acquisition request being used to instruct the server to send updated target display data via the service interface; the each corresponding target sending time being any time point determined by the at least one second client within the time interval corresponding to the update request sending time; In the case where the at least one second client is a plurality of second clients, the respective corresponding target sending times are different; receiving updated target display data and a cache time limit corresponding to the target display data, sent by the server through the service interface based on the update data acquisition request; When the local cache time of the target display data is greater than or equal to the cache time upper limit, the target display data is deleted.

6. The data processing method according to claim 5, characterized in that: The data deletion instruction includes the update request sending time, and the sending of the update data acquisition request to the server through the service interface includes: Determining a target sending time from a time interval corresponding to the update request sending time; Sending an update data acquisition request to the server via the service interface at the target sending time.

7. The data processing method according to claim 5, characterized in that: Before receiving the data deletion instruction of the target display data sent by the server, the method further includes: receiving the target display data and a cache time upper limit corresponding to the target display data sent by the server; When the local cache time of the target display data is greater than or equal to the cache time upper limit, the target display data is deleted.

8. A data processing device, characterized in that: The device comprises: a deletion instruction generation module configured to, when target display data corresponding to a first client in a target virtual space is updated, generate a data deletion instruction corresponding to at least one second client in the target virtual space, wherein the first client is a provider of the target display data; the at least one second client is at least one client that requests the target display data through a service interface corresponding to the target display data; the data deletion instruction includes a time when the update request was sent; a deletion instruction sending module, configured to execute sending the data deletion instruction to the at least one second client, wherein the data deletion instruction is used to instruct the at least one second client to delete the target presentation data cached locally; an update request interface module configured to receive an update data acquisition request sent by the at least one second client through the service interface at a respective corresponding target sending time; the respective corresponding target sending time being any time point determined by the at least one second client within a time interval corresponding to the update request sending time; In the case where the at least one second client is a plurality of second clients, the respective corresponding target sending times are different; The update data sending module is configured to execute, based on the update data acquisition request, sending the updated target display data and the upper limit of the cache time corresponding to the target display data to the at least one second client through the service interface, so that the at least one second client deletes the target display data if the local cache time of the target display data is greater than or equal to the upper limit of the cache time.

9. A data processing device, characterized in that: Applied to any second client among at least one second client, the apparatus includes: a deletion instruction receiving module configured to execute a data deletion instruction for target display data received from a server, the data deletion instruction being generated by the server when the target display data corresponding to the first client in the target virtual space is updated; the data deletion instruction including the time when the update request was sent; a data deletion module configured to execute, in response to the data deletion instruction, deletion of the target display data cached locally, where the target display data cached locally is cached via a service interface corresponding to the target display data; an update request sending module configured to send an update data acquisition request to the server via the service interface at a corresponding target sending time, wherein the update data acquisition request is used to instruct the server to send updated target display data via the service interface; the corresponding target sending time is any time point determined by the at least one second client within a time interval corresponding to the update request sending time; In the case where the at least one second client is a plurality of second clients, the respective corresponding target sending times are different; receiving updated target display data and a cache time limit corresponding to the target display data, sent by the server through the service interface based on the update data acquisition request; When the local cache time of the target display data is greater than or equal to the cache time upper limit, the target display data is deleted.

10. An electronic device, characterized in that: The electronic device comprises: processor; a memory for storing instructions executable by the processor; The processor is configured to execute the instructions to implement the data processing method according to any one of claims 1 to 7.

11. A computer-readable storage medium, characterized in that When the instructions in the computer-readable storage medium are executed by a processor of an electronic device, the electronic device is enabled to perform the data processing method according to any one of claims 1 to 7.

12. A computer program product, characterized in that The invention comprises a computer program, which implements the data processing method according to any one of claims 1 to 7 when executed by a processor.