Skip to content
/ Flake Public

A network service for generating unique 64bit IDs at scale

Notifications You must be signed in to change notification settings

instcode/Flake

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

A network service for generating unique 64bit IDs at scale

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published