Skip to content

rvhuang/snowflake-lite

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Snowflake-Lite .NET

Overview

This is a lightweight implementation of Twitter's Snowflake algorithm on .NET platform. The library consists of only one class IdFactory, which is pretty much equal to IdWorker. However, there are still few main differences:

  • When generating new ID, the IdFactory class employs spin lock instead of mutex to have faster performance.
  • The default constructor of IdFactory class will extract local IP addresses as its worker ID and data center ID.
  • Codes and exception messages are adjusted to follow C# coding conventions.

About

A lightweight implementation of Twitter's Snowflake algorithm.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages