Skip to content

Togou98/DistUNQ

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

this package it's a simple useful distributed id generator

install

`go get install github.com/togou98/DistUNQ`

**in $GOROOT/src you can see that code files
pic

UNQ generate 64bit integer

	* 40bit length of timebit 40bits
	* 8 bit length of machine ip address last 8bits
	* 5 bit length of currency process pid%32 so it at least need 5bits
	* 11 bit length of sequence number MAX(2047) 

About

Distributed ID Generator by golang

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages