CN111045700A - 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
CN111045700A
CN111045700A CN201811194907.0A CN201811194907A CN111045700A CN 111045700 A CN111045700 A CN 111045700A CN 201811194907 A CN201811194907 A CN 201811194907A CN 111045700 A CN111045700 A CN 111045700A
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.)
Granted
Application number
CN201811194907.0A
Other languages
Chinese (zh)
Other versions
CN111045700B (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

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)
  • Stored Programmes (AREA)

Abstract

The embodiment of the application provides a data updating method, a data updating device, a data updating 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 is provided with a plurality of service process instances correspondingly; determining a service process instance to be updated with the at least one channel data 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 independently of the version data of the service process instance according to the data updating instruction. 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 data updating device, a data updating system, a storage medium and electronic equipment.
Background
Many service processes on the scheduling platform have huge demands on data, and frequent data updating is required. The general data updating strategy is that when the service process updates data, a new data version is generated and the corresponding data configuration is modified, and then 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. And when the distribution of the new version data is finished, the scheduler triggers the service process to load the new version data, so that the upgrading of the data version of the service process is finished.
However, the above data update strategy has some disadvantages in practical applications. Each service process in some service processes on the scheduling platform needs to update multiple items of data, and the size of each item of data is different. Because the version data is uniformly loaded after the distribution is integrally completed, when the data needing to be updated urgently is confronted, if the service process has other data to be updated currently, the updating flow of the data needing to be updated urgently is blocked, and a long time needs to be waited, so that the data needing to be updated urgently cannot be updated immediately.
Disclosure of Invention
An object of the embodiments of the present application is to provide a data updating method, apparatus, system, storage medium, and electronic device, so as to solve the problem in the prior art that data updating in a service process is not immediate.
According to a first aspect of embodiments of the present application, there is provided a data updating method, including: acquiring at least one channel data configured for version data of a service process, wherein the service process is provided with a plurality of service process instances correspondingly; determining a service process instance to be updated with the at least one channel data 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 independently of the version data of the service process instance according to the data updating instruction.
According to a second aspect of embodiments of the present application, there is provided a data updating 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; 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 update instruction.
According to a third aspect of embodiments of the present application, there is provided a data update apparatus, the apparatus including: the system comprises an acquisition module, a processing module and a processing module, wherein the acquisition module 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; a first determining module, configured to determine, from the multiple service process instances, a service process instance to be updated with the at least one channel data; a first sending module, 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, independently of the version data of the service process instance.
According to a fourth aspect of embodiments of the present application, there is provided a data update apparatus, the apparatus including: 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; a first updating module, configured to update, based on the data update instruction, at least one channel data of the service process instance independently of the version data of the service process instance.
According to a fifth aspect of embodiments of the present application, there is provided a data update system, the system including: the scheduler is used for acquiring at least one channel data configured for the 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 to be updated with the at least one channel data from the plurality of service process instances; sending 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 sent by the scheduler; 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 update instruction.
According to a sixth aspect of embodiments herein, there is provided 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 is provided with a plurality of service process instances correspondingly; determining a service process instance to be updated with the at least one channel data 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 independently of the version data of the service process instance according to the data updating instruction.
According to a seventh aspect of embodiments of the present application, there is provided 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; 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 update instruction.
According to an eighth aspect of embodiments of the present application, there is provided an electronic apparatus, the apparatus including: one or more processors; a memory for storing one or more programs; when the one or more programs are executed by the one or more processors, the one or more processors implement the data updating method according to the first aspect or the second aspect of the embodiments of the present application.
According to the technical scheme for updating the data, 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 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 the version data of the service process instance according to the data updating instruction.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly described below, 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 can be obtained by those skilled in the art according to the drawings.
FIG. 1 is a flow chart illustrating the steps of a data updating method according to a first embodiment of the present application;
FIG. 2 is a flow chart illustrating the steps of a data updating method according to the second embodiment of the present application;
FIG. 3 is a flow chart of the steps of a data updating method according to the third embodiment of the present application;
FIG. 4 is a flow chart of the steps of a data updating method according to the 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 update apparatus according to a ninth embodiment of the present application;
fig. 10 is a schematic structural diagram of an electronic device according to a tenth embodiment of the present application.
Detailed Description
In order to make those skilled in the art better understand the technical solutions in the embodiments of the present application, the technical solutions in the embodiments of the present application will be described clearly and completely below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the 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 present application shall fall within the scope of the protection of the embodiments in the present application.
Example one
Referring to fig. 1, a flowchart illustrating steps of a data updating method according to a first embodiment of the present application is shown.
The data updating method of the embodiment comprises the following steps:
in step S101, at least one channel data configured for the version data of the service process is acquired.
In the embodiment of the application, the service process may be a chat process, an information stream pushing process, or the like, and the service process corresponds to a plurality of service process instances. Wherein, a corresponding service process existing on a machine can 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 chat processes that exist on multiple servers may be referred to as multiple chat process instances. The version data may be data used for upgrading a data version of the service process, that is, data remaining after separating lightweight data or data sensitive to a production delay 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 latency, such as a blacklist, a list of sensitive words, etc. in the information stream. It should be understood that the above description is only exemplary, and the embodiments of the present application are not limited in this respect.
In a specific example, a user configures data (such as lightweight data or data sensitive to an effect delay) in an original version data of a service process, which needs to be updated immediately, as channel data through a page, so that the data needing to be updated immediately is separated from the original version data. Wherein, the number of the channel data can be at least one, and the data content of each channel data is different. It should be understood that the above description is only exemplary, and the embodiments of the present application are not limited in this respect.
In step S102, a service process instance to be updated with the at least one channel data is determined from the plurality of service process instances.
In some optional embodiments, when determining a service process instance to be updated with the at least one channel data from the plurality of service process instances, for each channel data in the at least one channel data, the plurality of service process instances are sorted based on the service targets, the current states, and the current state change times of the plurality of service process instances, and the at least one service process instance to be updated with the channel data is determined. It may be understood that any implementation manner of determining, from the plurality of service process instances, a service process instance to be updated with the at least one channel data may be applied to this, and this is not limited in this embodiment of the present application.
In one particular example, the service objectives of a service process instance are provided to the scheduler by a third party, including both serviceable and non-serviceable situations. When a plurality of service process instances are sequenced, the service target factors of the service process instances are introduced, so that the service process instances which are ready to be offline can be avoided being determined. The current state of the service process instance is obtained by the scheduler through interaction with the service process instance, and the current state of the service process instance comprises at least one of the following: unloaded state, loaded state, unpublished state, published state. The state that the service process instance starts and does not finish data loading is called an unloaded state, the state that the service process instance finishes data loading is called a loaded state, the state that the service process instance starts to prepare to issue and provide the service to the outside through the data interface is called an unpublished state, and the state that the service process instance finishes issuing and providing the service to the outside through the data interface is called an issued state. When the service process instance is in the published state, the service provided by the service process instance is 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, is sequentially increased. When a plurality of service process instances are sequenced, the current state factor of the service process instances is 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 sequenced, the current state change time factor of the service process instances is introduced, and the service process instances with the front progress in the same state can be determined as much as possible. It should be understood that the above description is only exemplary, and the embodiments of the present application are not limited in this respect.
In some optional embodiments, the priority of the service target factor, the current state factor and the current state change time factor of the service process instance is sequentially decreased when the plurality of service process instances are sorted. Further, the serviceable priority is higher than the non-serviceable priority for the service objective factor of the service process instance. The priority of the unloaded state, the loaded state, the unpublished state and the published state is sequentially decreased for the current state factor of the service process instance. For the time factor of the current state change of the service process instance, the priority of the current state changed in advance is higher than the priority of the current state changed in the later period. Thereby, serviceable and unstable service process instances can be queued up. It should be understood that any implementation manner of ordering the multiple service process instances may be applied, and the embodiment of the present application is not limited thereto.
In a specific example, each of the plurality of service process instances can be scored according to the following formula to obtain a score for each of the plurality of service process instances: the score of the service process instance is target weight coefficient, weight a + current state weight coefficient, weight B + state change weight coefficient. The weight A is the weight B10, the weight B is the highest bit unit 10 of the number of the service process instances, the target weight coefficient, the current state weight coefficient and the state change weight coefficient are sequentially decreased in size, the target weight coefficient of the service process instance capable of being served is larger than the target weight coefficient of the service process instance incapable of being served, the current state weight coefficients of the service process instances in the unloaded state, the loaded state, the unpublished state and the published state are sequentially decreased in size, and the state change weight coefficient of the service process instance changing to the current state in the prior art is larger than the state change weight coefficient of the service process instance changing to the current state in the later art. And then, sequencing the multiple service process instances according to the fraction of each service process instance in the multiple service process instances, and determining at least one service process instance of the channel data to be updated. Specifically, for each channel data in the at least one channel data, the service process instance with the top three in score may be determined as the service process instance to be updated with the channel data. It should be understood that the above description is only exemplary, and the embodiments of the present application are not limited in this respect.
In some optional embodiments, if the service process instances of the at least two channel data to be updated 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 diffusion of the influence range when the channel data exception causes the service exception provided by the service process instance can be avoided, and the stability of the whole service process instance is ensured when the channel data of the service process instance is updated. It should be understood that the above description is only exemplary, and the embodiments of the present application are not limited in this respect.
In a specific example, if the service process instances of the first channel data to be updated include a service process instance on a machine number one, a service process instance on a machine number two, and a service process instance on a machine number three, and the service process instances of the second channel data to be updated include a service process instance on a machine number two, a service process instance on a machine number three, and a service process instance on a machine number four, it is determined that the service process instances of the first channel data and the second channel data to be updated are service process instances on a machine number two or service process instances on a machine number three. And if the service process instances of the first channel data to be updated comprise the service process instances on the first machine, the second machine and the third machine, and the service process instances of the second channel data to be updated comprise the service process instances on the first machine, the second machine and the third machine, determining that the service process instances of the first channel data and the second channel data to be updated are the service process instances on the first machine, the second machine or the third machine. It should be understood that the above description is only exemplary, and the embodiments of the present application are not limited in this respect.
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 and independently from the version data of the service process instance.
In the embodiment of the present application, the data distribution agent may be understood as an agent arranged by the scheduler for the service process instance on each machine, and is used for acting on the data instruction issued by the scheduler. It should be understood that the above description is only exemplary, and the embodiments of the present application are not limited in this respect.
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 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 the version data of the service process instance according to the data updating instruction.
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, in-vehicle devices, entertainment devices, advertising devices, Personal Digital Assistants (PDAs), tablet computers, notebook computers, handheld game consoles, smart glasses, smart watches, wearable devices, virtual display devices or display enhancement devices (such as Google Glass, Oculus rise, Hololens, Gear VR), and the like.
Example two
Referring to fig. 2, a flowchart of steps of a data updating method according to the second embodiment of the present application is shown.
The data updating method of the embodiment comprises the following steps:
in step S201, at least one channel data configured for the version data of the service process is acquired.
Since step S201 is similar to step S101 described above, it is not described herein again.
In step S202, a service process instance to be updated with the at least one channel data is determined from the plurality of service process instances.
In some optional embodiments, before determining the service process instance to be updated with the at least one channel data, the update proportions of the plurality of service process instances, the number of update rounds of the service process instances, and the number of update rounds of the service process instances per round are configured in advance. And then, determining the service process instances of the at least one channel data to be updated from the plurality of service process instances based on the preset update proportions of the plurality of 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. It should be understood that the above description is only exemplary, and the embodiments of the present application are not limited in this respect.
In a specific example, it is assumed that a scheduling platform has 100 machines associated therewith, each machine has a corresponding service process, that is, on the scheduling platform, the service process has 100 service process instances, and the preconfigured update ratios of the plurality of service process instances, the number of update rounds of the service process instances, and the number of updates of the service process instances in each round are 10%, 5 rounds, and 2, respectively, then 100 service process instances are divided into 5 rounds for updating, and the number of updates of the service process instances in each round is 2, so that the update ratio of the 100 service process instances is exactly 10%. In each round of updating, 2 service process instances of the channel data to be updated are determined from 100 service process instances for each channel data in the at least one channel data. The specific implementation of determining 2 service process instances of the channel data to be updated from the 100 service process instances is similar to the first embodiment, and is not described herein again. In addition, if the number of the channel data configured for the version data of the service process is 2, and it is determined that the service process instance to be updated for the first channel data includes the service process instance on the machine No. 1 and the service process instance on the machine No. 2, and the service process instance to be updated for the second channel data includes the service process instance on the machine No. 2 and the service process instance on the machine No. 3, it is determined that the service process instance to be updated for the first channel data and the second channel data is the service process instance on the machine No. 2. Therefore, the diffusion of the influence range when the channel data exception causes the service exception provided by the service process instance can be avoided, and the stability of the whole service process instance is ensured when the channel data of the service process instance is updated. This process may be referred to as scheduling of grayscale updates for channel data by the scheduler. It should be understood that the above description is only exemplary, and the embodiments of the present application are not limited in this respect.
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 according to the data update instruction and independently from the version data of the service process instance.
In a specific example, after each round of updating determines that the service process instance of each channel data to be updated is obtained, the scheduler sends a data updating instruction to the 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 the version data of the corresponding service process instance according to the data updating instruction. It should be understood that the above description is only exemplary, and the embodiments of the present application are not limited in this respect.
In step S204, a distribution status and a loading status of at least one channel data of the service process instance sent by the data distribution agent every interval preset time period are received.
In the embodiment of the present application, the preset time period may be set by a person skilled in the art according to actual needs, and the embodiment of the present application is not limited in any way. In addition, after receiving the data updating instruction sent by the scheduler, the data distribution agent distributes the 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. Meanwhile, the data distribution agent sends the distribution status and the loading status of the corresponding channel data of the corresponding service process instance to the scheduler every interval of a preset time period. The distribution state of the channel data includes a progress of distribution of the channel data, for example, the channel data is not distributed, the distribution of the channel data is completed, and the loading state of the channel data includes loading failure or loading success. It should be understood that the above description is only exemplary, and the embodiments of the present application are not limited in this respect.
In a specific example, after each round of update sends a data update instruction to a data distribution agent corresponding to a corresponding service process instance, a 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 update, determines a 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. Therefore, the scheduler can accurately schedule the service process instance for updating in each round of updating. For example, if the loading state of the first channel data of the service process instance on the machine in the previous round of updating is successful, in the current round of updating, the service process instance of the first channel data to be updated is determined from the service process instances except the service process instance on the machine for the first channel data. For another example, if in the previous round of update, the loading state of the first channel data of the service process instance on the machine is loading failure, and the distribution state of the first channel data of the service process instance on the machine is distribution completion, in the current round of update, the service process instance of the first channel data to be updated is determined from all the service process instances for the first channel data, and when receiving the update instruction sent by the scheduler, the data distribution agent corresponding to the service process instance on the machine directly triggers the load instruction to the service process instance on the machine according to the data update instruction, so that the service process instance on the machine loads the first channel data, and the process that the data distribution agent issues the first channel data again is omitted. It should be understood that the above description is only exemplary, and the embodiments of the present application are not limited in this respect.
In some optional embodiments, when detecting that the service process instance or the data distribution agent restarts, sending the data update 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 update instruction, independently of the version data of the service process instance. Therefore, when the service process instance restarts or the data distribution agent restarts due to the abnormal process, the data version of the service process instance can be recovered in time. It should be understood that the above description is only exemplary, and the embodiments of the present application are not limited in this respect.
In one particular example, there is data interaction between the scheduler and the service process instance, and also between the scheduler and the data distribution agent. When detecting that the service process instance or the data distribution agent restarts, the scheduler sends a 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 independently of the version data of the service process instance according to the data updating instruction. It should be understood that the above description is only exemplary, and the embodiments of the present application are not limited in this respect.
On the basis of the first embodiment, in each update, 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, and compared with the existing other modes, the scheduler can accurately schedule the service process instance for updating in each update.
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, in-vehicle devices, entertainment devices, advertising devices, Personal Digital Assistants (PDAs), tablet computers, notebook computers, handheld game consoles, smart glasses, smart watches, wearable devices, virtual display devices or display enhancement devices (such as Google Glass, Oculus rise, Hololens, Gear VR), and the like.
EXAMPLE III
Referring to fig. 3, a flowchart of steps of a data updating method according to a third embodiment of the present application is shown.
The data updating method of the embodiment comprises the following steps:
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 the embodiment of the 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 comprises at least one of: service process instance signature, channel data signature, download address of channel data, and data name of channel data. And the service process instance signature is determined by the scheduler 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 should be understood that the above description is only exemplary, and the embodiments of the present application are not limited in this respect.
In step S302, at least one channel data of the service process instance is updated independently of the version data of the service process instance based on the data update instruction.
In some optional embodiments, when updating at least one channel data of the service process instance independently of the version data of the service process instance, for each channel data 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, and it is determined that the download address of the channel data in the data update instruction is not the same as the download address of the locally stored channel data, the channel data is distributed based on the download address of the channel data in the data update instruction, and when the distribution of the channel data is completed, a load instruction is triggered to the service process instance to load the corresponding channel data by the service process instance. It may be understood that any implementation manner of updating at least one channel data of the service process instance independently from the version data of the service process instance may be applied herein, and the embodiment of the present application is not limited in any way.
In some optional embodiments, for each channel data 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 changes can be accurately detected. And for each channel data in the at least one channel data, 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, updating the download address of the locally stored channel data to the download address of the channel data in the data updating instruction. Therefore, whether the download address of the channel data changes or not can be accurately detected. It should be understood that the above description is only exemplary, and the embodiments of the present application are not limited in this respect.
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 different from the locally stored service process instance signature, determining whether the channel data signature in the data updating instruction is the same as the locally stored channel data signature or not for each channel data in the at least one channel data; and if the channel data signature in the data updating instruction is determined to be the same as the locally stored channel data signature, triggering a loading instruction to the service process instance so as to enable the service process instance to load corresponding channel data. If the channel data signature in the data updating instruction is determined to be different from the locally stored channel data signature, 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 corresponding channel data. It should be understood that the above description is only exemplary, and the embodiments of the present application are not limited in this respect.
In a specific example, the service process instance signature is determined by the scheduler based on the service process identification information and the start time of the service process instance. Thus, the service process instance signature is updated each time a service process instance is started or restarted. Furthermore, 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. Therefore, when the channel data signature in the data updating instruction is not changed, the data distribution 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 download 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. Wherein the channel data signature is determined by the scheduler based on the download address of the channel data. If the channel data signature changes, the channel data in the service process instance needs to be updated. Therefore, the channel data of the service process instance can be ensured to be in the latest version all the time. It should be understood that the above description is only exemplary, and the embodiments of the present application are not limited in this respect.
In some optional embodiments, after triggering the 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. Therefore, the loading result of the channel data of the service process instance can be accurately determined. It should be understood that the above description is only exemplary, and the embodiments of the present application are not limited in this respect.
According to 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, updating at least one channel data of the service process instance 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, in-vehicle devices, entertainment devices, advertising devices, Personal Digital Assistants (PDAs), tablet computers, notebook computers, handheld game consoles, smart glasses, smart watches, wearable devices, virtual display devices or display enhancement devices (such as Google Glass, Oculus rise, Hololens, Gear VR), and the like.
Example four
Referring to fig. 4, a flowchart of steps of a data updating method according to the fourth embodiment of the present application is shown.
The data updating method of the embodiment comprises the following steps:
in step S401, a data update instruction sent by the scheduler for updating at least one channel data of the service process instance is received.
Since step S401 is similar to step S301, it will not be described herein.
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 not the same as 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. Determining, for each channel data in the at least one channel data, whether a service process instance signature in the data update instruction is the same as a locally stored service process instance signature; if the channel data signature in the data updating instruction is determined to be different from the locally stored channel data signature, 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 corresponding channel data. And if the channel data signature in the data updating instruction is determined to be the same as the locally stored channel data signature, no operation is executed. It should be understood that the above description is only exemplary, and the embodiments of the present application are not limited in this respect.
In a specific example, when the data distribution agent restarts 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 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, and the updating of 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 should be understood that the above description is only exemplary, and the embodiments of the present application are not limited in this respect.
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 not changed. And the data distribution agent corresponding to the service process instance distributes corresponding channel data based on the download 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 should be understood that the above description is only exemplary, and the embodiments of the present application are not limited in this respect.
In some optional 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 every preset time period. The preset time period may be set by a person skilled in the art according to actual needs, and this is not limited in this embodiment of the application. Therefore, the scheduling of the channel data for gray scale updating can be conveniently performed by the scheduler. It should be understood that the above description is only exemplary, and the embodiments of the present application are not limited in this respect.
In some optional 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 at preset time intervals. The preset time period may be set by a person skilled in the art according to actual needs, and this is not limited in this embodiment of the 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 can timely recover the current state of the channel data of the corresponding service process instance when the data distribution agent is restarted. It should be understood that the above description is only exemplary, and the embodiments of the present application are not limited in this respect.
According to 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 it is determined that the data signature of the channel data in the data updating instruction is not the same as the data signature of the locally stored channel data and it is determined that 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, a load instruction is triggered to the service process instance to enable the service process instance to load the corresponding channel data.
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, in-vehicle devices, entertainment devices, advertising devices, Personal Digital Assistants (PDAs), tablet computers, notebook computers, handheld game consoles, smart glasses, smart watches, wearable devices, virtual display devices or display enhancement devices (such as Google Glass, Oculus rise, Hololens, 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 by the embodiment comprises: the scheduler is used for acquiring at least one channel data configured for the 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 to be updated with the at least one channel data from the plurality of service process instances; sending 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 sent by the scheduler; 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 update instruction.
In a specific embodiment, a corresponding service process on each server is referred to as a service process instance, the service process instance on each server corresponds to one data distribution agent, and the scheduler performs data interaction with the data distribution agents corresponding to the service process instances on the plurality of servers. In addition, the scheduler also performs data interaction with the service process instances on the plurality of servers. It should be understood that the above description is only exemplary, and the embodiments of the present application are not limited in this respect.
The data updating system of this embodiment is used 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 again.
EXAMPLE six
Referring to fig. 6, a block diagram of a data updating apparatus according to a sixth embodiment of the present application is shown.
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 has multiple service process instances; a first determining module 502, configured to determine, from the plurality of service process instances, a service process instance to be updated with the at least one channel data; 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, independently from the version data of the service process instance.
The data updating apparatus of this embodiment is used 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 again.
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 has multiple service process instances; a first determining module 602, configured to determine, from the multiple service process instances, a service process instance to be updated with the at least one channel data; a first sending module 603, 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, independently from the version data of the service process instance.
Optionally, the first determining module 602 includes: a sorting module 6021, configured to, for each channel data in the at least one channel data, sort the multiple service process instances based on the service targets, the current states, and the current state change times of the multiple service process instances, and determine at least one service process instance of the channel data to be updated.
Optionally, the first determining module 602 further includes: a second determining module 6022, configured to determine that the service process instances of the at least two pieces of channel data to be updated are the same service process instance if the service process instances of the at least two pieces of channel data to be updated are the same or partially the same, respectively.
Optionally, the current state comprises 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 status and a loading status of at least one channel data of the service process instance, where the distribution status and the loading status are sent by the data distribution agent every preset time period.
Optionally, the apparatus further comprises: a second sending module 605, configured to send the data update instruction to the data distribution agent when detecting that the service process instance or the data distribution agent is restarted, 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 the version data of the service process instance.
The data updating apparatus of this embodiment is used 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 again.
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 is provided with a plurality of service process instances correspondingly; determining a service process instance to be updated with the at least one channel data 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 independently of the version data of the service process instance according to the data updating instruction.
Another embodiment of the present application further provides an electronic device, including: one or more processors; a memory for storing one or more programs; when executed by the one or more processors, cause the one or more processors to implement a 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, for updating at least one channel data of the service process instance; a first updating module 702, configured to update, based on the data updating instruction, at least one channel data of the service process instance independently from the version data of the service process instance.
The data updating apparatus of this embodiment is used 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 again.
Example nine
Referring to fig. 9, a block diagram of a data updating apparatus according to a ninth embodiment of the present application is shown.
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, based on the data updating instruction, at least one channel data of the service process instance independently of the version data of the service process instance.
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 updating instruction is not the same as the data signature of the locally stored channel data, and it is determined that the download address of the channel data in the data updating instruction is not the same as the download address of the locally stored channel data, the channel data is distributed based on the download address of the channel data in the data updating instruction, and when the distribution of the channel data is completed, a load instruction is triggered to the service process instance, 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 updating instruction is not the same as the data signature of the locally stored channel data, and it is determined that 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, a load instruction is triggered to the service process instance, so that the service process instance loads the corresponding channel data.
Optionally, the apparatus further comprises: a second updating module 803, configured to, for each channel data in the at least one channel data, update 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 the same as the data signature of the locally stored channel data.
Optionally, the apparatus further comprises: a third updating module 804, configured to, for each channel data in the at least one channel data, update 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 not the same as 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 the service process instance signature in the data updating instruction is determined to be different from the locally stored service process instance signature, determining whether the channel data signature in the data updating instruction is the same as the locally stored channel data signature or not for each channel data in the at least one channel data; and if the channel data signature in the data updating instruction is determined to be the same as the locally stored channel data signature, triggering a loading instruction to the service process instance so as to enable the service process instance to load corresponding channel data.
Optionally, the first updating module 802 is further configured to: if the channel data signature in the data updating instruction is determined to be different from the locally stored channel data signature, 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 corresponding channel data.
Optionally, the first updating module 802 is specifically configured to: determining, for each channel data in the at least one channel data, whether a service process instance signature in the data update instruction is the same as a locally stored service process instance signature; if the channel data signature in the data updating instruction is determined to be different from the locally stored channel data signature, 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 corresponding channel data.
Optionally, the apparatus further comprises: a third receiving module 805, configured to receive a loading result of the service process instance for the corresponding channel data after the load instruction is triggered to the service process instance.
Optionally, the service process instance signature is determined based on the service process identification information and the 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, the distribution status and the loading status of the at least one channel data of the service process instance every preset time period.
Optionally, the apparatus further comprises: a storage module 807, configured to store, every preset time period, a distribution status and a loading status of at least one channel data of the service process instance.
Optionally, the data update instruction comprises at least one of: service process instance signature, channel data signature, download address of channel data, and data name of channel data.
The data updating apparatus of this embodiment is used 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 again.
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; 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 update instruction.
Another embodiment of the present application further provides an electronic device, including: one or more processors; a memory for storing one or more programs; when executed by the one or more processors, cause the one or more processors to implement a data update method as described above.
Example ten
Fig. 10 is a schematic structural diagram 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, with one processor 81 being an example 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 other means, and the bus connection is exemplified in fig. 10.
The memory 82, which is a non-volatile computer-readable storage medium, may be used for storing non-volatile software programs, non-volatile computer-executable programs, and modules, such as program instructions/modules corresponding to the above-described methods in the embodiments of the present application. The processor 81 executes various functional applications of the server and data processing by executing nonvolatile software programs, instructions and modules stored in the memory 82, that is, implements the above method in the above method embodiment.
The memory 82 may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created at the time of data update, and the like. Further, 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 located remotely from the processor 81, and these remote memories 82 may be connected to the client over 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 and function control of the client. The input device 83 may include a pressing module or the like.
The one or more modules are stored in the memory 82 and, when executed by the one or more processors 81, perform the above-described method in any of the above-described method embodiments.
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. For technical details that are not described in detail in this embodiment, reference may be made to the methods provided in the embodiments of the present application.
The electronic device of the embodiments of the present application exists in various forms, including but not limited to:
(1) a mobile communication device: such devices are characterized by mobile communications capabilities and are primarily targeted at providing voice, data communications. Such terminals include: smart phones (e.g., iphones), multimedia phones, functional phones, and low-end phones, among others.
(2) Ultra mobile personal computer device: the equipment belongs to the category of personal computers, has calculation and processing functions and generally has the characteristic of mobile internet access. Such terminals include: PDA, MID, and UMPC devices, etc., such as ipads.
(3) A portable entertainment device: such devices can display and play multimedia content. This type of device comprises: audio, video players (e.g., ipods), handheld game consoles, electronic books, and smart toys and portable car navigation devices.
(4) A server: the device for providing the computing service, the server comprises a processor 71, a hard disk, a memory, a system bus and the like, the server is similar to a general computer architecture, but the server needs to provide highly reliable service, so the requirements on processing capacity, stability, reliability, safety, expandability, manageability and the like are high.
(5) And other electronic devices with data interaction functions.
The above-described embodiments of the apparatus are merely illustrative, wherein the modules described as separate parts may or may not be physically separate, and the parts displayed as modules may or may not be physical modules, may be located in one place, or may be distributed on 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 the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware. With this understanding in mind, the above-described technical solutions and/or portions thereof that contribute to the prior art may be embodied in the form of a software product that can be stored on 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 storage media, electrical, optical, acoustical or other form of propagated signals (e.g., carrier waves, infrared signals, digital signals, etc.), and others, and the computer software product includes instructions for causing a computing device (which may be a personal computer, server, or network device, etc.) to perform the methods described in the various embodiments or portions of the embodiments.
As will be appreciated by one of skill in the art, embodiments of the present application may be provided as a method, apparatus (device), or computer program product. Accordingly, embodiments of the present application 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 embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) 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 flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams 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 used 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 solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions in the embodiments of the present application.

Claims (46)

1. A method for updating data, the method comprising:
acquiring at least one channel data configured for version data of a service process, wherein the service process is provided with a plurality of service process instances correspondingly;
determining a service process instance to be updated with the at least one channel data 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 independently of the version data of the service process instance according to the data updating instruction.
2. The method of claim 1, wherein determining the service process instance to update the at least one channel data from the plurality of service process instances comprises:
and for each channel data in the at least one channel data, sequencing the multiple service process instances based on the service targets, the current states and the current state change time of the multiple service process instances, and determining at least one service process instance of the channel data to be updated.
3. The method of claim 2, further comprising:
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 of claim 1, further comprising:
and receiving the distribution state and the loading state of at least one channel data of the service process instance, which is sent by the data distribution agent every preset time interval.
6. The method of claim 1, further comprising:
when the restart of the service process instance or the data distribution agent is detected, the data updating instruction is sent to the data distribution agent, 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.
7. A method for updating data, 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;
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 update instruction.
8. The method of claim 7, wherein updating, based on the data update instruction, at least one channel data of the service process instance independently of the 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 updating instruction is not the same as the data signature of the locally stored channel data, and it is determined that the download address of the channel data in the data updating instruction is not the same as the download address of the locally stored channel data, the channel data is distributed based on the download address of the channel data in the data updating instruction, and when the distribution of the channel data is completed, a load instruction is triggered to the service process instance, so that the service process instance loads the corresponding channel data.
9. The method of claim 7, wherein updating, based on the data update instruction, at least one channel data of the service process instance independently of the 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 updating instruction is not the same as the data signature of the locally stored channel data, and it is determined that 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, a load instruction is triggered to the service process instance, so that the service process instance loads the corresponding channel data.
10. The method of claim 8, further comprising:
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 determined to be different from 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 updating instruction.
11. The method of claim 8, further comprising:
and for each channel data in the at least one channel data, 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, updating the download address of the locally stored channel data to the download address of the channel data in the data updating instruction.
12. The method of claim 8, wherein the data signatures comprise a service process instance signature and a channel data signature.
13. The method of claim 12, wherein updating at least one channel data of the service process instance independent of the version data of the service process instance based on the data update instruction further comprises:
when the service process instance signature in the data updating instruction is determined to be different from the locally stored service process instance signature, determining whether the channel data signature in the data updating instruction is the same as the locally stored channel data signature or not for each channel data in the at least one channel data;
and if the channel data signature in the data updating instruction is determined to be the same as the locally stored channel data signature, triggering a loading instruction to the service process instance so as to enable the service process instance to load corresponding channel data.
14. The method of claim 13, further comprising:
if the channel data signature in the data updating instruction is determined to be different from the locally stored channel data signature, 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 corresponding channel data.
15. The method of claim 12, wherein updating at least one channel data of the service process instance independent of the version data of the service process instance based on the data update instruction further comprises:
determining, for each channel data in the at least one channel data, whether a service process instance signature in the data update instruction is the same as a locally stored service process instance signature;
if the channel data signature in the data updating instruction is determined to be different from the locally stored channel data signature, 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 corresponding channel data.
16. The method according to any one of claims 13-15, further comprising:
after a load instruction is triggered to the service process instance, a load result of the service process instance for the corresponding channel data is received.
17. A 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 the 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 interval 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 at intervals of preset time periods.
21. The method according to 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, and data name of channel data.
22. An apparatus for updating data, the apparatus comprising:
the system comprises an acquisition module, a processing module and a processing module, wherein the acquisition module 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;
a first determining module, configured to determine, from the multiple service process instances, a service process instance to be updated with the at least one channel data;
a first sending module, 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, independently of the version data of the service process instance.
23. The apparatus of claim 22, wherein the first determining module comprises:
and the sequencing module is used for 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 aiming at 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 instance if the service process instances of the at least two channel data to be updated are the same or partially the same.
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, further comprising:
a first receiving module, configured to receive a distribution status and a loading status of at least one channel data of the service process instance, where the distribution status and the loading status are sent by the data distribution agent every interval preset time period.
27. The apparatus of claim 22, further comprising:
and a second sending module, configured to send the data update instruction to the data distribution agent when detecting that the service process instance or the data distribution agent is restarted, so that the data distribution agent updates at least one channel data of the service process instance according to the data update instruction and independently from version data of the service process instance.
28. An apparatus for updating data, 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;
a first updating module, configured to update, based on the data update instruction, at least one channel data of the service process instance independently of the version data of the service process instance.
29. The apparatus of claim 28, wherein the first update 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 updating instruction is not the same as the data signature of the locally stored channel data, and it is determined that the download address of the channel data in the data updating instruction is not the same as the download address of the locally stored channel data, the channel data is distributed based on the download address of the channel data in the data updating instruction, and when the distribution of the channel data is completed, a load instruction is triggered to the service process instance, so that the service process instance loads the corresponding channel data.
30. The apparatus of claim 28, wherein the first update 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 updating instruction is not the same as the data signature of the locally stored channel data, and it is determined that 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, a load instruction is triggered to the service process instance, so that the service process instance loads the corresponding channel data.
31. The apparatus of claim 29, further comprising:
and 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 not the same as the data signature of the locally stored channel data, updating the data signature of the locally stored channel data to the data signature of the channel data in the data update instruction.
32. The apparatus of claim 29, further comprising:
and a third updating module, configured to update, for each channel data in the at least one channel data, a download address of the channel data in the data updating instruction to a 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 not the same as the download address of the locally stored channel data.
33. The apparatus of claim 29, wherein the data signatures comprise a service process instance signature and a channel data signature.
34. The apparatus of claim 33, wherein the first update module is specifically configured to:
when the service process instance signature in the data updating instruction is determined to be different from the locally stored service process instance signature, determining whether the channel data signature in the data updating instruction is the same as the locally stored channel data signature or not for each channel data in the at least one channel data;
and if the channel data signature in the data updating instruction is determined to be the same as the locally stored channel data signature, triggering a loading instruction to the service process instance so as to enable the service process instance to load corresponding channel data.
35. The apparatus of claim 34, wherein the first updating module is further configured to:
if the channel data signature in the data updating instruction is determined to be different from the locally stored channel data signature, 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 corresponding channel data.
36. The apparatus of claim 33, wherein the first update module is specifically configured to:
determining, for each channel data in the at least one channel data, whether a service process instance signature in the data update instruction is the same as a locally stored service process instance signature;
if the channel data signature in the data updating instruction is determined to be different from the locally stored channel data signature, 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 corresponding channel data.
37. The apparatus according to any one of claims 34-36, further comprising:
a third receiving module, 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.
38. An 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 the service process instance.
39. The apparatus as claimed in any one 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 a third sending module, configured to send, to the scheduler, the distribution status and the loading status of the at least one piece of channel data of the service process instance 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 at least one channel data of the service process instance at intervals of a preset time period.
42. The apparatus according to 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, and 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 the 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 to be updated with the at least one channel data from the plurality of service process instances; sending 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,
the data distribution agent is used for receiving the data updating instruction sent by the scheduler; 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 update instruction.
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 is provided with a plurality of service process instances correspondingly;
determining a service process instance to be updated with the at least one channel data 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 independently of the version data of the service process instance according to the data updating instruction.
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;
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 update instruction.
46. An electronic device, comprising:
one or more processors;
a memory for storing one or more programs;
when executed by the one or more processors, cause the one or more processors to implement a data update method as claimed in any one 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 true CN111045700A (en) 2020-04-21
CN111045700B 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)

