Data updating method and device

By differentiating data types in the main data update process and separating hot data from the main process, the message middleware generates a second update message to complete the update, which solves the problems of delay and resource waste caused by hot data updates, and realizes timely data updates and stable system services.

CN115309427BActive Publication Date: 2026-04-21BEIJING DAJIA INTERNET INFORMATION TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
BEIJING DAJIA INTERNET INFORMATION TECH CO LTD
Filing Date
2022-08-15
Publication Date
2026-04-21

AI Technical Summary

Technical Problem

During the data update process, the update of hot data will affect non-hot data, causing delays in the display of non-business data, and even causing the online service system to crash. Moreover, the solution of deploying a large number of servers is costly and wastes resources seriously.

Method used

By distinguishing data types in the main data update process, hot data (first type of data) is separated from the main process and updated by a second update message generated by the message middleware. The processing capability of the message middleware is used to ensure the timeliness and consistency of hot data and avoid occupying main process resources.

Benefits of technology

This enabled timely updates of trending data without increasing costs, ensuring the normal operation of the online service system and avoiding resource waste and delays.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115309427B_ABST
    Figure CN115309427B_ABST
Patent Text Reader

Abstract

This disclosure relates to a data update processing method and apparatus, belonging to the field of data processing technology. The method includes: responding to a first update message for first data received in a main data update process, determining whether the first data is data of a first type; if the first data is data of the first type, separating the first update message from the main data update process, and having a message middleware generate a second update message in response to the first update message to complete the update of the first data. The entire business data update does not increase the cost of additional equipment. The update of the first type of data is separated from the main data update process and completed by the message middleware, ensuring the real-time nature of updates for non-first type data; and the update of the first type of data is completed based on the message middleware's message processing capabilities, ensuring the consistency and real-time nature of the first type of data update, thus guaranteeing timely updates of business data and normal operation of the online service system.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This disclosure relates to the field of data manipulation, and more particularly to a data updating method and apparatus. Background Technology

[0002] Business data often needs to be updated and iterated during use. These updates must be sent accurately and promptly to the relevant devices. If the data to be updated is frequently accessed ("hot data"), its updates can affect the updates of less frequently accessed data due to the large number of records involved. This can lead to delays in the display of non-business data. If the delay is prolonged, system data flow will become abnormal, ultimately causing the online service system to crash. To ensure the normal flow of system data and the normal operation of the online service system, updates to hot data are typically achieved by scaling up or deploying a large number of servers.

[0003] When updating hot data using the two methods mentioned above, at least two problems were found: if capacity expansion is not timely, it will still cause delays in the display of non-business data, and the online service system will experience serious abnormal crashes; if a large number of servers are deployed, although the problem of updating hot data can be solved, the cost is extremely high, and most of the data is non-hot data and does not require so many resources, which will cause a great waste of resources and increase the company's operating costs. Summary of the Invention

[0004] This disclosure provides a data updating method and apparatus, which can achieve timely data updates without increasing costs, ensuring the normal operation of online service systems. The technical solution of this disclosure is as follows:

[0005] According to a first aspect of the present disclosure, a data update method is provided, comprising:

[0006] In response to the main data update process receiving the first update message for the first data, determine whether the first data is data of the first type;

[0007] If the first data is of the first type, then the first update message is separated from the main data update process, and the message middleware generates a second update message in response to the first update message to complete the update of the first data.

[0008] In some embodiments of this disclosure, determining whether the first data is data of the first type includes:

[0009] Obtain the number of target objects that need to undergo the first data update;

[0010] Determine whether the number of the target objects exceeds a quantity threshold;

[0011] If the number of target objects exceeds a quantity threshold, then the first data is determined to be data of the first type.

[0012] In some embodiments of this disclosure, obtaining the number of target objects requiring the first data update includes:

[0013] Based on the data information of the first data, query the corresponding data information table to obtain the number of target objects related to the first data.

[0014] In some embodiments of this disclosure, the step of generating a second update message in response to the first update message to complete the update of the first data includes:

[0015] Based on the data information of the first data, query the corresponding data information table to obtain the identification information of each target object related to the first data;

[0016] A second update message is generated based on the data information of the first data and the identification information of each target object. The second update message includes the identification information of the target object and the data information of the first data.

[0017] The target object updates the first data by publishing the second update message.

[0018] In some embodiments of this disclosure, the method further includes:

[0019] The quantity threshold is preset based on the number of target objects corresponding to relevant data in the data update system.

