Snowflake and Simpleflake ID Generators
Created on 2021-09-16T22:49:08-05:00
Similar to CUID but easier to implement.
Snowflake
- Current timestamp
- Machine ID
- Sequence number (increment and roll over?)
- Concatenate the bits to reach desired size
Simpleflake
- Current timestamp
- A random number
- Concatenate the bits to reach desired size