https://github.com/chillicream/snowflake
https://github.com/chillicream/snowflake
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/chillicream/snowflake
- Owner: ChilliCream
- License: mit
- Created: 2025-06-08T21:41:58.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-06-08T23:01:03.000Z (about 1 year ago)
- Last Synced: 2025-06-08T23:19:18.154Z (about 1 year ago)
- Language: C#
- Size: 1.3 MB
- Stars: 3
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ChilliCream.Snowflake
A lock-free, high-performance, thread-safe 64-bit unique ID generator for distributed systems — inspired by [Twitter's Snowflake algorithm](https://blog.twitter.com/engineering/en_us/a/2010/announcing-snowflake.html) and refined for .NET.


---
## ✨ Features
- 🔒 Lock-free and thread-safe
- ⏱ 4096 IDs per millisecond, per machine
- 🏭 Supports up to 1024 nodes (32 datacenters × 32 machines)
- 📅 69+ years of sortable, timestamp-prefixed IDs
- ⚙️ Customizable epoch, datacenter, and machine identifiers
- 📦 Lightweight and dependency-free
---
## 📦 Install
```bash
dotnet add package ChilliCream.Snowflake