SnowFlake
A CPP implement of Twitter SnowFlake Algorithm.
Install / Use
/learn @Shenggan/SnowFlakeREADME
SnowFlake: A Fast GUID Algorithm
Snowflake is a network service for generating unique ID numbers at high scale with some simple guarantees. The Algorithm is developed by Twitter. The original repo is on https://github.com/twitter/snowflake.
You can see some details of SnowFlake in this Blog.
Get Started
This is a head-only impelement of the SnowFlake Algorithm. The algorithm code is in SnowFlake.h and the test code is in test/test_SnowFlake.cc. You can see the usage in the test code too.
make # complie the test
make test # run the test
