Skip to content

yuanyu90221/typescript_snowflake

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

typescript_snowflake

Snowflake implementation in typescript

A distributed monotone incremented Identifier generate algorithm

format

timestamp shardId seqId
timestamp difference in millisecond(41bit) shardId(10bit) seqId(12bit)

functionality

  1. in 1 millisecond could generate 2^12 different id

  2. if more than 2^12 request in 1 millisecond, this service will block this request

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published