Snow ID realize new data synchronization

Snow ID realize new data synchronization

GUID generated ID, you can be sure that the unique ID, but it is disordered, is not suitable for data synchronization.

Snow generated by the algorithm ID (INT64) can be generated in a time ordered (ascending). As long as the time on the computer is correct, the new record, the ID generated maximum.

For the new record, a data synchronization, last registered record synchronized ID (as of the synchronization point). ID than the next sync only sync up to record large.

 

Guess you like

Origin www.cnblogs.com/hnxxcxg/p/11608340.html