python-ksuid
ulid
Our great sponsors
python-ksuid | ulid | |
---|---|---|
9 | 11 | |
120 | 4,108 | |
3.3% | 2.0% | |
3.3 | 4.5 | |
10 months ago | 16 days ago | |
Python | Go | |
MIT License | Apache License 2.0 |
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.
python-ksuid
- Type-safe, K-sortable, globally unique identifier inspired by Stripe IDs
-
Show r/rust: Open-Source Webhooks Service
Homepage: https://www.svix.com
-
Show HN: Svix – open-source webhooks service written in Rust
It's really fast, it makes writing secure and correct code easier, it's easier to deploy and distribute (one static binary), and it's a lot more fun. :)
Webhooks are really cool, and I absolutely love what they enable. They make the web compose-able, interconnected, and enable people to automate a lot of their work! Our goal is to make them easy, reliable, and consistent, so that more services offer them and they are easier to consume.
I'd love to hear your feedback! We've incorporated most of the comments we got the last time[0] (thanks again everyone!), and we would love to know how we can improve the product further. Got any suggestions?
Homepage: https://www.svix.com
Repo: https://github.com/svix/svix-webhooks/
Docs: https://docs.svix.com/
API reference: https://api.svix.com/
[0] https://news.ycombinator.com/item?id=26399672
-
Show HN: A Pure Rust Ksuid Implementation
I wasn't going to post it here because it feels a bit small for a show HN, but then I figured: why not. :)
It's a pure Rust implementation of Segement's KSUID, and I created this library while working on Svix[0].
I haven't written any Rust for a while, so even though I have written quite a bit of Rust code in the past (see Etebase[1]), I'm a bit rusty (no pun intended).
Anyhow, I just wanted to share, and I'm hoping to get some feedback if you have any. :)
Code and examples: https://github.com/svix/rust-ksuid/
P.S, the package is tested for compatibility against the reference Go implementation.
[0] https://www.svix.com
-
Show r/rust: a pure Rust KSUID implementation
I created this library while working on Svix. We have a highly scalable and distributed environment there, which is where KSUIDs really shine.
- Show HN: Hookdeck, an Infrastructure to Consume Webhooks
-
Give me /events, not webhooks
These reasons are exactly why we started Svix[1] (we do webhooks as a service). I wish we existed to serve you guys back when you started working on it. :)
[1] https://www.svix.com
-
Launch HN: Svix (YC W21) – Webhooks as a Service
Hey everyone, my name is Tom, and I'm the founder of Svix (https://www.svix.com) - previously known as Diahook. Svix makes it easy for developers to send webhooks from their service using a simple API. Think Twilio or SendGrid but for webhooks.
Webhooks are how servers notify each other of events, so they are a key component of many APIs such as Stripe, Shopify, Slack, Dropbox and Github.
-
Svix-KSUID - A pure-python implementation of the KSUID (K-Sortable Unique IDentifier)
Code and examples: https://github.com/svixhq/python-ksuid/
ulid
-
Nanosecond timestamp collisions are common
Our Go ULID package has millisecond precision + monotonic random bytes for disambiguation while preserving ordering within the same millisecond. https://github.com/oklog/ulid
-
Type-safe, K-sortable, globally unique identifier inspired by Stripe IDs
There is no "tests".
There is just a single test. Which only tests the decoding of a single known value. No encoding test.
Go has infrastructure for benchmarking and fuzzing. Use it!
Also, you took code from https://github.com/oklog/ulid/blob/main/ulid.go which has "Copyright 2016 The Oklog Authors" but this is not mentionned in your base32.go.
-
cmackenzie1/go-uuid: library for generating version 4 (random) and version 7 (time-ordered) UUIDs
maybe because of dependencies: https://github.com/oklog/ulid/blob/main/go.mod ??
- The most helpful Go Packages
-
UUIDs Are Bad for Database Index Performance, enter UUID7!
Universally Unique Lexicographically Sortable Identifier
-
Is it bad to use short (20 chars) random strings as primary keys?
I'm not concerned too much about the performance or the storage size at this stage. I've checked ulids before posting (more specifically https://github.com/oklog/ulid) but the only difference than a random string (especially if you use them with math.rand) is the timestamp prefix which makes them sortable, but I don't need that (users could use the internal SQLite rowid if they needed to sort by a primary key).
- UUIDs Are Popular, but Bad for Performance
-
Golang Base Project - A simple web app with user authentication
why are you using https://github.com/oklog/ulid to generate a cookie secret?
-
What are your favorite packages to use?
oklog/ulid to generate IDs. coreos/go-oidc for validating JWTs I get from auth. google/go-cmp for comparing structs in tests (unless the project is already using Testify). spf13/pflag because life's too short for Go's flag handling. getkin/kin-openapi for validating reqests/responses against my OpenAPI spec (in tests).
-
Keyset pagination using UUID v4 mongodb go
If you just want to roll with an off-the-shelf library, you can use ULID. There are tons of custom made *flake alternatives. If ULID doesn't fit your purposes, look for others.
What are some alternatives?
ksuid - K-Sortable Globally Unique IDs
nanoid - A tiny and fast Go unique string generator
Huginn - Create agents that monitor and act on your behalf. Your agents are standing by!
xid - xid is a globally unique id generator thought for the web
svix-webhooks - The enterprise-ready webhooks service 🦀
gouid - Fast, dependable universally unique ids
parsemail - Hanami fork of https://github.com/DusanKasan/parsemail
sno - Compact, sortable and fast unique IDs with embedded metadata.
stripe-sync-engine - Sync your Stripe account to you Postgres database.
Monoton - Highly scalable, single/multi node, sortable, predictable and incremental unique id generator with zero allocation magic on the sequential generation
spec - The canonical spec for ulid
goflake - A highly scalable and serverless unique ID generator for use in distributed systems. Written in GoLang. Inspired by Twitters Snowflake.