The invention provides a method for achieving
data synchronization through a timing task based on
cloud computing. The method includes the specific implementation steps that firstly, a class is defined, the function of extracting required data is achieved, a
sql statement is achieved, and a
system automatically generates an
xml message; the class is added to the timing task, the timing task is added, the name of the task, the name of the class,
execution time, execution strategies and validity duration are added, and the timing task automatically synchronizes data according to
system settings and time stamps or synchronization marks; eventually, the timing task executes
data synchronization operation according to the execution strategies and the
execution time, and the timing task is synchronized through a mechanism of a
database lock; the timing task is destroyed after being executed. Compared with the prior art, the method for achieving
data synchronization through the timing task based on
cloud computing has the advantages that calling of
concurrency control tasks under the
cloud computing environment is achieved in a
database lock mode, and the method is high in practicality, wide in application range and easy to popularize.