/Flake

A network service for generating unique 64bit IDs at scale

Primary LanguagePython

Flake is inspired by FormSpring Flake which is then inspired by Twitter's Snowflake ^^

Usage

Flake supports HTTP and Thrift protocol to generate unique ids.

HTTP:

/worker-id
/id
/stats
/timestamp

Thrift:

service Flake {
  i64 get_worker_id()
  i64 get_timestamp()
  i64 get_id()
  string get_stats()
}

Speed

Flake is quite fast with Thrift protocol. You may want to run the benchmark.py to measure the performance of Flake.