https://github.com/anuragsoni/id_gen
Generate 128 bit k-ordered unique ids (read time-ordered lexically)
https://github.com/anuragsoni/id_gen
elixir id-generation snowflake
Last synced: 9 months ago
JSON representation
Generate 128 bit k-ordered unique ids (read time-ordered lexically)
- Host: GitHub
- URL: https://github.com/anuragsoni/id_gen
- Owner: anuragsoni
- Created: 2018-01-15T03:59:50.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-01-16T12:22:30.000Z (over 8 years ago)
- Last Synced: 2025-09-23T05:55:03.504Z (9 months ago)
- Topics: elixir, id-generation, snowflake
- Language: Elixir
- Homepage:
- Size: 14.6 KB
- Stars: 9
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# IdGen
Generates 128 bit k-ordered ids. Exploring elixir, by translating Boundary's flake id generator
Example usage:
```elixir
IdGen.generate_id(5, :url_encoded)
["AAABYP0ajwncqQSR50IAAA==", "AAABYP0ajxHcqQSR50IAAA==",
"AAABYP0ajxHcqQSR50IAAQ==", "AAABYP0ajxHcqQSR50IAAg==",
"AAABYP0ajxHcqQSR50IAAw=="]
```