Linux

UUID v7 vs. v4 + Rust Programming Examples



Quick overview of UUID v7 vs. v4 with some Rust programming and various possible string encodings.

In short:
– UUID v4 is still great for when maximum entropy is needed, such as hashing salts and context-free IDs (e.g., context-free IDs for highly sensitive data).
– UUID v7 is great for database IDs, from single to distributed databases, and when a UUID with time adds value (millisecond precision).

Note on ULID: At the bit level, although developed completely independently, ULID can be seen as a precursor to UUID v7 and is very similar. The first 48 bits are designated for the time, and the rest for randomness. Thus, at the bit level, all UUID v7s are valid ULIDs, but the opposite is not true, as UUID v7 requires specific bits for the version and variant. ULID uses a different standard string serialization that employs BASE 32 to make it shorter while maintaining lexicographical ordering. This serialization is similar to the one we demonstrated in the video with base32hex.

for more production coding in Rust.

== Jeremy Chone:

– Patreon – – Any help is a big help (for Rust educational content)
– Twitter –
– Discord general-rust –
– Discord rust10x –
– Rust10x – – Rust resources for production coding.

Big thanks to CrabNebula ( for sponsoring this channel.

== Rust10x AI / OpenAI / Ollama

– Rust OpenAI API Tutorial:

– Rust Ollama Tutorial:

== Rust10x Web App production coding:

Episode 01:
Episode 02:
Episode 03:
Episode 04:
Episode 05.1:

Web Site:
GitHub:
Discord rust10x –
Patreon – – Any help is a big help (for Rust Production Coding educational content)

== Other

Other popular Rust Programming videos:

– Rust Web App Production Coding Blueprint –
– Rust Axum – Full Course –
– Rust Type State Builder Pattern –
– Quick Start Code Layout –
– AWESOME-APP Full Overview – Rust template for building Awesome Desktop Application:
– Tauri Quick Introduction (Desktop App wit Rust Programming):
– Rust Web App tutorials series:
– Rust Bevy Full Tutorial – Game Development with Rust:
– Rust for Java Developers series:

Playlists:

– Rust AI Programming Series:
– Rust Web App Production Coding Series:
– Rust For Desktop App:
– Everything Rust Programming – Tutorials, Courses, Tips, Examples:
– Rust Programming for Web Development:
– Rust Courses:
– Rust for Java Developers:

Rust10x – Coding Resources for Production Coding in Rust. ➜

Other notes:

– ScreenBrush for the green lines. (Gromit seems to be the equivalent on Linux)
– Sketchapp for some graphics.
– Davinci Resolve and Fusion video editing.
– VSCode with Google Material icon themes (with some customization)

[ad_2]

source

Related Articles

Leave a Reply

Your email address will not be published. Required fields are marked *

Back to top button