Strong consistence distributed data storage method, device and system
The embodiment of the invention provides a strong consistence distributed data storage method, device and system. The method comprises the steps that a cache server receives a data writing request sent by a client side, and the data writing request comprises a data key value and a data operating com...
Saved in:
Main Authors | , |
---|---|
Format | Patent |
Language | English |
Published |
14.01.2015
|
Subjects | |
Online Access | Get full text |
Cover
Loading…
Summary: | The embodiment of the invention provides a strong consistence distributed data storage method, device and system. The method comprises the steps that a cache server receives a data writing request sent by a client side, and the data writing request comprises a data key value and a data operating command; the cache server obtains a self-increasing serial number corresponding to the data key value from a zookeeper server cluster; the cache server calculates a difference value between the self-increasing serial number and a cache data serial number, whether the difference value is larger than a preset threshold value is judged, if not, cache data are directly processed according to the data operating command, if yes, latest valid data corresponding to the data key value are obtained from the zookeeper server cluster, the cache data are updated to be the latest valid data, and the latest valid data are processed according to the data operating command; the cache server is used for writing the processed data into the zookeeper server cluster. According to the method, under the circumstance of not influencing the zookeeper writing operation performance, strong consistence cache is provided, and the correctness of data writing is ensured. |
---|---|
Bibliography: | Application Number: CN201410525002 |