CN111045700B - Data updating method, device, system, storage medium and electronic equipment - Google Patents

Data updating method, device, system, storage medium and electronic equipment Download PDF

Info

Publication number
CN111045700B
CN111045700B CN201811194907.0A CN201811194907A CN111045700B CN 111045700 B CN111045700 B CN 111045700B CN 201811194907 A CN201811194907 A CN 201811194907A CN 111045700 B CN111045700 B CN 111045700B
Authority
CN
China
Prior art keywords
data
service process
channel data
process instance
signature
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201811194907.0A
Other languages
Chinese (zh)
Other versions
CN111045700A (en
Inventor
周大千
唐琳
吴蔚聪
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Alibaba Group Holding Ltd
Original Assignee
Alibaba Group Holding Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Alibaba Group Holding Ltd filed Critical Alibaba Group Holding Ltd
Priority to CN201811194907.0A priority Critical patent/CN111045700B/en
Publication of CN111045700A publication Critical patent/CN111045700A/en
Application granted granted Critical
Publication of CN111045700B publication Critical patent/CN111045700B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates

Abstract

The embodiment of the application provides a data updating method, a device, a system, a storage medium and electronic equipment. The data updating method comprises the following steps: acquiring at least one channel data configured for version data of a service process, wherein the service process corresponds to a plurality of service process instances; determining a service process instance of the at least one channel data to be updated from the plurality of service process instances; and sending a data updating instruction to a data distribution agent corresponding to the service process instance, so that the data distribution agent updates at least one channel data of the service process instance according to the data updating instruction and independently of version data of the service process instance. By the embodiment of the application, the channel data can be updated immediately.

Description

Data updating method, device, system, storage medium and electronic equipment
Technical Field
The embodiment of the application relates to the technical field of data processing, in particular to a data updating method, a device, a system, a storage medium and electronic equipment.
Background
Many service processes on the dispatch platform have a huge demand for data, requiring frequent updates of the data. When the service process updates data, a new data version is generated, the corresponding data configuration is modified, and the scheduler is triggered to upgrade the data version of the service process to the new data version. Specifically, after triggering the scheduler, the scheduler starts scheduling and distributes new version data. When the distribution of the new version data is completed, the scheduler triggers the service process to load the new version data, thereby completing the upgrading of the data version of the service process.
However, the above-described data update strategy has some drawbacks in practical applications. Each of some of the service processes on the dispatch platform requires updating multiple items of data, and each item of data is of different sizes. Because version data is uniformly loaded after the whole is distributed, when the data needing urgent update is faced, if the service process has other data update at present, the update flow of the data needing urgent update is blocked, and long waiting time is needed, so that the data needing urgent update cannot be updated immediately.
Disclosure of Invention
An embodiment of the application aims to provide a data updating method, a device, a system, a storage medium and electronic equipment, so as to solve the problem that data updating of a service process is not instant in the prior art.
According to a first aspect of embodiments of the present application, there is provided a data updating method, the method including: acquiring at least one channel data configured for version data of a service process, wherein the service process corresponds to a plurality of service process instances; determining a service process instance of the at least one channel data to be updated from the plurality of service process instances; and sending a data updating instruction to a data distribution agent corresponding to the service process instance, so that the data distribution agent updates at least one channel data of the service process instance according to the data updating instruction and independently of version data of the service process instance.
According to a second aspect of embodiments of the present application, there is provided a data updating method, the method including: receiving a data updating instruction which is sent by a scheduler and used for updating at least one channel data of a service process instance; based on the data update instruction, at least one channel data of the service process instance is updated independently of version data of the service process instance.
According to a third aspect of embodiments of the present application, there is provided a data updating apparatus, the apparatus comprising: the system comprises an acquisition module, a service process generation module and a service process generation module, wherein the acquisition module is used for acquiring at least one channel data configured for version data of the service process, and the service process corresponds to a plurality of service process instances; a first determining module, configured to determine a service process instance to be updated for the at least one channel data from the plurality of service process instances; and the first sending module is used for sending a data updating instruction to the data distribution agent corresponding to the service process instance, so that the data distribution agent updates at least one channel data of the service process instance independently of the version data of the service process instance according to the data updating instruction.
According to a fourth aspect of embodiments of the present application, there is provided a data updating apparatus, the apparatus comprising: the second receiving module is used for receiving a data updating instruction which is sent by the scheduler and used for updating at least one channel data of the service process instance; and the first updating module is used for updating at least one channel data of the service process instance independently of the version data of the service process instance based on the data updating instruction.
According to a fifth aspect of embodiments of the present application, there is provided a data update system, the system comprising: the scheduler is used for acquiring at least one channel data configured for version data of a service process, and the service process is provided with a plurality of service process instances correspondingly; determining a service process instance of the at least one channel data to be updated from the plurality of service process instances; transmitting a data updating instruction for updating at least one channel data of the service process instance to a data distribution agent corresponding to the service process instance, wherein the data distribution agent is used for receiving the data updating instruction transmitted by the scheduler; based on the data update instruction, at least one channel data of the service process instance is updated independently of version data of the service process instance.
According to a sixth aspect of embodiments of the present application, there is provided a storage medium having stored thereon computer executable instructions which, when processed by a processor, perform the steps of: acquiring at least one channel data configured for version data of a service process, wherein the service process corresponds to a plurality of service process instances; determining a service process instance of the at least one channel data to be updated from the plurality of service process instances; and sending a data updating instruction to a data distribution agent corresponding to the service process instance, so that the data distribution agent updates at least one channel data of the service process instance according to the data updating instruction and independently of version data of the service process instance.
According to a seventh aspect of embodiments of the present application, there is provided a storage medium having stored thereon computer executable instructions which, when processed by a processor, perform the steps of: receiving a data updating instruction which is sent by a scheduler and used for updating at least one channel data of a service process instance; based on the data update instruction, at least one channel data of the service process instance is updated independently of version data of the service process instance.
According to an eighth aspect of embodiments of the present application, there is provided an electronic device, the device comprising: one or more processors; a memory for storing one or more programs; the one or more programs, when executed by the one or more processors, cause the one or more processors to implement the data updating method as described in the first aspect or the second aspect of the embodiments of the present application.
According to the technical scheme for data updating, at least one channel data configured for version data of a service process is obtained; determining a service process instance of at least one channel data to be updated from a plurality of service process instances; and sending a data updating instruction to the data distribution agent corresponding to the service process instance, so that the data distribution agent updates at least one channel data of the service process instance according to the data updating instruction and independent of the version data of the service process instance.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the following description will briefly introduce the drawings that are required to be used in the embodiments or the description of the prior art, and it is obvious that the drawings in the following description are only some embodiments described in the embodiments of the present application, and other drawings may also be obtained according to these drawings for a person having ordinary skill in the art.
FIG. 1 is a flow chart of steps of a data update method according to a first embodiment of the present application;
FIG. 2 is a flow chart of steps of a data update method according to a second embodiment of the present application;
FIG. 3 is a flow chart of steps of a data update method according to a third embodiment of the present application;
FIG. 4 is a flow chart of steps of a data update method according to a fourth embodiment of the present application;
FIG. 5 is a block diagram of a data update system according to a fifth embodiment of the present application;
fig. 6 is a block diagram of a data updating apparatus according to a sixth embodiment of the present application;
fig. 7 is a block diagram of a data updating apparatus according to a seventh embodiment of the present application;
fig. 8 is a block diagram of a data updating apparatus according to an eighth embodiment of the present application;
Fig. 9 is a block diagram of a data updating apparatus according to a ninth embodiment of the present application;
fig. 10 is a schematic structural view of an electronic device according to a tenth embodiment of the present application.
Detailed Description
In order to better understand the technical solutions in the embodiments of the present application, the following descriptions will clearly and completely describe the technical solutions in the embodiments of the present application with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only some embodiments of the present application, but not all embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments in the embodiments of the present application shall fall within the scope of protection of the embodiments of the present application.
Example 1
Referring to fig. 1, a flowchart of steps of a data updating method according to a first embodiment of the present application is shown.
The data updating method of the present embodiment includes the steps of:
in step S101, at least one channel data configured for version data of a service process is acquired.
In this embodiment of the present application, the service process may be a chat process, an information flow pushing process, or the like, where the service process corresponds to a plurality of service process instances. Wherein a corresponding service process present on a machine may be referred to as a service process instance. For example, a chat process that exists on one server may be referred to as one chat process instance, and a chat process that exists on multiple servers may be referred to as multiple chat process instances. The version data may be data for upgrading a data version of the service process, that is, data remaining after light-weight data or data sensitive to an effective delay is separated from original version data of the service process. The channel data may be lightweight data separated from the original version data or data sensitive to validation delays, such as blacklists, sensitive word lists, etc. in the information stream. It will be appreciated that the above description is exemplary only, and that the embodiments of the present application are not limited in any way.
In a specific example, a user configures data (such as lightweight data or data sensitive to effective delay) which needs to be updated immediately in the original version data of the service process into channel data through a page, so that the data which needs to be updated immediately is separated from the original version data. Wherein the number of channel data may be at least one, and the data content of each channel data is different. It will be appreciated that the above description is exemplary only, and that the embodiments of the present application are not limited in any way.
In step S102, a service process instance for which the at least one channel data is to be updated is determined from the plurality of service process instances.
In some alternative embodiments, when determining a service process instance of the at least one channel data to be updated from the plurality of service process instances, for each channel data in the at least one channel data, ordering the plurality of service process instances based on a service objective, a current state, and a current state change time of the plurality of service process instances, determining at least one service process instance of the channel data to be updated. It is to be understood that any implementation of determining a service process instance from the plurality of service process instances to update the at least one channel data may be applied herein, and the embodiments of the present application are not limited in this respect.
In one specific example, the service objective of the service process instance is provided to the scheduler by a third party, including both serviceable and non-serviceable scenarios. When sequencing a plurality of service process instances, service target factors of the service process instances are introduced, so that the service process instances ready to be offline can be prevented from being determined. The current state of the service process instance is obtained by the scheduler through interaction with the service process instance, the current state of the service process instance including at least one of: unloaded state, loaded state, unpublished state, published state. The state that the service process instance starts and does not complete data loading is called an unloaded state, the state that the service process instance completes data loading is called a loaded state, the state that the service process instance starts to prepare to issue and provide services to the outside through the data interface is called an unpublished state, and the state that the service process instance completes issuing and provide services to the outside through the data interface is called a issued state. When the service process instance is in the published state, the service provided by the service process instance is indicated to be available. In addition, the stability of the service process instances in the unloaded state, the loaded state, the unpublished state, and the published state, respectively, are sequentially incremented. When a plurality of service process instances are ordered, the current state factors of the service process instances are introduced, so that the unstable range of the service process instances in the channel data updating process can be controlled. The current state change time of the service process instance is obtained by the scheduler through interaction with the service process instance. When a plurality of service process instances are ordered, the current state change time factor of the service process instance is introduced, so that the service process instance with the front progress in the same state can be determined as much as possible. It will be appreciated that the above description is exemplary only, and that the embodiments of the present application are not limited in any way.
In some alternative embodiments, the priorities of the service objective factor, the current state factor, and the current state change time factor of the service process instance are sequentially decremented as the plurality of service process instances are ordered. Further, for service targeting factors of service process instances, the serviceable priority is higher than the unserviceable priority. The priorities of the unloaded state, the loaded state, the unpublished state, and the published state are sequentially decremented for the current state factor of the service process instance. For the current state change time factor of the service process instance, the priority of the previous change to the current state is higher than the priority of the subsequent change to the current state. Thereby, serviceable and unstable service process instances can be ranked ahead. It will be appreciated that any implementation of ordering the plurality of service process instances may be applied herein, and the embodiments of the present application are not limited in this regard.
In a specific example, each of the plurality of service process instances may be scored according to the following formula to obtain a score for each of the plurality of service process instances: score of service process instance = target weight coefficient x weight a + current state weight coefficient x weight B + state change weight coefficient. The weight a=weight b×10, the weight b=the highest bit unit of the number of service process instances×10, the magnitudes of the target weight coefficient, the current state weight coefficient and the state change weight coefficient are sequentially decreased, the target weight coefficient of the service process instance that can be serviced is greater than the target weight coefficient of the service process instance that is not serviced, the current state weight coefficient of the service process instance that is in the unloaded state, the loaded state, the unpublished state and the issued state is sequentially decreased, and the state change weight coefficient of the service process instance that is changed into the current state in advance is greater than the state change weight coefficient of the service process instance that is changed into the current state in the later. Then, the plurality of service process instances are ordered according to the score of each service process instance in the plurality of service process instances, and at least one service process instance of the channel data to be updated is determined. Specifically, for each channel data in the at least one channel data, the service process instance with the top three scores may be determined as the service process instance of the channel data to be updated. It will be appreciated that the above description is exemplary only, and that the embodiments of the present application are not limited in any way.
In some alternative embodiments, if the service process instances of at least two channel data to be updated respectively are the same or partially the same, it is determined that the service process instances of the at least two channel data to be updated are the same service process instance. Therefore, the method can avoid the diffusion of the influence range when the channel data is abnormal to cause the service provided by the service process instance, and ensure the integral stability of the service process instance when the channel data of the service process instance is updated. It will be appreciated that the above description is exemplary only, and that the embodiments of the present application are not limited in any way.
In a specific example, if the service process instance of the first channel data to be updated includes a service process instance on a first machine, a service process instance on a second machine, and a service process instance on a third machine, and the service process instance of the second channel data to be updated includes a service process instance on a second machine, a service process instance on a third machine, and a service process instance on a fourth machine, then it is determined that the service process instance of the first channel data and the second channel data to be updated is a service process instance on a second machine or a service process instance on a third machine. If the service process instance of the first channel data to be updated comprises a service process instance on a first machine, a service process instance on a second machine and a service process instance on a third machine, and the service process instance of the second channel data to be updated comprises a service process instance on the first machine, a service process instance on the second machine and a service process instance on the third machine, determining that the service process instance of the first channel data and the second channel data to be updated is the service process instance on the first machine or the service process instance on the second machine or the service process instance on the third machine. It will be appreciated that the above description is exemplary only, and that the embodiments of the present application are not limited in any way.
In step S103, a data update instruction is sent to a data distribution agent corresponding to the service process instance, so that the data distribution agent updates at least one channel data of the service process instance according to the data update instruction, independently of version data of the service process instance.
In the present embodiment, a data distribution agent may be understood as an agent that a scheduler schedules for service process instances on each machine, and is used to agent execution of data instructions issued by the scheduler. It will be appreciated that the above description is exemplary only, and that the embodiments of the present application are not limited in any way.
According to the data updating method provided by the embodiment of the application, at least one channel data configured for the version data of the service process is obtained; determining a service process instance of at least one channel data to be updated from a plurality of service process instances; and sending a data updating instruction to the data distribution agent corresponding to the service process instance, so that the data distribution agent updates at least one channel data of the service process instance according to the data updating instruction and independent of the version data of the service process instance.
The data update method of the present embodiment may be performed by any suitable device having data processing capabilities, including, but not limited to: cameras, terminals, mobile terminals, PCs, servers, vehicle-mounted devices, entertainment devices, advertising devices, personal Digital Assistants (PDAs), tablet computers, notebook computers, palm-top gaming devices, smart glasses, smart watches, wearable devices, virtual display devices or display enhancement devices (e.g., google Glass, oculus lift, hollens, gear VR), and the like.
Example two
Referring to fig. 2, a step flow diagram of a data updating method according to a second embodiment of the present application is shown.
The data updating method of the present embodiment includes the steps of:
in step S201, at least one channel data configured for version data of a service process is acquired.
Since this step S201 is similar to the step S101 described above, the description thereof will not be repeated here.
In step S202, a service process instance for which the at least one channel data is to be updated is determined from the plurality of service process instances.
In some alternative embodiments, the update proportion of the plurality of service process instances, the number of update rounds of the service process instance, and the number of updates of the service process instance per round are preconfigured before determining the service process instance for which the at least one channel data is to be updated. And then, determining the service process instance of the at least one channel data to be updated from the plurality of service process instances based on the preconfigured update proportion of the plurality of service process instances, the update round number of the service process instances and the update number of the service process instances in each round. It will be appreciated that the above description is exemplary only, and that the embodiments of the present application are not limited in any way.
In a specific example, assuming that 100 machines are associated with the scheduling platform, and each machine has a corresponding service process, that is, on the scheduling platform, the service process corresponds to 100 service process instances, and the pre-configured update proportion of the service process instances, the number of update rounds of the service process instances, and the number of update rounds of the service process instances in each round are respectively 10%, 5 rounds, and 2, then the 100 service process instances are divided into 5 rounds for updating, the number of update rounds of the service process instances in each round is 2, and thus the update proportion of the 100 service process instances is exactly 10%. In each round of updating, for each channel data in the at least one channel data, 2 service process instances of the channel data to be updated are determined from the 100 service process instances. The specific implementation of 2 service process instances for determining the channel data to be updated from 100 service process instances is similar to the above embodiment, and will not be described herein again. Further, if the number of channel data configured for the version data of the service process is 2, and it is determined that the service process instance of the first channel data to be updated includes a service process instance on machine No. 1 and a service process instance on machine No. 2, and the service process instance of the second channel data to be updated includes a service process instance on machine No. 2 and a service process instance on machine No. 3, it may be determined that the service process instance of the first channel data and the second channel data to be updated is a service process instance on machine No. 2. Therefore, the method can avoid the diffusion of the influence range when the channel data is abnormal to cause the service abnormality provided by the service process instance, and ensure the integral stability of the service process instance when the channel data of the service process instance is updated. This process may be referred to as scheduling of grayscale updates by the scheduler to the channel data. It will be appreciated that the above description is exemplary only, and that the embodiments of the present application are not limited in any way.
In step S203, a data update instruction is sent to a data distribution agent corresponding to the service process instance, so that the data distribution agent updates at least one channel data of the service process instance independently of version data of the service process instance according to the data update instruction.
In a specific example, after each round of updating determines that a service process instance of each channel data to be updated is obtained, the scheduler sends a data update instruction to a data distribution agent corresponding to the corresponding service process instance, so that the data distribution agent updates the corresponding channel data of the corresponding service process instance independently of version data of the corresponding service process instance according to the data update instruction. It will be appreciated that the above description is exemplary only, and that the embodiments of the present application are not limited in any way.
In step S204, a distribution state and a loading state of at least one channel data of the service process instance transmitted by the data distribution agent every a preset time period are received.
In this embodiment of the present application, the preset time period may be set by a person skilled in the art according to actual needs, which is not limited in any way. In addition, after receiving the data updating instruction sent by the scheduler, the data distribution agent distributes channel data according to the data updating instruction, and when the distribution of the channel data is completed, triggers a loading instruction to the corresponding service process instance, so that the corresponding service process instance loads the corresponding channel data. At the same time, the data distribution agent sends the dispatcher the distribution status and the loading status of the corresponding channel data of the corresponding service process instance every preset time period. The distribution state of the channel data comprises the progress of channel data distribution, for example, channel data is not distributed and channel data distribution is completed, and the loading state of the channel data comprises loading failure or loading success. It will be appreciated that the above description is exemplary only, and that the embodiments of the present application are not limited in any way.
In a specific example, after each round of updating sends a data updating instruction to the data distribution agent corresponding to the corresponding service process instance, the scheduler receives a distribution state and a loading state of corresponding channel data of the corresponding service process instance sent by the data distribution agent every interval preset time period, and in the next round of updating, determines the service process instance of the corresponding channel data to be updated by using the distribution state and the loading state of the corresponding channel data of the corresponding service process instance. Thereby, the scheduler can accurately schedule the service process instance for updating in each round of updating. For example, if in the previous round of updating, the loading state of the first channel data of the service process instance on the first machine is successful in loading, in the present round of updating, the service process instance of the first channel data to be updated is determined from the service process instances of the service process instance on the first machine. For another example, if in the previous round of updating, the loading state of the first channel data of the service process instance on the first machine is loading failure, and the distribution state of the first channel data of the service process instance on the first machine is distribution completion, then in the present round of updating, for the first channel data, the service process instance of the first channel data to be updated is determined from all the service process instances, and when the update instruction sent by the scheduler is received, the data distribution agent corresponding to the service process instance on the first machine directly triggers the loading instruction to the service process instance on the first machine according to the data update instruction, so that the service process instance on the first machine loads the first channel data, and the process that the data distribution agent issues the first channel data again is omitted. It will be appreciated that the above description is exemplary only, and that the embodiments of the present application are not limited in any way.
In some alternative embodiments, upon detecting a restart of the service process instance or the data distribution agent, the data update instruction is sent to the data distribution agent to cause the data distribution agent to update at least one channel data of the service process instance independent of version data of the service process instance according to the data update instruction. Therefore, when the service process instance is restarted or the data distribution agent is restarted due to an abnormal process, the data version of the service process instance can be timely recovered. It will be appreciated that the above description is exemplary only, and that the embodiments of the present application are not limited in any way.
In one specific example, there is data interaction between the scheduler and the service process instance, and there is also data interaction between the scheduler and the data distribution agent. Upon detecting a restart of the service process instance or the data distribution agent, the scheduler sends a data update instruction to the data distribution agent to cause the data distribution agent to update at least one channel data of the service process instance independent of version data of the service process instance in accordance with the data update instruction. It will be appreciated that the above description is exemplary only, and that the embodiments of the present application are not limited in any way.
On the basis of the first embodiment, the scheduler receives the distribution state and the loading state of at least one channel data of the service process instance sent by the data distribution agent every preset time interval in each round of updating, and compared with other existing modes, the scheduler can accurately schedule the service process instance to update in each round of updating.
The data update method of the present embodiment may be performed by any suitable device having data processing capabilities, including, but not limited to: cameras, terminals, mobile terminals, PCs, servers, vehicle-mounted devices, entertainment devices, advertising devices, personal Digital Assistants (PDAs), tablet computers, notebook computers, palm-top gaming devices, smart glasses, smart watches, wearable devices, virtual display devices or display enhancement devices (e.g., google Glass, oculus lift, hollens, gear VR), and the like.
Example III
Referring to fig. 3, a step flow diagram of a data updating method according to a third embodiment of the present application is shown.
The data updating method of the present embodiment includes the steps of:
in step S301, a data update instruction sent by the scheduler for updating at least one channel data of the service process instance is received.
In this embodiment of the present application, a data distribution agent corresponding to a service process instance receives a data update instruction sent by a scheduler and used for updating at least one channel data of the service process instance. The data update instruction includes at least one of: service process instance signature, channel data signature, download address of channel data, data name of channel data. The service process instance signature is obtained by determining the dispatcher based on the service process identification information and the starting time of the service process instance. The channel data signature is determined by the scheduler based on the download address of the channel data. It will be appreciated that the above description is exemplary only, and that the embodiments of the present application are not limited in any way.
In step S302, at least one channel data of the service process instance is updated independently of version data of the service process instance based on the data update instruction.
In some alternative embodiments, when updating at least one channel data of the service process instance independently of version data of the service process instance, for each channel data of the at least one channel data, if it is determined that a data signature of the channel data in the data update instruction is different from a data signature of locally stored channel data and it is determined that a download address of the channel data in the data update instruction is different from a download address of the locally stored channel data, distributing the channel data based on the download address of the channel data in the data update instruction, and when distribution of the channel data is completed, triggering a load instruction to the service process instance to load the corresponding channel data by the service process instance. It is to be understood that any implementation of updating the at least one channel data of the service process instance independently of the version data of the service process instance is applicable herein, and the embodiments of the present application are not limited in this regard.
In some alternative embodiments, for each of the at least one channel data, if it is determined that the data signature of the channel data in the data update instruction is not the same as the data signature of the locally stored channel data, the data signature of the locally stored channel data is updated to the data signature of the channel data in the data update instruction. Thereby, whether the data signature of the channel data is changed can be accurately detected. And updating the download address of the locally stored channel data to the download address of the channel data in the data updating instruction if the download address of the channel data in the data updating instruction is determined to be different from the download address of the locally stored channel data for each channel data in the at least one channel data. Thereby, whether the download address of the channel data is changed can be accurately detected. It will be appreciated that the above description is exemplary only, and that the embodiments of the present application are not limited in any way.
In a specific example, the data signature includes a service process instance signature and a channel data signature. When determining that the service process instance signature in the data updating instruction is different from the locally stored service process instance signature, determining, for each channel data in the at least one channel data, whether the channel data signature in the data updating instruction is the same as the locally stored channel data signature; and if the channel data signature in the data updating instruction is the same as the channel data signature stored locally, triggering a loading instruction to the service process instance so as to load the corresponding channel data by the service process instance. And if the channel data signature in the data updating instruction is different from the channel data signature stored locally, distributing the channel data based on the download address of the channel data in the data updating instruction, and triggering a loading instruction to the service process instance when the distribution of the channel data is completed, so that the service process instance loads the corresponding channel data. It will be appreciated that the above description is exemplary only, and that the embodiments of the present application are not limited in any way.
In a specific example, the service process instance signature is determined by the scheduler based on service process identification information and a start time of the service process instance. Thus, the service process instance signature is updated each time the service process instance is started or restarted. Further, the service process instance signature in the data update instruction sent by the scheduler to the data distribution agent corresponding to the service process instance is changed. Thus, when the channel data signature in the data updating instruction is unchanged, the data distributing agent corresponding to the service process instance triggers a loading instruction to the service process instance so that the service process instance loads the channel data. When the channel data signature in the data updating instruction changes, the data distribution agent corresponding to the service process instance distributes the channel data based on the downloading address of the channel data in the data updating instruction, and when the distribution of the channel data is completed, a loading instruction is triggered to the service process instance, so that the service process instance loads the corresponding channel data. The channel data signature is determined by the scheduler based on the download address of the channel data. If the channel data signature changes, it is indicated that the channel data in the service process instance needs to be updated. Thereby, it can be ensured that the channel data of the service process instance is always in the latest version. It will be appreciated that the above description is exemplary only, and that the embodiments of the present application are not limited in any way.
In some alternative embodiments, after triggering a load instruction to the service process instance, the data distribution agent corresponding to the service process instance receives a load result of the service process instance for the corresponding channel data. Wherein, the loading result comprises loading success or loading failure. Thus, the loading result of the channel data of the service process instance can be accurately determined. It will be appreciated that the above description is exemplary only, and that the embodiments of the present application are not limited in any way.
By the data updating method provided by the embodiment of the application, a data updating instruction which is sent by a scheduler and used for updating at least one channel data of a service process instance is received; based on the data updating instruction, at least one channel data of the service process instance is updated independently of the version data of the service process instance, and compared with other existing modes, the channel data of the service process instance is updated independently of the version data of the service process instance, so that the instant updating of the channel data can be realized.
The data update method of the present embodiment may be performed by any suitable device having data processing capabilities, including, but not limited to: cameras, terminals, mobile terminals, PCs, servers, vehicle-mounted devices, entertainment devices, advertising devices, personal Digital Assistants (PDAs), tablet computers, notebook computers, palm-top gaming devices, smart glasses, smart watches, wearable devices, virtual display devices or display enhancement devices (e.g., google Glass, oculus lift, hollens, gear VR), and the like.
Example IV
Referring to fig. 4, a step flow diagram of a data updating method according to a fourth embodiment of the present application is shown.
The data updating method of the present embodiment includes the steps of:
in step S401, a data update instruction for updating at least one channel data of a service process instance transmitted by a scheduler is received.
Since this step S401 is similar to the step S301 described above, the description thereof will not be repeated here.
In step S402, for each channel data in the at least one channel data, if it is determined that the data signature of the channel data in the data update instruction is different from the data signature of the locally stored channel data, and it is determined that the download address of the channel data in the data update instruction is the same as the download address of the locally stored channel data, a load instruction is triggered to the service process instance, so that the service process instance loads the corresponding channel data.
In a specific example, the data signature includes a service process instance signature and a channel data signature. When the service process instance signature in the data updating instruction is determined to be the same as the locally stored service process instance signature, determining, for each channel data in the at least one channel data, whether the channel data signature in the data updating instruction is the same as the locally stored channel data signature; and if the channel data signature in the data updating instruction is different from the channel data signature stored locally, distributing the channel data based on the download address of the channel data in the data updating instruction, and triggering a loading instruction to the service process instance when the distribution of the channel data is completed, so that the service process instance loads the corresponding channel data. If it is determined that the channel data signature in the data update instruction is the same as the locally stored channel data signature, no operation is performed. It will be appreciated that the above description is exemplary only, and that the embodiments of the present application are not limited in any way.
In a specific example, when the data distribution agent is restarted due to an abnormal process, the scheduler sends a data update instruction to the data distribution agent corresponding to the service process instance. Wherein the service process instance signature in the data update instruction is unchanged. If the channel data signature in the data updating instruction is determined to be changed, distributing the channel data based on the downloading address of the channel data in the data updating instruction, and triggering a loading instruction to the service process instance when the distribution of the channel data is completed, so that the service process instance loads the corresponding channel data, and updating the corresponding channel data of the service process instance is completed. If it is determined that the channel data signature in the data update instruction has not changed, no operation is performed. Therefore, when the channel data of the service process instance is not updated, the repeated loading of the channel data of the service process instance can be avoided. It will be appreciated that the above description is exemplary only, and that the embodiments of the present application are not limited in any way.
In a specific example, when the data version of the service process instance needs to be upgraded, the channel data signature in the data update instruction sent by the scheduler to the data distribution agent corresponding to the service process instance is changed, and the service process instance signature is unchanged. The data distribution agent corresponding to the service process instance distributes corresponding channel data based on the downloading address of the channel data in the data updating instruction, and triggers a loading instruction to the service process instance when the distribution of the corresponding channel data is completed, so that the service process instance loads the corresponding channel data, and the updating of the corresponding channel data of the service process instance is completed. It will be appreciated that the above description is exemplary only, and that the embodiments of the present application are not limited in any way.
In some alternative embodiments, in the process of updating the channel data of the service process instance, the data distribution agent corresponding to the service process instance sends the distribution state and the loading state of at least one channel data of the service process instance to the scheduler at preset time intervals. The preset time period may be set by a person skilled in the art according to actual needs, which is not limited in the embodiment of the present application. Therefore, the scheduling of the gray level update of the channel data by the scheduler can be facilitated. It will be appreciated that the above description is exemplary only, and that the embodiments of the present application are not limited in any way.
In some alternative embodiments, in the process of updating the channel data of the service process instance, the data distribution agent corresponding to the service process instance stores the distribution state and the loading state of at least one channel data of the service process instance every preset time period. The preset time period may be set by a person skilled in the art according to actual needs, which is not limited in the embodiment of the present application. Therefore, the data distribution agent corresponding to the service process instance can maintain the state of the channel data of the service process instance in real time, and when the data distribution agent is restarted, the current state of the channel data of the corresponding service process instance can be timely recovered. It will be appreciated that the above description is exemplary only, and that the embodiments of the present application are not limited in any way.
By the data updating method provided by the embodiment of the application, a data updating instruction which is sent by a scheduler and used for updating at least one channel data of a service process instance is received; for each channel data in at least one channel data, if the data signature of the channel data in the data updating instruction is different from the data signature of the locally stored channel data and the download address of the channel data in the data updating instruction is the same as the download address of the locally stored channel data, triggering a loading instruction to the service process instance to enable the service process instance to load the corresponding channel data, and compared with other existing modes, updating the channel data of the service process instance independently of the version data of the service process instance, so that the channel data can be updated immediately.
The data update method of the present embodiment may be performed by any suitable device having data processing capabilities, including, but not limited to: cameras, terminals, mobile terminals, PCs, servers, vehicle-mounted devices, entertainment devices, advertising devices, personal Digital Assistants (PDAs), tablet computers, notebook computers, palm-top gaming devices, smart glasses, smart watches, wearable devices, virtual display devices or display enhancement devices (e.g., google Glass, oculus lift, hollens, gear VR), and the like.
Example five
Referring to fig. 5, a block diagram of a data updating system according to a fifth embodiment of the present application is shown.
The data updating system provided in this embodiment includes: the scheduler is used for acquiring at least one channel data configured for version data of a service process, and the service process is provided with a plurality of service process instances correspondingly; determining a service process instance of the at least one channel data to be updated from the plurality of service process instances; transmitting a data updating instruction for updating at least one channel data of the service process instance to a data distribution agent corresponding to the service process instance, wherein the data distribution agent is used for receiving the data updating instruction transmitted by the scheduler; based on the data update instruction, at least one channel data of the service process instance is updated independently of version data of the service process instance.
In a specific embodiment, the corresponding service process on each server is called a service process instance, a data distribution agent corresponds to the service process instance on each server, and the scheduler performs data interaction with the data distribution agent corresponding to the service process instance on the plurality of servers. In addition, the dispatcher also performs data interaction with service process instances on a plurality of servers. It will be appreciated that the above description is exemplary only, and that the embodiments of the present application are not limited in any way.
The data updating system of the present embodiment is configured to implement the corresponding data updating method in the foregoing multiple method embodiments, and has the beneficial effects of the corresponding method embodiments, which are not described herein.
Example six
Referring to fig. 6, there is shown a block diagram of a data updating apparatus according to a sixth embodiment of the present application.
The data updating apparatus of the present embodiment includes: an obtaining module 501, configured to obtain at least one channel data configured for version data of a service process, where the service process corresponds to a plurality of service process instances; a first determining module 502, configured to determine a service process instance to be updated for the at least one channel data from the plurality of service process instances; a first sending module 503, configured to send a data update instruction to a data distribution agent corresponding to the service process instance, so that the data distribution agent updates at least one channel data of the service process instance according to the data update instruction, independent of version data of the service process instance.
The data updating device of the present embodiment is configured to implement the corresponding data updating method in the foregoing multiple method embodiments, and has the beneficial effects of the corresponding method embodiments, which are not described herein.
Example seven
Referring to fig. 7, a block diagram of a data updating apparatus according to a seventh embodiment of the present application is shown.
The data updating apparatus of the present embodiment includes: an obtaining module 601, configured to obtain at least one channel data configured for version data of a service process, where the service process corresponds to a plurality of service process instances; a first determining module 602, configured to determine a service process instance to be updated for the at least one channel data from the plurality of service process instances; and the first sending module 603 is configured to send a data update instruction to a data distribution agent corresponding to the service process instance, so that the data distribution agent updates at least one channel data of the service process instance according to the data update instruction, independent of version data of the service process instance.
Optionally, the first determining module 602 includes: the sorting module 6021 is configured to sort the plurality of service process instances based on the service targets, the current states, and the current state change times of the plurality of service process instances for each channel data in the at least one channel data, and determine at least one service process instance of the channel data to be updated.
Optionally, the first determining module 602 further includes: the second determining module 6022 is configured to determine that the service process instances of the at least two channel data to be updated are the same service process instance if the service process instances of the at least two channel data to be updated are the same or partially the same, respectively.
Optionally, the current state includes at least one of: unloaded state, loaded state, unpublished state, published state.
Optionally, the apparatus further comprises: a first receiving module 604, configured to receive a distribution state and a loading state of at least one channel data of the service process instance sent by the data distribution agent every a preset time period.
Optionally, the apparatus further comprises: and the second sending module 605 is configured to send the data update instruction to the data distribution agent when the service process instance or the data distribution agent is detected to restart, so that the data distribution agent updates at least one channel data of the service process instance independently of version data of the service process instance according to the data update instruction.
The data updating device of the present embodiment is configured to implement the corresponding data updating method in the foregoing multiple method embodiments, and has the beneficial effects of the corresponding method embodiments, which are not described herein.
Another embodiment of the present application also provides a storage medium having stored thereon computer executable instructions that when processed by a processor perform the steps of: acquiring at least one channel data configured for version data of a service process, wherein the service process corresponds to a plurality of service process instances; determining a service process instance of the at least one channel data to be updated from the plurality of service process instances; and sending a data updating instruction to a data distribution agent corresponding to the service process instance, so that the data distribution agent updates at least one channel data of the service process instance according to the data updating instruction and independently of version data of the service process instance.
Another embodiment of the present application further provides an electronic device, including: one or more processors; a memory for storing one or more programs; the one or more programs, when executed by the one or more processors, cause the one or more processors to implement the data update method as described above.
Example eight
Referring to fig. 8, a block diagram of a data updating apparatus according to an eighth embodiment of the present application is shown.
The data updating apparatus of the present embodiment includes: a second receiving module 701, configured to receive a data update instruction sent by the scheduler and used for updating at least one channel data of the service process instance; a first updating module 702, configured to update at least one channel data of the service process instance independently of version data of the service process instance based on the data update instruction.
The data updating device of the present embodiment is configured to implement the corresponding data updating method in the foregoing multiple method embodiments, and has the beneficial effects of the corresponding method embodiments, which are not described herein.
Example nine
Referring to fig. 9, there is shown a block diagram of a data updating apparatus according to a ninth embodiment of the present application.
The data updating apparatus of the present embodiment includes: a second receiving module 801, configured to receive a data update instruction sent by the scheduler and used for updating at least one channel data of the service process instance; a first updating module 802, configured to update at least one channel data of the service process instance independently of version data of the service process instance based on the data update instruction.
Optionally, the first updating module 802 is specifically configured to: and for each channel data in the at least one channel data, if the data signature of the channel data in the data updating instruction is different from the data signature of the locally stored channel data and the download address of the channel data in the data updating instruction is different from the download address of the locally stored channel data, distributing the channel data based on the download address of the channel data in the data updating instruction, and triggering a loading instruction to the service process instance when the distribution of the channel data is completed, so that the service process instance loads the corresponding channel data.
Optionally, the first updating module 802 is specifically configured to: for each channel data in the at least one channel data, if it is determined that the data signature of the channel data in the data update instruction is different from the data signature of the locally stored channel data, and it is determined that the download address of the channel data in the data update instruction is the same as the download address of the locally stored channel data, a load instruction is triggered to the service process instance to load the corresponding channel data by the service process instance.
Optionally, the apparatus further comprises: a second updating module 803, configured to update, for each channel data in the at least one channel data, the data signature of the locally stored channel data to the data signature of the channel data in the data updating instruction if it is determined that the data signature of the channel data in the data updating instruction is not identical to the data signature of the locally stored channel data.
Optionally, the apparatus further comprises: a third updating module 804, configured to update, for each channel data in the at least one channel data, the download address of the locally stored channel data to the download address of the channel data in the data updating instruction if it is determined that the download address of the channel data in the data updating instruction is different from the download address of the locally stored channel data.
Optionally, the data signature includes a service process instance signature and a channel data signature.
Optionally, the first updating module 802 is specifically configured to: when determining that the service process instance signature in the data updating instruction is different from the locally stored service process instance signature, determining, for each channel data in the at least one channel data, whether the channel data signature in the data updating instruction is the same as the locally stored channel data signature; and if the channel data signature in the data updating instruction is the same as the channel data signature stored locally, triggering a loading instruction to the service process instance so as to load the corresponding channel data by the service process instance.
Optionally, the first updating module 802 is further configured to: and if the channel data signature in the data updating instruction is different from the channel data signature stored locally, distributing the channel data based on the download address of the channel data in the data updating instruction, and triggering a loading instruction to the service process instance when the distribution of the channel data is completed, so that the service process instance loads the corresponding channel data.
Optionally, the first updating module 802 is specifically configured to: when the service process instance signature in the data updating instruction is determined to be the same as the locally stored service process instance signature, determining, for each channel data in the at least one channel data, whether the channel data signature in the data updating instruction is the same as the locally stored channel data signature; and if the channel data signature in the data updating instruction is different from the channel data signature stored locally, distributing the channel data based on the download address of the channel data in the data updating instruction, and triggering a loading instruction to the service process instance when the distribution of the channel data is completed, so that the service process instance loads the corresponding channel data.
Optionally, the apparatus further comprises: and the third receiving module 805 is configured to receive a loading result of the service process instance for the corresponding channel data after triggering the loading instruction to the service process instance.
Optionally, the service process instance signature is determined based on the service process identification information and a start time of the service process instance.
Optionally, the channel data signature is determined based on a download address of the channel data.
Optionally, the apparatus further comprises: a third sending module 806, configured to send, to the scheduler, a distribution state and a loading state of at least one channel data of the service process instance every a preset time period.
Optionally, the apparatus further comprises: a storage module 807, configured to store a distribution state and a loading state of at least one channel data of the service process instance every preset time period.
Optionally, the data update instruction includes at least one of: service process instance signature, channel data signature, download address of channel data, data name of channel data.
The data updating device of the present embodiment is configured to implement the corresponding data updating method in the foregoing multiple method embodiments, and has the beneficial effects of the corresponding method embodiments, which are not described herein.
Another embodiment of the present application also provides a storage medium having stored thereon computer executable instructions that when processed by a processor perform the steps of: receiving a data updating instruction which is sent by a scheduler and used for updating at least one channel data of a service process instance; based on the data update instruction, at least one channel data of the service process instance is updated independently of version data of the service process instance.
Another embodiment of the present application further provides an electronic device, including: one or more processors; a memory for storing one or more programs; the one or more programs, when executed by the one or more processors, cause the one or more processors to implement the data update method as described above.
Examples ten
Fig. 10 is a schematic structural view of an electronic device according to a tenth embodiment of the present application. As shown in fig. 10, the apparatus includes: one or more processors 81, and a memory 82, one processor 81 being illustrated in fig. 10. The apparatus for performing the above method may further include: an input device 83 and an output device 84. The processor 81, the memory 82, the input device 83 and the output device 84 may be connected by a bus or otherwise, for example in fig. 10.
The memory 82 is used as a non-volatile computer readable storage medium for storing non-volatile software programs, non-volatile computer executable programs and modules, such as program instructions/modules corresponding to the methods described above in the embodiments of the present application. The processor 81 executes various functional applications of the server and data processing, i.e. implements the above-described methods of the above-described method embodiments, by running non-volatile software programs, instructions and modules stored in the memory 82.
The memory 82 may include a storage program area that may store an operating system, at least one application program required for functions, and a storage data area; the storage data area may store data created at the time of data update, etc. In addition, the memory 82 may include high-speed random access memory 82, and may also include non-volatile memory 82, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid-state storage device. In some embodiments, the memory 82 optionally includes memory 82 remotely located relative to the processor 81, such remote memory 82 being connectable to the client through a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The input device 83 may receive input numeric or character information and generate key signal inputs related to user settings of the client and function control. The input device 83 may include a push module or the like.
The one or more modules are stored in the memory 82 that, when executed by the one or more processors 81, perform the methods described above in any of the method embodiments described above.
The product can execute the method provided by the embodiment of the application, and has the corresponding functional modules and beneficial effects of the execution method. Technical details not described in detail in this embodiment may be found in the methods provided in the embodiments of the present application.
The electronic device of the embodiments of the present application exist in a variety of forms including, but not limited to:
(1) A mobile communication device: such devices are characterized by mobile communication capabilities and are primarily aimed at providing voice, data communications. Such terminals include: smart phones (e.g., iPhone), multimedia phones, functional phones, and low-end phones, etc.
(2) Ultra mobile personal computer device: such devices are in the category of personal computers, having computing and processing functions, and generally also having mobile internet access characteristics. Such terminals include: PDA, MID, and UMPC devices, etc., such as iPad.
(3) Portable entertainment device: such devices may display and play multimedia content. The device comprises: audio, video players (e.g., iPod), palm game consoles, electronic books, and smart toys and portable car navigation devices.
(4) And (3) a server: the configuration of the server including the processor 71, the hard disk, the memory, the system bus, and the like is similar to that of a general-purpose computer architecture, but since highly reliable services need to be provided, there is a high demand in terms of processing capability, stability, reliability, security, scalability, manageability, and the like.
(5) Other electronic devices with data interaction function.
The apparatus embodiments described above are merely illustrative, wherein the modules illustrated as separate components may or may not be physically separate, and the components shown as modules may or may not be physical, i.e., may be located in one place, or may be distributed over a plurality of network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment. Those of ordinary skill in the art will understand and implement the present invention without undue burden.
From the above description of the embodiments, it will be apparent to those skilled in the art that the embodiments may be implemented by means of software plus necessary general hardware platforms, or of course may be implemented by means of hardware. Based on such understanding, the foregoing technical solutions may be embodied essentially or in part in the form of a software product that may be stored in a computer-readable storage medium including any mechanism for storing or transmitting information in a form readable by a computer (e.g., a computer). For example, a machine-readable medium includes read-only memory (ROM), random-access memory (RAM), magnetic disk storage media, optical storage media, flash-memory media, electrical, optical, acoustical or other form of propagated signals (e.g., carrier waves, infrared signals, digital signals, etc.), and the computer software product includes instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to perform the various embodiments or portions of the methods described herein.
It will be apparent to those skilled in the art that embodiments of the present application may be provided as a method, apparatus (device), or computer program product. Accordingly, the present embodiments may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, embodiments of the present application may take the form of a computer program product on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.
Embodiments of the present application are described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (devices) and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
Finally, it should be noted that: the above embodiments are only for illustrating the technical solutions of the embodiments of the present application, and are not limited thereto; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the corresponding technical solutions.

Claims (46)

1. A method of data updating, the method comprising:
acquiring at least one channel data configured for version data of a service process, wherein the service process corresponds to a plurality of service process instances;
determining a service process instance of the at least one channel data to be updated from the plurality of service process instances;
and sending a data updating instruction to a data distribution agent corresponding to the service process instance, so that the data distribution agent updates at least one channel data of the service process instance with version data independent of the service process instance according to the data updating instruction, and when the service process instance is restarted or the data distribution agent is restarted due to an abnormal process, recovering the data version of the service process instance.
2. The method of claim 1, wherein the determining a service process instance from a plurality of service process instances to update the at least one channel data comprises:
and sequencing the plurality of service process instances based on the service targets, the current states and the current state change time of the plurality of service process instances for each channel data in the at least one channel data, and determining at least one service process instance of the channel data to be updated.
3. The method according to claim 2, wherein the method further comprises:
and if the service process instances of the at least two channel data to be updated are the same or partially the same, determining that the service process instances of the at least two channel data to be updated are the same service process instances.
4. The method of claim 2, wherein the current state comprises at least one of: unloaded state, loaded state, unpublished state, published state.
5. The method according to claim 1, wherein the method further comprises:
and receiving the distribution state and the loading state of at least one channel data of the service process instance sent by the data distribution agent every interval preset time period.
6. The method according to claim 1, wherein the method further comprises:
and when the service process instance or the data distribution agent is detected to be restarted, sending the data updating instruction to the data distribution agent, so that the data distribution agent updates at least one channel data of the service process instance according to the data updating instruction and independently from the version data of the service process instance.
7. A method of data updating, the method comprising:
receiving a data updating instruction which is sent by a scheduler and used for updating at least one channel data of a service process instance;
and updating at least one channel data of the service process instance with version data independent of the service process instance based on the data updating instruction, so as to restore the data version of the service process instance when the service process instance is restarted or the data distribution agent is restarted due to an abnormal process.
8. The method of claim 7, wherein updating at least one channel data of the service process instance based on the data update instruction independent of version data of the service process instance comprises:
and for each channel data in the at least one channel data, if the data signature of the channel data in the data updating instruction is different from the data signature of the locally stored channel data and the download address of the channel data in the data updating instruction is different from the download address of the locally stored channel data, distributing the channel data based on the download address of the channel data in the data updating instruction, and triggering a loading instruction to the service process instance when the distribution of the channel data is completed, so that the service process instance loads the corresponding channel data.
9. The method of claim 7, wherein updating at least one channel data of the service process instance based on the data update instruction independent of version data of the service process instance comprises:
for each channel data in the at least one channel data, if it is determined that the data signature of the channel data in the data update instruction is different from the data signature of the locally stored channel data, and it is determined that the download address of the channel data in the data update instruction is the same as the download address of the locally stored channel data, a load instruction is triggered to the service process instance to load the corresponding channel data by the service process instance.
10. The method of claim 8, wherein the method further comprises:
and updating the data signature of the locally stored channel data to the data signature of the channel data in the data updating instruction if the data signature of the channel data in the data updating instruction is different from the data signature of the locally stored channel data for each channel data in the at least one channel data.
11. The method of claim 8, wherein the method further comprises:
and updating the download address of the locally stored channel data to the download address of the channel data in the data updating instruction if the download address of the channel data in the data updating instruction is determined to be different from the download address of the locally stored channel data for each channel data in the at least one channel data.
12. The method of claim 8, wherein the data signature comprises a service process instance signature and a channel data signature.
13. The method of claim 12, wherein the updating at least one channel data of the service process instance based on the data update instruction independent of version data of the service process instance, further comprises:
when determining that the service process instance signature in the data updating instruction is different from the locally stored service process instance signature, determining, for each channel data in the at least one channel data, whether the channel data signature in the data updating instruction is the same as the locally stored channel data signature;
And if the channel data signature in the data updating instruction is the same as the channel data signature stored locally, triggering a loading instruction to the service process instance so as to load the corresponding channel data by the service process instance.
14. The method of claim 13, wherein the method further comprises:
and if the channel data signature in the data updating instruction is different from the channel data signature stored locally, distributing the channel data based on the download address of the channel data in the data updating instruction, and triggering a loading instruction to the service process instance when the distribution of the channel data is completed, so that the service process instance loads the corresponding channel data.
15. The method of claim 12, wherein the updating at least one channel data of the service process instance based on the data update instruction independent of version data of the service process instance, further comprises:
when the service process instance signature in the data updating instruction is determined to be the same as the locally stored service process instance signature, determining, for each channel data in the at least one channel data, whether the channel data signature in the data updating instruction is the same as the locally stored channel data signature;
And if the channel data signature in the data updating instruction is different from the channel data signature stored locally, distributing the channel data based on the download address of the channel data in the data updating instruction, and triggering a loading instruction to the service process instance when the distribution of the channel data is completed, so that the service process instance loads the corresponding channel data.
16. The method according to any one of claims 13-15, further comprising:
and after triggering a loading instruction to the service process instance, receiving a loading result of the service process instance aiming at corresponding channel data.
17. The method according to any of claims 12-15, wherein the service process instance signature is determined based on service process identification information and a start time of a service process instance.
18. The method according to any of claims 12-15, wherein the channel data signature is determined based on a download address of the channel data.
19. The method according to any one of claims 7-15, further comprising:
And sending the distribution state and the loading state of at least one channel data of the service process instance to the scheduler every preset time period.
20. The method according to any one of claims 7-15, further comprising:
and storing the distribution state and the loading state of at least one channel data of the service process instance every interval preset time period.
21. The method of any of claims 7-15, wherein the data update instruction comprises at least one of:
service process instance signature, channel data signature, download address of channel data, data name of channel data.
22. A data updating apparatus, the apparatus comprising:
the system comprises an acquisition module, a service process generation module and a service process generation module, wherein the acquisition module is used for acquiring at least one channel data configured for version data of the service process, and the service process corresponds to a plurality of service process instances;
a first determining module, configured to determine a service process instance to be updated for the at least one channel data from the plurality of service process instances;
and the first sending module is used for sending a data updating instruction to the data distribution agent corresponding to the service process instance, so that the data distribution agent updates at least one channel data of the service process instance with version data independent of the service process instance according to the data updating instruction, and the data version of the service process instance is restored when the service process instance is restarted or the data distribution agent is restarted due to an abnormal process.
23. The apparatus of claim 22, wherein the first determining module comprises:
the ordering module is used for ordering the plurality of service process instances based on the service targets, the current states and the current state change time of the plurality of service process instances according to each channel data in the at least one channel data, and determining at least one service process instance of the channel data to be updated.
24. The apparatus of claim 23, wherein the first determining module further comprises:
and the second determining module is used for determining that the service process instances of the at least two channel data to be updated are the same service process instances if the service process instances of the at least two channel data to be updated are the same or partially the same respectively.
25. The apparatus of claim 23, wherein the current state comprises at least one of: unloaded state, loaded state, unpublished state, published state.
26. The apparatus of claim 22, wherein the apparatus further comprises:
the first receiving module is used for receiving the distribution state and the loading state of at least one channel data of the service process instance, which are sent by the data distribution agent every interval preset time period.
27. The apparatus of claim 22, wherein the apparatus further comprises:
and the second sending module is used for sending the data updating instruction to the data distribution agent when the service process instance or the data distribution agent is detected to restart, so that the data distribution agent updates at least one channel data of the service process instance according to the data updating instruction and independently from the version data of the service process instance.
28. A data updating apparatus, the apparatus comprising:
the second receiving module is used for receiving a data updating instruction which is sent by the scheduler and used for updating at least one channel data of the service process instance;
and the first updating module is used for updating at least one channel data of the service process instance with version data independent of the service process instance based on the data updating instruction so as to restore the data version of the service process instance when the service process instance is restarted or the data distribution agent is restarted due to an abnormal process.
29. The apparatus of claim 28, wherein the first updating module is specifically configured to:
and for each channel data in the at least one channel data, if the data signature of the channel data in the data updating instruction is different from the data signature of the locally stored channel data and the download address of the channel data in the data updating instruction is different from the download address of the locally stored channel data, distributing the channel data based on the download address of the channel data in the data updating instruction, and triggering a loading instruction to the service process instance when the distribution of the channel data is completed, so that the service process instance loads the corresponding channel data.
30. The apparatus of claim 28, wherein the first updating module is specifically configured to:
for each channel data in the at least one channel data, if it is determined that the data signature of the channel data in the data update instruction is different from the data signature of the locally stored channel data, and it is determined that the download address of the channel data in the data update instruction is the same as the download address of the locally stored channel data, a load instruction is triggered to the service process instance to load the corresponding channel data by the service process instance.
31. The apparatus of claim 29, wherein the apparatus further comprises:
and a second updating module, configured to update, for each channel data in the at least one channel data, the data signature of the locally stored channel data to the data signature of the channel data in the data updating instruction if it is determined that the data signature of the channel data in the data updating instruction is different from the data signature of the locally stored channel data.
32. The apparatus of claim 29, wherein the apparatus further comprises:
And a third updating module, configured to update, for each channel data in the at least one channel data, the download address of the locally stored channel data to the download address of the channel data in the data updating instruction if it is determined that the download address of the channel data in the data updating instruction is different from the download address of the locally stored channel data.
33. The apparatus of claim 29, wherein the data signature comprises a service process instance signature and a channel data signature.
34. The apparatus of claim 33, wherein the first updating module is specifically configured to:
when determining that the service process instance signature in the data updating instruction is different from the locally stored service process instance signature, determining, for each channel data in the at least one channel data, whether the channel data signature in the data updating instruction is the same as the locally stored channel data signature;
and if the channel data signature in the data updating instruction is the same as the channel data signature stored locally, triggering a loading instruction to the service process instance so as to load the corresponding channel data by the service process instance.
35. The apparatus of claim 34, wherein the first update module is further configured to:
and if the channel data signature in the data updating instruction is different from the channel data signature stored locally, distributing the channel data based on the download address of the channel data in the data updating instruction, and triggering a loading instruction to the service process instance when the distribution of the channel data is completed, so that the service process instance loads the corresponding channel data.
36. The apparatus of claim 33, wherein the first updating module is specifically configured to:
when the service process instance signature in the data updating instruction is determined to be the same as the locally stored service process instance signature, determining, for each channel data in the at least one channel data, whether the channel data signature in the data updating instruction is the same as the locally stored channel data signature;
and if the channel data signature in the data updating instruction is different from the channel data signature stored locally, distributing the channel data based on the download address of the channel data in the data updating instruction, and triggering a loading instruction to the service process instance when the distribution of the channel data is completed, so that the service process instance loads the corresponding channel data.
37. The apparatus according to any one of claims 34-36, further comprising:
and the third receiving module is used for receiving the loading result of the service process instance aiming at the corresponding channel data after triggering the loading instruction to the service process instance.
38. The apparatus according to any of claims 33-36, wherein the service process instance signature is determined based on service process identification information and a start time of a service process instance.
39. The apparatus according to any of claims 33-36, wherein the channel data signature is determined based on a download address of the channel data.
40. The apparatus according to any one of claims 28-36, further comprising:
and the third sending module is used for sending the distribution state and the loading state of at least one channel data of the service process instance to the scheduler every preset time period.
41. The apparatus according to any one of claims 28-36, further comprising:
And the storage module is used for storing the distribution state and the loading state of the at least one channel data of the service process instance every interval preset time period.
42. The apparatus of any of claims 28-36, wherein the data update instruction comprises at least one of:
service process instance signature, channel data signature, download address of channel data, data name of channel data.
43. A data update system, the system comprising:
the scheduler is used for acquiring at least one channel data configured for version data of a service process, and the service process is provided with a plurality of service process instances correspondingly; determining a service process instance of the at least one channel data to be updated from the plurality of service process instances; a data update instruction for updating at least one channel data of the service process instance is sent to the data distribution agent corresponding to the service process instance,
the data distribution agent is used for receiving the data updating instruction sent by the scheduler; and updating at least one channel data of the service process instance with version data independent of the service process instance based on the data updating instruction, so as to restore the data version of the service process instance when the service process instance is restarted or the data distribution agent is restarted due to an abnormal process.
44. A storage medium having stored thereon computer executable instructions which, when processed by a processor, perform the steps of:
acquiring at least one channel data configured for version data of a service process, wherein the service process corresponds to a plurality of service process instances;
determining a service process instance of the at least one channel data to be updated from the plurality of service process instances;
and sending a data updating instruction to a data distribution agent corresponding to the service process instance, so that the data distribution agent updates at least one channel data of the service process instance with version data independent of the service process instance according to the data updating instruction, and when the service process instance is restarted or the data distribution agent is restarted due to an abnormal process, recovering the data version of the service process instance.
45. A storage medium having stored thereon computer executable instructions which, when processed by a processor, perform the steps of:
receiving a data updating instruction which is sent by a scheduler and used for updating at least one channel data of a service process instance;
And updating at least one channel data of the service process instance with version data independent of the service process instance based on the data updating instruction, so as to restore the data version of the service process instance when the service process instance is restarted or the data distribution agent is restarted due to an abnormal process.
46. An electronic device, comprising:
one or more processors;
a memory for storing one or more programs;
the one or more programs, when executed by the one or more processors, cause the one or more processors to implement the data updating method of any of claims 1-21.
CN201811194907.0A 2018-10-15 2018-10-15 Data updating method, device, system, storage medium and electronic equipment Active CN111045700B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811194907.0A CN111045700B (en) 2018-10-15 2018-10-15 Data updating method, device, system, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811194907.0A CN111045700B (en) 2018-10-15 2018-10-15 Data updating method, device, system, storage medium and electronic equipment

Publications (2)

Publication Number Publication Date
CN111045700A CN111045700A (en) 2020-04-21
CN111045700B true CN111045700B (en) 2023-05-05

Family

ID=70230298

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811194907.0A Active CN111045700B (en) 2018-10-15 2018-10-15 Data updating method, device, system, storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN111045700B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112187548A (en) * 2020-10-09 2021-01-05 深圳壹账通智能科技有限公司 Method, device and equipment for synchronously updating configuration data and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103593247A (en) * 2013-11-18 2014-02-19 腾讯科技(成都)有限公司 Method and device for data transmission
CN104216771A (en) * 2013-05-30 2014-12-17 华为技术有限公司 Restarting method and device for software program
WO2017152807A1 (en) * 2016-03-10 2017-09-14 阿里巴巴集团控股有限公司 Communication channel processing method and system
CN108182122A (en) * 2018-01-22 2018-06-19 广东欧珀移动通信有限公司 Using update notifying method, apparatus, storage medium and server

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7222339B2 (en) * 2003-06-13 2007-05-22 Intel Corporation Method for distributed update of firmware across a clustered platform infrastructure
US8561071B2 (en) * 2005-07-11 2013-10-15 International Business Machines Corporation Process instance serialization
US20160041819A1 (en) * 2014-08-06 2016-02-11 Microsoft Corporation Updating service applications
US10868883B2 (en) * 2016-06-29 2020-12-15 Nicira, Inc. Upgrading a proxy that decouples network connections from an application during application's downtime

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104216771A (en) * 2013-05-30 2014-12-17 华为技术有限公司 Restarting method and device for software program
CN103593247A (en) * 2013-11-18 2014-02-19 腾讯科技(成都)有限公司 Method and device for data transmission
WO2017152807A1 (en) * 2016-03-10 2017-09-14 阿里巴巴集团控股有限公司 Communication channel processing method and system
CN108182122A (en) * 2018-01-22 2018-06-19 广东欧珀移动通信有限公司 Using update notifying method, apparatus, storage medium and server

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
"并行计算机系统中的计数算法研究";王俊昌等;《南京邮电大学学报(自然科学版)》;第37卷(第6期);第81-89页 *

Also Published As

Publication number Publication date
CN111045700A (en) 2020-04-21

Similar Documents

Publication Publication Date Title
US20170034309A1 (en) Software upgrade method and terminal
CN108829506A (en) Batch tasks processing method, device and service system
CN101968741A (en) Method, server and system for data update
JP2023052938A (en) Program update system, program update server, information processing apparatus, vehicle, method, and program
CN106572146A (en) Message sending method and message sending device
CN113055451A (en) Resource downloading method and device, electronic equipment and storage medium
CN114465998A (en) Multi-device file transmission method and device, terminal device and readable storage medium
CN112118115A (en) Method, computer readable medium and computer device for automatically generating chat room
CN111045700B (en) Data updating method, device, system, storage medium and electronic equipment
CN108553904B (en) Game matching method and device, electronic equipment and medium
CN112084044B (en) Event processing method in system and related device
CN110770720B (en) Resource searching method and related products
CN113672284A (en) Instruction execution method, system, electronic equipment and storage medium
CN113138812A (en) Spacecraft task scheduling method and device
US9219673B2 (en) Crisscross cancellation protocol
CN116570928A (en) Information processing method, device and server based on NFT
US20210099503A1 (en) Method, system, and non-transitory computer readable record medium for processing chatroom based on usage
CN112667255B (en) Updating method, updating device, electronic equipment and storage medium
EP2720151B1 (en) Communication terminal and content update method
CN115048140A (en) Version control method and device, electronic equipment and storage medium
CN114139731A (en) Longitudinal federated learning modeling optimization method, apparatus, medium, and program product
CN114723367A (en) Distribution method, system and device
CN113050978B (en) Gray release control method, device and equipment for application and computer storage medium
CN108829824B (en) Resource processing method and device in internet operation activity
CN112579032B (en) Intelligent device guiding method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant