blog-2024-07-02

Monday, July 8, 2024, 10:10:12 AM Coordinated Universal Time by stefs

via PostgreSQL and UUID as primary key i stumbled upon TSID Generator, which looks interesting:

A Java library for generating Time-Sorted Unique Identifiers (TSID).
...
In summary:

  • Sorted by generation time;
  • It can be stored as an integer of 64 bits;
  • It can be stored as a string of 13 chars;
  • String format is encoded to Crockford's base32;
  • String format is URL safe, is case insensitive, and has no hyphens;
  • Shorter than UUID, ULID and KSUID.

also, from the comments: https://sqids.org/

Sqids is a small open-source library that can produce short, unique, random-looking IDs from numbers.
The best way to think about it is like a decimal-to-hexadecimal converter, but with a few extra features.

What is it good for?

Link shortening, generating unique event IDs for logging, generating IDs for products/objects on a website (like YouTube does for videos), generating short IDs for text messages, confirmation codes in emails, etc.

source


Monday, July 8, 2024, 10:09:05 AM Coordinated Universal Time by stefs

via PostgreSQL and UUID as primary key i stumbled upon TSID Generator, which looks interesting:

A Java library for generating Time-Sorted Unique Identifiers (TSID).
...
In summary:

  • Sorted by generation time;
  • It can be stored as an integer of 64 bits;
  • It can be stored as a string of 13 chars;
  • String format is encoded to Crockford's base32;
  • String format is URL safe, is case insensitive, and has no hyphens;
  • Shorter than UUID, ULID and KSUID.

also, from the comments: https://sqids.org/kotlin

source


Monday, July 8, 2024, 9:01:21 AM Coordinated Universal Time by stefs

via PostgreSQL and UUID as primary key i stumbled upon TSID Generator, which looks interesting:

A Java library for generating Time-Sorted Unique Identifiers (TSID).
...
In summary:

  • Sorted by generation time;
  • It can be stored as an integer of 64 bits;
  • It can be stored as a string of 13 chars;
  • String format is encoded to Crockford's base32;
  • String format is URL safe, is case insensitive, and has no hyphens;
  • Shorter than UUID, ULID and KSUID.

source


Saturday, July 6, 2024, 10:46:33 AM Coordinated Universal Time by stefs

via PostgreSQL and UUID as primary key i stumbled upon TSID Generator, which looks interesting:

A Java library for generating Time-Sorted Unique Identifiers (TSID).
...
In summary:

Sorted by generation time;  
It can be stored as an integer of 64 bits;  
It can be stored as a string of 13 chars;  
String format is encoded to Crockford's base32;  
String format is URL safe, is case insensitive, and has no hyphens;  
Shorter than UUID, ULID and KSUID.  

source


view