[0020] In some embodiments of this disclosure, the method further includes:

[0021] The quantity threshold is dynamically adjusted based on the message processing status of the main process updated by the data.

[0022] In some embodiments of this disclosure, dynamically adjusting the quantity threshold based on the message processing status of the main process updated by the data includes:

[0023] Obtain the message processing status of the main data update process;

[0024] When the number of messages to be processed exceeds the processing threshold, the number threshold is reduced by a predetermined ratio, which is positively correlated with the number of messages to be processed that exceeds the processing threshold.

[0025] According to a second aspect of the present disclosure, a data updating apparatus is provided, comprising:

[0026] The determining unit is configured to determine whether the first data is data of a first type in response to the data update main process receiving a first update message for the first data;

[0027] The execution unit is configured to, if the determining unit determines that the first data is data of the first type, separate the first update message from the main data update process, and have the message middleware generate a second update message in response to the first update message to complete the update of the first data.

[0028] According to a third aspect of the present disclosure, an electronic device is provided, comprising:

[0029] processor;

[0030] Memory used to store the processor's executable instructions;

[0031] The processor is configured to execute the instructions to implement the data update processing method as described in the first aspect.

[0032] According to a fourth aspect of the present disclosure, a storage medium is provided that, when instructions in the storage medium are executed by a processor of an electronic device, enables the electronic device to perform the data update processing method as described in the first aspect above.

[0033] According to a fifth aspect of the present disclosure, a computer program product is provided, including a computer program that, when executed by a processor, implements the data update processing method described in the first aspect above.

[0034] The technical solution provided by the embodiments of this disclosure brings at least the following beneficial effects: After the main data update process receives the first update message of the first data, if it is determined that the first data is data of the first type, the first update message of the first type of data is separated from the main data update process, and the update of the first type of data is completed by the message middleware. In this way, the update of the first type of data does not occupy the resources of the main data update process, does not affect the update of other data in the main data update process, and ensures the real-time update of non-first type of data; and the message middleware responds to the first update message to form a new second update message, and completes the update of the first type of data based on the message middleware's message processing capabilities, ensuring the consistency and real-time performance of the first type of data update. In summary, the data update method provided by the embodiments of this disclosure does not increase the cost of additional equipment for the entire business data update, so it can achieve timely data updates without increasing costs, ensuring the normal service of the online service system.

[0035] It should be understood that the above general description and the following detailed description are exemplary and explanatory only, and are not intended to limit this disclosure. Attached Figure Description

[0036] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this disclosure and, together with the description, serve to explain the principles of this disclosure, and are not intended to unduly limit this disclosure.

[0037] Figure 1 This is a flowchart illustrating a data update processing method according to an exemplary embodiment;

[0038] Figure 2 This is a flowchart illustrating a data update processing method according to an exemplary embodiment;

[0039] Figure 3 This is an interactive flowchart illustrating a data update processing method according to an exemplary embodiment;

[0040] Figure 4 This is a flowchart illustrating a data update processing method according to an exemplary embodiment;

[0041] Figure 5 This is a block diagram illustrating a data update processing apparatus according to an exemplary embodiment;

[0042] Figure 6 This is a block diagram illustrating a data update processing apparatus according to an exemplary embodiment;

[0043] Figure 7 This is a block diagram illustrating a data update processing apparatus according to an exemplary embodiment;

[0044] Figure 8 This is a block diagram illustrating a data update processing apparatus according to an exemplary embodiment;

[0045] Figure 9 This is a block diagram illustrating a data update processing apparatus according to an exemplary embodiment;

[0046] Figure 10 This is a block diagram illustrating a data update processing apparatus according to an exemplary embodiment.

[0047] Figure 11 This is a block diagram illustrating an electronic device according to an exemplary embodiment;

[0048] Figure 12 This is a block diagram illustrating an electronic device according to an exemplary embodiment. Detailed Implementation

[0049] To enable those skilled in the art to better understand the technical solutions of this disclosure, the technical solutions in the embodiments of this disclosure will be clearly and completely described below with reference to the accompanying drawings.

[0050] It should be noted that the terms "first," "second," etc., used in the specification, claims, and accompanying drawings of this disclosure are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of this disclosure described herein can be implemented in orders other than those illustrated or described herein. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this disclosure. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this disclosure as detailed in the appended claims.

[0051] Business data often needs to be updated and iterated during use. These updates must be sent accurately and promptly to the relevant devices. If the data to be updated is frequently accessed ("hot data"), its updates can affect the updates of less frequently accessed data due to the large number of records involved. This can lead to delays in the display of non-business data. If the delay is prolonged, system data flow will become abnormal, ultimately causing the online service system to crash. To ensure the normal flow of system data and the normal operation of the online service system, updates to hot data are typically achieved by scaling up or deploying a large number of servers.

[0052] When updating hot data using the two methods mentioned above, at least two problems were found: if capacity expansion is not timely, it will still cause delays in the display of non-business data, and the online service system will experience serious abnormal crashes; if a large number of servers are deployed, although the problem of updating hot data can be solved, the cost is extremely high, and most of the data is non-hot data and does not require so many resources, which will cause a great waste of resources and increase the company's operating costs.

[0053] To address the aforementioned technical problems, this invention provides a data update processing method and apparatus. This method distinguishes the data type of received data update messages and performs different update processing methods for different data types. The data type of the update message can be, but is not limited to, data of a first type and data of other types. For example, the first type of data includes large amounts of data, such as hot data. Specific embodiments of this disclosure do not impose such limitations. Specifically, as... Figure 1 As shown, Figure 1 This is a flowchart illustrating a data update processing method according to an exemplary embodiment. The data update processing method is applied in a message middleware and includes the following steps.

[0054] Step 101: In response to the main data update process receiving the first update message for the first data, determine whether the first data is data of the first type. If the first data is data of the first type, then proceed to step 102.

[0055] It's important to note that message middleware is a software system that provides reliable, synchronous or asynchronous message transmission for application systems in a network environment, based on queue and message passing technologies. When business data is being updated, message middleware can be used. During update data transmission, the message middleware establishes a process for receiving update messages; this process is the main data update flow. Within this main flow, messages requiring data updates are received and processed according to priority. Messages in this main flow can be updates for data of type 1 or for non-type 1 data. Type 1 data has higher priority than non-type 1 data. Therefore, when both types 1 and non-type 1 data update messages exist in the main data update flow, the main flow prioritizes processing the type 1 data update messages. Non-type 1 data update messages can only be processed after the type 1 data update is completed.

[0056] In embodiments of this disclosure, when the main data update process receives an update message for first data requiring updating, in order to ensure timely updates of business data, the type of the data is determined—whether it is data of a first type or data of a different type. The determination of the first type of data and non-first type data can be based on different application scenarios, and the specific implementation methods are not limited in this disclosure.

[0057] Step 102: Separate the first update message from the main data update process, and have the message middleware generate a second update message in response to the first update message to complete the update of the first data.

[0058] As described above, to avoid affecting the updating of other data in the main data update process, if the first data is determined to be of the first type, the first update message corresponding to the first type of data needs to be separated from the main data update process and executed independently. In the embodiments of this disclosure, after the first update message is separated from the main data update process, a message middleware can respond to the first update message to generate a second update message to complete the update of the first data.

[0059] It should be noted that the message middleware responds to the first update message by generating a corresponding second update message, and based on the capabilities of the message middleware, updates the first data according to the second update message.

[0060] In the embodiments of this disclosure, after the main data update process receives the first update message for the first data, if it is determined that the first data is of the first type, the first update message for the first type of data is separated from the main data update process, and the update of the first type of data is completed by the message middleware. In this way, the update of the first type of data does not occupy the resources of the main data update process and does not affect the update of other data in the main data update process, ensuring the real-time update of non-first type data. Furthermore, the message middleware responds to the first update message by forming a new second update message, and completes the update of the first type of data based on the message middleware's message processing capabilities, ensuring the consistency and real-time performance of the first type of data update. In summary, the data update method provided by the embodiments of this disclosure does not increase the cost of additional equipment for the entire business data update, thus enabling timely data updates without increasing costs and ensuring the normal operation of the online service system.

[0061] In some embodiments of this disclosure, such as Figure 2 As shown, when determining whether the first data is of the first type, as mentioned above, although the form of determining the first type of data differs depending on the application scenario, it can be implemented using, but is not limited to, the following methods, as follows: Figure 2 As shown, it includes:

[0062] Step 201: Obtain the number of target objects that need to be updated with the first data.

[0063] When updating data, it's necessary to determine which objects need to be updated. These objects may vary depending on the application scenario. For example, in e-commerce, if the information of a listed product changes, updating that product information first requires identifying which target objects exist for that product. To maintain consistency, all places where the product exists become target objects. All these target objects need their product information updated. The number of target objects determines whether the data to be updated is of the first type—that is, whether many people are forwarding, accessing, or selling the product. Therefore, when the main data update process receives the first data, it needs to obtain the number of target objects that need to be updated.

[0064] In some embodiments of this disclosure, when obtaining the number of target objects that need to be updated with the first data, the following methods can be used, but are not limited to: Figure 2As shown, the method includes:

[0065] Step 2011: Query the corresponding data information table based on the data information of the first data to obtain the number of target objects related to the first data.

[0066] It should be noted that, for data management and maintenance, a typical data management system stores uniform object data in a data information table for easy querying and use. In the embodiments of this disclosure, the first data also has a corresponding data information table. When obtaining the number of target objects that need to be updated in the first data, the number of target objects related to the first data can be obtained by querying the corresponding data information table based on the data information of the first data.

[0067] For example, when updating data for listed products, a product data information table is typically set up for each listed product. If the product is distributed, a supplier table is usually set up, which is the product data information table. This supplier table includes information about the distributors who distribute the product, and these distributors are the target objects for updating the product data. In this scenario, the corresponding product information is obtained based on the first data, and the supplier table is retrieved based on the product information. By querying the supplier table, the total number of distributors for the product can be found, and the number of distributors is the number of target objects for updating the first data.

[0068] Step 202: Determine whether the number of target objects exceeds a quantity threshold. If the number of target objects exceeds the quantity threshold, proceed to step 203; if the number of target objects does not exceed the quantity threshold, proceed to step 204.

[0069] It should be noted that this quantity threshold is a reference for determining whether data belongs to the first type. This quantity threshold can be preset or dynamically adjusted according to actual conditions during execution; specific embodiments of this disclosure do not impose limitations on this. The quantity threshold can be set based on the number of target objects corresponding to relevant data in the data update system. This relevant data can be the proportion of data or the number of data, etc.; specific embodiments of this disclosure do not impose limitations on this. For example, analyzing the proportion of data with a large number of target objects in the data update system, and the typical number of target objects, if the proportion of data with a large number of target objects is small, and the number of target objects is large, such as most being greater than 600,000, then 600,000 can be set as the quantity threshold. If the proportion of data with a large number of target objects is large, and the number of target objects ranges from 300,000 to 800,000, with a large proportion being 500,000, then the quantity threshold can be set to 500,000. Specific embodiments of this disclosure do not impose limitations on this.

[0070] Based on the scenario of listing products described above, this quantity threshold can be determined according to the proportion of distributors with a large number of products in the supplier table and the distribution of distributor data. A threshold can be set initially and adjusted later. Specifically, refer to the examples above; this embodiment of the invention does not impose any limitations on this.

[0071] Step 203: Determine that the first data is data of the first type.

[0072] Based on the above explanation, when the number of target objects exceeds a certain threshold, the first data can be determined to be data of the first type. For example, if the threshold for the number of product distributors is set to 500,000, and the number of product distributors requiring first data updates is determined to be 1 million, then this 1 million is greater than 500,000, and the first data is determined to be data of the first type.

[0073] Step 204: Determine that the first data is not of the first type.

[0074] Based on the above explanation, when the number of target objects does not exceed the quantity threshold, the first data can be determined to be non-first type data. For example, if the quantity threshold for product distributors is set to 500,000, and the number of product distributors requiring first data updates is determined to be 450,000, although this number of 450,000 distributors is still large, since 450,000 is less than the quantity threshold of 500,000, the first data is determined to be non-first type data.

[0075] In the embodiments of this disclosure, when determining whether the first data is data of the first type, the determination is based on the number of target objects that need to be updated, which improves the accuracy of determining whether the data is data of the first type and ensures the processing of data of the first type.

[0076] In some embodiments of this disclosure, when the first data is determined to be data of a first type, the first update message of the first data is separated from the main data update process, and the message middleware generates a second update message in response to the first update message to complete the update of the first data. When the message middleware generates a second update message in response to the first update message to complete the update of the first data, such as Figure 3 As shown, this can be achieved using, but is not limited to, the following methods, which include:

[0077] Step 301: Query the corresponding data information table based on the data information of the first data to obtain the identification information of each target object related to the first data.

[0078] As mentioned above, each piece of data is typically associated with a corresponding data information table for ease of management and maintenance. This data information table stores information about the target object corresponding to that data. Therefore, when it is necessary to obtain the target object corresponding to that data, the identification information of each target object related to the first data can be obtained by querying the corresponding data information table based on the data information of the first data.

[0079] In the embodiments of this disclosure, based on the above-described scenario of listed products, the information of the distributor corresponding to the product can be obtained by querying the corresponding product owner table according to the data information of the product, that is, the information of each target object.

[0080] Step 302: Generate a second update message based on the data information of the first data and the identification information of each target object. The second update message includes the identification information of the target object and the data information of the first data.

[0081] The message middleware, acting as a message producer, can generate a second update message based on the data information of the first data and the identification information of each target object. The specific generation of the second update message can be implemented using relevant message generation methods of the message middleware; however, the embodiments disclosed herein do not impose specific limitations on this method.

[0082] Step 303: Update the first data for the target object by publishing the second update message.

[0083] It's important to note that message middleware processes messages in two ways: point-to-point and publish-subscribe. In point-to-point mode, the consumer actively pulls message data and clears the message after receiving it. In publish-subscribe mode, the consumer handles messages one-to-many; the consumer does not clear the message after consuming it. Message producers publish messages to topics, and messages published to a topic are consumed by all subscribers, meaning multiple message consumers consume the message simultaneously.

[0084] In the embodiments of this disclosure, the message producer is a message middleware, and the message consumer is each target object. The second update message generated by the message middleware includes the target object's identification information and the first data information. After the second update message is published, i.e., broadcast, all target objects can receive the second update message, and each target object will update the first data according to the second update message.

[0085] In the embodiments of this disclosure, when each target object completes the update of the first data according to the second update message, whether the consumer actively pulls the second update message or the queue actively pushes the first data to be updated, the embodiments of this disclosure do not limit this.

[0086] In the embodiments of this disclosure, after separating the first update message of the first data from the main data update process, and generating a new second update message by the message middleware, the second update message is distributed and stored. Each target object completes its update of the first data by consuming the second update message. In processing the first type of data, by breaking down a single first update message into multiple asynchronously accessible second update messages for various target objects, the message processing capabilities of the message middleware are utilized, improving the consumption capacity of target objects, ensuring the consistency and real-time performance of the first type of data updates, and enhancing the user experience.

[0087] In some embodiments of this disclosure, as described above, the quantity threshold can be initially set to an initial value, and then dynamically adjusted during the data update process of the main data update flow. During this dynamic adjustment, methods such as, but not limited to, the following can be used: Figure 4 As shown, the method includes:

[0088] Step 401: Dynamically adjust the quantity threshold based on the message processing status of the main process updated by the data.

[0089] When dynamically adjusting the quantity threshold based on the message processing status of the main process updated by the data, the following methods can be used, but are not limited to:

[0090] The message processing status of the main data update process is obtained; when the number of messages to be processed is greater than the processing threshold, the number threshold is reduced by a predetermined ratio, which is positively correlated with the number of messages to be processed that are greater than the processing threshold.

[0091] In the embodiments of this disclosure, in order to separate the first type of data from the main data update process as much as possible, after the main data update process receives the data update message and uses the above-mentioned distinction between the first type of data and non-first type of data, it is necessary to observe the message processing status in the main process. If there is still a message backlog in the main data update process after using the above-mentioned partitioning processing of the first type of data and non-first type of data, it indicates that some first type of data is affecting the update of non-first type of data. In this case, it is necessary to further confirm the data update messages in the main data update process as update messages of the first type of data. In this case, it is necessary to adjust the data threshold for determining whether data is first type of data, so that more data is confirmed as first type of data. Then, the first type of data is separated from the main data process and updated separately. Specifically, if the message backlog is greater than the backlog threshold, the quantity threshold is reduced.

[0092] It should be noted that the quantity threshold is reduced by a predetermined proportion based on the message backlog. This predetermined proportion is positively correlated with the number of messages exceeding the processing threshold. The more messages exceeding the processing threshold, the larger the predetermined proportion of the reduction in the quantity threshold. For example, if the original quantity threshold was 500,000, and the number of messages exceeding the processing threshold is one-third of the total number of messages to be processed, then the quantity threshold is reduced by 100,000, adjusting the quantity threshold to 400,000; if the number of messages exceeding the processing threshold is half of the total number of messages to be processed, then the quantity threshold is reduced by 200,000, adjusting the quantity threshold to 300,000. This results in more data being identified as first-type data, and the corresponding update message is separated from the main process. The message middleware then generates the corresponding second update message to complete the update of the corresponding data.