Cited By (2)

* 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
CN117707566A (en) * 2023-08-23 2024-03-15 荣耀终端有限公司 Operating system upgrading method and electronic equipment

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040255286A1 (en) * 2003-06-13 2004-12-16 Rothman Michael A. Method for distributed update of firmware across a clustered platform infrastructure
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
US20150212863A1 (en) * 2005-07-11 2015-07-30 International Business Machines Corporation Apparatus and Method for Serializing Process Instance Access to Information Stored Redundantly in at Least Two Datastores
US20160041819A1 (en) * 2014-08-06 2016-02-11 Microsoft Corporation Updating service applications
WO2017152807A1 (en) * 2016-03-10 2017-09-14 阿里巴巴集团控股有限公司 Communication channel processing method and system
US20180007162A1 (en) * 2016-06-29 2018-01-04 Nicira, Inc. Upgrading a proxy that decouples network connections from an application during application's downtime
CN108182122A (en) * 2018-01-22 2018-06-19 广东欧珀移动通信有限公司 Using update notifying method, apparatus, storage medium and server

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040255286A1 (en) * 2003-06-13 2004-12-16 Rothman Michael A. Method for distributed update of firmware across a clustered platform infrastructure
US20150212863A1 (en) * 2005-07-11 2015-07-30 International Business Machines Corporation Apparatus and Method for Serializing Process Instance Access to Information Stored Redundantly in at Least Two Datastores
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
US20160041819A1 (en) * 2014-08-06 2016-02-11 Microsoft Corporation Updating service applications
WO2017152807A1 (en) * 2016-03-10 2017-09-14 阿里巴巴集团控股有限公司 Communication channel processing method and system
US20180007162A1 (en) * 2016-06-29 2018-01-04 Nicira, Inc. Upgrading a proxy that decouples network connections from an application during application's downtime
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
王俊昌等: ""并行计算机***中的计数算法研究"", 《南京邮电大学学报(自然科学版)》 *

