Skip to content

A gRPC service for distributed unique id generation

Notifications You must be signed in to change notification settings

sandl99/distributed-uid

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Distributed Unique ID Generation - GRPC Golang

The algorithm of Unique id generation is Snowflake. You can refer this repo to get the detail explanation for the algorithm

How to use

Firstly, we must compile this module to binary program by running this command

cd distributed-uid
go build .

We will use Docker to build a nginx as a load balancing.

docker build . -t uid:1.0
docker run -d --name uid -p 8000:8000 uid:1.0

Now, the Unique ID Generation is available on port 8000

About

A gRPC service for distributed unique id generation

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published