Skip to content

Togou98/DistUNQ

Folders and files

NameName
Last commit message
Last commit date

Latest commit

4b69162 · Jun 23, 2020

History

6 Commits
Mar 19, 2020
Feb 26, 2020
Jun 23, 2020

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