This website requires JavaScript.
Explore
Help
Register
Sign In
gogs
/
snowflake-uid-service
Watch
1
Star
0
Fork
0
You've already forked snowflake-uid-service
Code
Issues
Pull Requests
Packages
Projects
Releases
Wiki
Activity
1
Commit
1
Branch
0
Tags
9b811d89f0d2ba395224269ed9d36e528e6de29d
Go to file
Code
Clone
HTTPS
Tea CLI
Open with VS Code
Open with VSCodium
Open with Intellij IDEA
Download ZIP
Download TAR.GZ
Download BUNDLE
Bel LaPointe
9b811d89f0
initial
2023-03-13 07:53:41 -06:00
go.mod
initial
2023-03-13 07:53:41 -06:00
README.md
initial
2023-03-13 07:53:41 -06:00
README.md
Snowflake UID Service
(0..41] bits for .01s since $EPOCH (697y span)
(41..54] bits for sequence (4096)
(54..64] bits for hostid (1024 hosts)
for up to
419_430_400 = 1024*100*4096
ids per second
Original
source:
https://github.com/twitter-archive/snowflake/tree/snowflake-2010
tldr
[0..41] bits for timestamp
(41..x] bits for hostid
(x..64) bits for sequence
Reference in New Issue
View Git Blame
Copy Permalink
Description
No description provided
Readme
23
KiB
Languages
Go
100%