[0093] Based on the above Figures 1 to 4 In the embodiment shown, the data update method further includes: if the first data is not of the first type, then updating the first data is performed in the main data update process.

[0094] In the embodiments of this disclosure, after determining the first update message of the first data received by the main data update process, if the first data is determined to be data of the first type, the first update message of the first type of data is separated from the main data update process, and the update of the first type of data is completed by the message middleware. In this way, the update of the first type of data does not occupy the resources of the main data update process and does not affect the update of other data in the main data update process, ensuring the real-time nature of updates for non-first type data. Furthermore, the message middleware responds to the first update message to form a new second update message, and completes the update of the first type of data based on the message middleware's message processing capabilities, ensuring the consistency and real-time nature of the first type of data update. In summary, the data update method provided by the embodiments of this disclosure updates the entire business data without increasing the cost of additional equipment, thus enabling timely data updates without increasing costs and ensuring the normal service of the online service system.

[0095] Based on the above Figures 1-4 A detailed description of the provided data update processing method, such as Figure 5 As shown, Figure 5 This is a block diagram illustrating a data update processing apparatus according to an exemplary embodiment. (Refer to...) Figure 1 The device includes a determining unit 501 and an execution unit 502.

[0096] The determining unit 501 is configured to determine whether the first data is data of a first type in response to the data update main process receiving a first update message of the first data;

[0097] The execution unit 502 is configured to, if the determining unit determines that the first data is data of the first type, separate the first update message from the main data update process, and have the message middleware generate a second update message in response to the first update message to complete the update of the first data.

[0098] In some embodiments of this disclosure, such as Figure 6 As shown, the determining unit 501 includes:

[0099] The first acquisition module 5011 is configured to acquire the number of target objects that need to be updated in the first data.

[0100] The judgment module 5012 is configured to determine whether the number of the target objects exceeds a quantity threshold.

[0101] The determination module 5013 is configured to determine the first data as first type of data when the determination module determines that the number of target objects exceeds a quantity threshold.

[0102] In some embodiments of this disclosure, the acquisition module 5011 acquires the number of target objects requiring the first data update, including:

[0103] Based on the data information of the first data, query the corresponding data information table to obtain the number of target objects related to the first data.

[0104] In some embodiments of this disclosure, such as Figure 7 As shown, the execution unit 502 includes:

[0105] The second acquisition module 5021 is configured to query the corresponding data information table based on the data information of the first data to obtain the identification information of each target object related to the first data;

[0106] The generation module 5022 is configured to generate a second update message based on the data information of the first data and the identification information of each target object, wherein the second update message includes the identification information of the target object and the data information of the first data.

[0107] The publishing and storage module 5023 is used to publish and store the second update message, and to complete the update of the first data by each target object through the consumption of the second update message.

[0108] In some embodiments of this disclosure, such as Figure 8 As shown, the data update device further includes:

[0109] Setting unit 503 is configured to pre-set the quantity threshold based on the quantity of target objects corresponding to relevant data in the data update system.

[0110] In some embodiments of this disclosure, such as Figure 9 As shown, the data update device further includes:

[0111] The adjustment unit 504 is configured to dynamically adjust the quantity threshold based on the message processing status of the main process updated by the data.

[0112] In some embodiments of this disclosure, such as Figure 10 As shown, the adjustment unit 504 includes:

[0113] The third acquisition module 5041 is configured to acquire the message processing status of the main data update process.

[0114] The adjustment module 5042 is configured to reduce the number threshold by a predetermined ratio when the number of messages to be processed is greater than the processing threshold, wherein the predetermined ratio is positively correlated with the number of messages to be processed that is greater than the processing threshold.

[0115] Regarding the apparatus in the above embodiments, the specific manner in which each module performs its operation has been described in detail in the embodiments related to the method, and will not be elaborated upon here.

[0116] In the embodiments of this disclosure, after the main data update process receives the first update message for the first data, if it is determined that the first data is of a first type, the first update message for the first type of data is separated from the main data update process, and the update of the first type of data is completed by the message middleware. In this way, the update of the first type of data does not occupy the resources of the main data update process and does not affect the update of other data in the main data update process, ensuring the real-time update of non-first type data. Furthermore, the message middleware responds to the first update message by forming a new second update message, and completes the update of the first type of data based on the message middleware's message processing capabilities, ensuring the consistency and real-time performance of the first type of data update. In summary, the data update method provided by the embodiments of this disclosure does not increase the cost of additional equipment for the entire business data update, thus enabling timely data updates without increasing costs and ensuring the normal service of the online service system.

[0117] Figure 11 This is a block diagram of an electronic device 800 disclosed herein. For example, the electronic device 800 may be a mobile phone, computer, digital broadcasting terminal, messaging device, game console, tablet device, medical device, fitness equipment, personal digital assistant, etc.

[0118] Reference Figure 11 The electronic device 800 may include one or more of the following components: a processing component 802, a memory 804, a power component 806, a multimedia component 808, an audio component 810, an input / output (I / O) interface 812, a sensor component 814, and a communication component 816.

[0119] Processing component 802 typically controls the overall operation of electronic device 800, such as operations associated with display, telephone calls, data communication, camera operation, and recording operations. Processing component 802 may include one or more processors 820 to execute instructions to perform all or part of the steps of the information platform selection method described in any embodiment. Furthermore, processing component 802 may include one or more modules to facilitate interaction between processing component 802 and other components. For example, processing component 802 may include a multimedia module to facilitate interaction between multimedia component 808 and processing component 802.

[0120] Memory 804 is configured to store various types of data to support the operation of electronic device 800. Examples of this data include instructions for any application or method operating on electronic device 800, contact data, phonebook data, messages, pictures, videos, etc. Memory 804 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic storage, flash memory, magnetic disk, or optical disk.

[0121] Power supply component 806 provides power to various components of electronic device 800. Power supply component 806 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to electronic device 800.

[0122] Multimedia component 808 includes a screen that provides an output interface between the electronic device 800 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touchscreen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensors may sense not only the boundaries of the touch or swipe action but also the duration and pressure associated with the touch or swipe operation. In some embodiments, multimedia component 808 includes a front-facing camera and / or a rear-facing camera. When the electronic device 800 is in an operating mode, such as a shooting mode or a video mode, the front-facing camera and / or the rear-facing camera may receive external multimedia data. Each front-facing camera and rear-facing camera may be a fixed optical lens system or have focal length and optical zoom capabilities.

[0123] Audio component 810 is configured to output and / or input audio signals. For example, audio component 810 includes a microphone (MIC) configured to receive external audio signals when electronic device 800 is in an operating mode, such as call mode, recording mode, and voice recognition mode. The received audio signals may be further stored in memory 804 or transmitted via communication component 816. In some embodiments, audio component 810 also includes a speaker for outputting audio signals.

[0124] I / O interface 812 provides an interface between processing component 802 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to, home buttons, volume buttons, power buttons, and lock buttons.

[0125] Sensor assembly 814 includes one or more sensors for providing state assessments of various aspects of electronic device 800. For example, sensor assembly 814 can detect the on / off state of electronic device 800, the relative positioning of components such as the display and keypad of electronic device 800, changes in position of electronic device 800 or a component of electronic device 800, the presence or absence of user contact with electronic device 800, orientation or acceleration / deceleration of electronic device 800, and temperature changes of electronic device 800. Sensor assembly 814 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. Sensor assembly 814 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, sensor assembly 814 may also include an accelerometer, gyroscope, magnetometer, pressure sensor, or temperature sensor.

[0126] Communication component 816 is configured to facilitate wired or wireless communication between electronic device 800 and other devices. Electronic device 800 can access wireless networks based on communication standards, such as WiFi, carrier networks (such as 2G, 3G, 4G, or 5G), or combinations thereof. In one exemplary embodiment, communication component 816 receives broadcast signals or broadcast-related information from an external broadcast management system via a broadcast channel. In one exemplary embodiment, communication component 816 also includes a near-field communication (NFC) module to facilitate short-range communication. For example, the NFC module may be implemented based on radio frequency identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.

[0127] In an exemplary embodiment, the electronic device 800 may be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field-programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components to perform the information platform selection method described in any embodiment.

[0128] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 804 including instructions, which can be executed by a processor 820 of an electronic device 800 to complete the information platform selection method described in any embodiment. For example, the non-transitory computer-readable storage medium may be a ROM, random access memory (RAM), CD-ROM, magnetic tape, floppy disk, and optical data storage device, etc.

[0129] In an exemplary embodiment, a computer program product is also provided, comprising readable program code executable by a processor 820 of an electronic device 800 to perform the information platform selection method described in any embodiment. Optionally, the program code may be stored in a storage medium of the electronic device 800, which may be a non-transitory computer-readable storage medium, such as a ROM, random access memory (RAM), CD-ROM, magnetic tape, floppy disk, and optical data storage device.

[0130] Figure 12 This is a block diagram of an electronic device 1900 disclosed herein. For example, the electronic device 1900 may be provided as a server.

[0131] Reference Figure 12The electronic device 1900 includes a processing component 1922, which further includes one or more processors, and memory resources represented by memory 1932 for storing instructions, such as application programs, that can be executed by the processing component 1922. The application programs stored in memory 1932 may include one or more modules, each corresponding to a set of instructions. Furthermore, the processing component 1922 is configured to execute instructions to perform the information platform selection method described in any embodiment.

[0132] Electronic device 1900 may also include a power supply component 1926 configured to perform power management of electronic device 1900, a wired or wireless network interface 1950 configured to connect electronic device 1900 to a network, and an input / output (I / O) interface 1958. Electronic device 1900 can operate on an operating system stored in memory 1932, such as Windows Server™, MacOS X™, Unix™, Linux™, FreeBSD™, or similar.

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

[0134] It should be understood that this disclosure is not limited to the precise structures described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from its scope. The scope of this disclosure is limited only by the appended claims.

Claims

1. A data update method, characterized in that, include: In response to the main data update process receiving the first update message for the first data, determine whether the first data is data of the first type; If the first data is of the first type, then the first update message is separated from the main data update process, and the message middleware responds to the first update message to generate a second update message to complete the update of the first data; The step of determining whether the first data is of the first type includes: Obtain the number of target objects that need to undergo the first data update; Determine whether the number of the target objects exceeds a quantity threshold; If the number of target objects exceeds the quantity threshold, then the first data is determined to be data of the first type; The step of generating a second update message in response to the first update message to complete the update of the first data includes: Based on the data information of the first data, query the corresponding data information table to obtain the identification information of each target object related to the first data; A second update message is generated based on the data information of the first data and the identification information of each target object. The second update message includes the identification information of the target object and the data information of the first data. The target object updates the first data by publishing the second update message.

2. The method according to claim 1, characterized in that, The number of target objects requiring the first data update includes: Based on the data information of the first data, query the corresponding data information table to obtain the number of target objects related to the first data.

3. The method according to any one of claims 1-2, characterized in that, The method further includes: The quantity threshold is preset based on the number of target objects corresponding to relevant data in the data update system.

4. The method according to claim 3, characterized in that, The method further includes: The quantity threshold is dynamically adjusted based on the message processing status of the main process updated by the data.

5. The method according to claim 4, characterized in that, The step of dynamically adjusting the quantity threshold based on the message processing status of the main process updated according to the data includes: Obtain the message processing status of the main data update process; When the number of messages to be processed exceeds the processing threshold, the number threshold is reduced by a predetermined ratio, which is positively correlated with the number of messages to be processed that exceeds the processing threshold.

6. A data update device, characterized in that, include: The determining unit is configured to determine whether the first data is data of a first type in response to the data update main process receiving a first update message for the first data; The execution unit is configured to, if the determining unit determines that the first data is data of the first type, separate the first update message from the main data update process, and have the message middleware generate a second update message in response to the first update message to complete the update of the first data; The determining unit is further configured as follows: Obtain the number of target objects that need to undergo the first data update; Determine whether the number of the target objects exceeds a quantity threshold; If the number of target objects exceeds the quantity threshold, then the first data is determined to be data of the first type; The execution unit is further configured as follows: Based on the data information of the first data, query the corresponding data information table to obtain the identification information of each target object related to the first data; A second update message is generated based on the data information of the first data and the identification information of each target object. The second update message includes the identification information of the target object and the data information of the first data. The target object updates the first data by publishing the second update message.

7. An electronic device, characterized in that, include: processor; Memory used to store the processor's executable instructions; The processor is configured to execute the instructions to implement the data update processing method as described in any one of claims 1 to 5.

8. A storage medium, wherein when instructions in the storage medium are executed by a processor of an electronic device, the electronic device is enabled to perform the data update processing method as described in any one of claims 1 to 5.

Citation Information

Patent Citations

  • Data synchronization method, equipment and system

    CN103873451A

  • Message broadcasting method and device, electronic equipment and storage medium

    CN112764951A