go-nanoid
sonyflake
go-nanoid | sonyflake | |
---|---|---|
4 | 3 | |
422 | 3,748 | |
- | 1.7% | |
3.7 | 4.3 | |
about 1 month ago | 21 days ago | |
Go | Go | |
GNU General Public License v3.0 only | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
go-nanoid
-
snips.sh: passwordless, anonymous SSH-powered pastebin
Using jaevor/go-nanoid for those short IDs. With a ID length of 10 it'll take about ~17 years to have ~1% chance of collision.
- Which UUID package do you use? and why?
-
rs-nanoid: efficient NanoID generation in Rust
With criterion benchmarking, nanoids of length 255 average about 101ns to generate, whereas in my Go implementation they take over 470ns. I know this is just benchmarking and only nanoseconds, but it's nice to have a comparison.
- Very efficient Nano ID gen in Go
sonyflake
- A distributed unique ID generator inspired by Twitter's Snowflake
- Which UUID package do you use? and why?
-
What datatype would you use for a PK in a brand new DB?
You can avoid all these issues by using something like Snowflake ID or Sonyflake ID.
What are some alternatives?
uuid - Go package for UUIDs based on RFC 4122 and DCE 1.1: Authentication and Security Services.
traefik - The Cloud Native Application Proxy
nanoid - A tiny and fast Go unique string generator
Monoton - Highly scalable, single/multi node, sortable, predictable and incremental unique id generator with zero allocation magic on the sequential generation
uuid - A UUID package originally forked from github.com/satori/go.uuid
snips.sh - ✂️ passwordless, anonymous SSH-powered pastebin with a human-friendly TUI and web UI
sno - Compact, sortable and fast unique IDs with embedded metadata.
nanoid - A tiny (124 bytes), secure, URL-friendly, unique string ID generator for JavaScript
go-formatter - A curated list of awesome Go frameworks, libraries and software
bubbletea - A powerful little TUI framework 🏗
ksuid - K-Sortable Globally Unique IDs