The invention discloses a distributed architecture
data consistency method based on a Zookeeper, and relates to the technical field of
data processing. The method comprises the following steps of: initializing buffer data: loading data in a Zookeeper into a memory of each node after each node of the distributed
system is started; defining a subscription monitoring method, each node subscribes to aZookeeper
directory and data, deploying monitoring; and
data synchronization: after monitoring the data change in the Zookeeper, updating the memory data of each node through a deployed monitoring method, and keeping the
data synchronization among the nodes. According to the invention, a Zookeeper component is used as a cache
data synchronization manager in a distributed architecture
system; thedistributed multi-node cache data is synchronized in real time by utilizing a release and subscription mechanism of the Zookeeper, and meanwhile, the
data access speed is greatly increased based on aZookeeper
database of a memory, so that the performance and the
data consistency are well improved in a distributed architecture
system.