Strong consistency distributed data storage method, device and system
A distributed data and consistent technology, applied in transmission systems, electrical components, etc., can solve problems such as system architecture redundancy, and achieve the effect of ensuring correctness
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
no. 1 example
[0030] See image 3 , is a flow chart of a strongly consistent distributed data storage method provided in the first embodiment of the present invention; this embodiment is a strongly consistent distributed data storage method executed by a cache server, including the following steps:
[0031] Step S11, the cache server receives the data write request sent by the client, the data write request includes the data key value and the data operation command, and the cache server includes the cache data corresponding to the data key value and the corresponding cache data sequence number c_seq.
[0032] Step S12, the cache server acquires the self-incrementing sequence number new_seq corresponding to the data key value from the Zookeeper server cluster, and the self-incrementing sequence number new_seq is the data write request of the Zookeeper server cluster for the data The latest sequence number of the key-value creation.
[0033] Step S13, the cache server calculates the differe...
no. 2 example
[0044] Figure 5 It is a flowchart of a strongly consistent distributed data storage method provided in the second embodiment of the present invention; this embodiment is a strongly consistent distributed data storage method executed by the system, including the following steps:
[0045] In step S21, the client sends a data write request to the cache server, and the data write request includes a data key and a data operation command.
[0046] Step S22, the cache server sends a first acquisition request to the Zookeeper server cluster according to the data write request, for acquiring the self-incrementing sequence number new_seq corresponding to the data key, and the cache server stores the data key The cache data corresponding to the value and the cache data sequence number c_seq.
[0047] Step S23, the Zookeeper server cluster returns an auto-increment sequence number new_seq corresponding to the data key value to the cache server according to the first acquisition request,...
no. 3 example
[0066] See Figure 8 , is a schematic structural diagram of a strongly consistent distributed data storage device provided in the third embodiment of the present invention; the device provided in this embodiment can run on a cache server, and the strongly consistent distributed data storage device 30 may include: request receiving Module 31 , data caching module 32 , data acquisition module 33 , data processing module 34 , data writing module 35 , and data synchronization module 36 .
[0067] Wherein, the request receiving module 31 is configured to receive a data write request sent by the client, and the data write request includes a data key value and a data operation command;
[0068] A data cache module 32, configured to store the cached data corresponding to the data key and the corresponding cached data sequence number c_seq;
[0069] The data acquisition module 33 is used to obtain the self-incrementing sequence number new_seq corresponding to the data key value from t...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 