Skip to content

Twitter的分布式全局唯一ID算法,雪花(snowflake)算法。支持.NET Core 2.0。Twitter's snowflake for .net core

License

Notifications You must be signed in to change notification settings

onlymere/snowflake-net

 
 

Repository files navigation

Snowflake.Net

Latest version

Usage

var worker = new IdWorker(1, 1);
long id = worker.NextId();

IdWorker should be instantiated once.Otherwise,there will be repeat.

A port of Twitter's Snowflake algorithm to C#.

Snowflake is a service for generating unique ID numbers at high scale.

License

Apache 2.0

About

Twitter的分布式全局唯一ID算法,雪花(snowflake)算法。支持.NET Core 2.0。Twitter's snowflake for .net core

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 100.0%