Cited By (2)

* 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
CN117707566A (en) * 2023-08-23 2024-03-15 荣耀终端有限公司 Operating system upgrading method and electronic equipment

Also Published As

Publication number Publication date
CN111045700B (en) 2023-05-05

Similar Documents

Publication Publication Date Title
US10348861B2 (en) Software upgrade method and terminal
CN109496419B (en) File processing method, device and system
CN111190718A (en) Method, device and system for realizing task scheduling
CN113055451A (en) Resource downloading method and device, electronic equipment and storage medium
KR20180009352A (en) Method and apparatus for data processing for mobile games
CN106572146A (en) Message sending method and message sending device
CN104063131A (en) Application display method and device and user terminal
CN111078065A (en) Method, system and readable recording medium for collecting non-reply message
CN111045700A (en) Data updating method, device, system, storage medium and electronic equipment
CN110770720B (en) Resource searching method and related products
CN108553904B (en) Game matching method and device, electronic equipment and medium
CN111580883B (en) Application program starting method, device, computer system and medium
CN103647755A (en) Advertisement broadcasting method, server, client and system
CN106971296B (en) Method for processing information object, electronic equipment and storage medium
CN111026532B (en) Message queue management method for voice data
US20180059650A1 (en) Techniques for multiple application banks in a welding or cutting system
WO2020073242A1 (en) Minigame access method and related device
US11258838B2 (en) Method, system, and non-transitory computer readable record medium for processing chatroom based on usage
EP3374860B1 (en) Communicating information about an update of an application
CN115671723A (en) Resource processing method, device, equipment and medium
CN112667255B (en) Updating method, updating device, electronic equipment and storage medium
CN112313690A (en) Method, system, and non-transitory computer-readable recording medium for providing content based on user reaction
CN111738415B (en) Model synchronous updating method and device and electronic equipment
CN108829824B (en) Resource processing method and device in internet operation activity
CN114139731A (en) Longitudinal federated learning modeling optimization method, apparatus, medium, and program product

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