https://github.com/rogusdev/sequential-id-generator
https://github.com/rogusdev/sequential-id-generator
Last synced: 8 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/rogusdev/sequential-id-generator
- Owner: rogusdev
- License: mit
- Created: 2023-09-15T01:44:28.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-09-23T04:43:53.000Z (over 2 years ago)
- Last Synced: 2025-08-23T08:22:34.086Z (8 months ago)
- Language: Rust
- Size: 17.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# sequential-id-generator
A service to generate ids on request, and keep them alive, for distributing across clients -- ideally as process ids used in generating unique ids inside those clients (ala uuid machine id), etc
4 config env vars:
- "PORT" -- default 3000
- "MAX" -- default 65535
- "MIN" -- default 1
- "TIMEOUT" -- default 2000
It's a very straightforward rust project, all the basics get you started with the code:
cargo run
cargo test
curl localhost:3000/next
curl localhost:3000/heartbeat/1