/snowflake-net

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

Primary LanguageC#OtherNOASSERTION

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