paralleldrive / cuid

Collision-resistant ids optimized for horizontal scaling and performance.
Other
3.42k stars 123 forks source link

Question: Is there an active Java implementation? #245

Closed jmaister closed 1 year ago

jmaister commented 2 years ago

I would like to use cuid in a Java project. I've seen there is a link to a project, however, it is archived.

Is there any active Java implementation?

If not, I could implement it and keep it updated.

ericelliott commented 2 years ago

If it's not linked, I'm not aware of it.

thibaultmeyer commented 1 year ago

Hello @ericelliott @jmaister,

I've uploaded my Java implementation of the CUID compatible with Java 8 and above. You can find it in this repos: https://github.com/thibaultmeyer/cuid-java.

It would be interesting to create an organization to gather all the implementations in the same place as well as the source of the web site. "usecuid" (like the website domain) is available, could be a good name for the organization. What do you think about this idea?

ericelliott commented 1 year ago

Open a PR and reference this issue number, and I'll merge into the list of CUID ports.

Organizations cost money to maintain (GitHub Free is missing crucial features like protected branches), so unless we get funding, I'm not going to create an org unless somebody wants to guarantee funding.

thibaultmeyer commented 1 year ago

OK I will open a PR to reference this new java implementation.

EDIT: Just try on my organization (free plan), protection rule can be used (tested with "require CI success before merge" and "require a PR" rules). The use of roles defining the people/Teams allowed to write/read/only manage PR/... on each repository works very well too (like many open source projects that don't want to pay github).

EDIT 2: PR is open https://github.com/paralleldrive/cuid/pull/268

ericelliott commented 1 year ago

Merged.