Snowflake¶
Snowflake is the compact identifier type used across the Nalix stack.
Source mapping¶
src/Nalix.Framework/Identifiers/Snowflake.cs
What it is¶
Snowflake is a 56-bit identifier that combines:
- a value portion
- a machine ID
- a
SnowflakeType
What it is used for¶
Common uses include:
- connection IDs
- worker IDs
- system-generated identifiers in server runtime code
Basic usage¶
You can also build one explicitly:
Notes¶
- machine ID is loaded from
SnowflakeOptions - generated IDs are compact and sortable enough for runtime use