Skip to main content

A time-based 64-bit UUID generator

Project description

A time-based 64-bit UUID generator. The basic idea behind is to provide a universally unique identifier that satisfies the following conditions:

Sort entities in chronological order

Entities given their UUIDs must be able to be sorted in chronological order without relying on additional data fields. This is why the timestamp bits occupy the most significant bits.

Suitable for distributed systems

Even if multiple identifiers are created at the exactly same time, given a particular granularity (generally a millisecond), the UUID generator must be able to provide a way to avoid collisions.

Overview

The time-based UUID consists of two components: a timestamp and a node ID.

+----------------------+--------------------+
|  48-bit (timestamp)  |  16-bit (node_id)  |
+----------------------+--------------------+

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

temporaluuid64-0.1.2.tar.gz (1.6 kB view details)

Uploaded Source

File details

Details for the file temporaluuid64-0.1.2.tar.gz.

File metadata

File hashes

Hashes for temporaluuid64-0.1.2.tar.gz
Algorithm Hash digest
SHA256 60f5af1564ec6e8c435ca40049d1ae6155fc4d9ab12697a129331af6cf9425a3
MD5 ea0906ec2ffbbf789649c776de666a5e
BLAKE2b-256 583ae78806f797589c6e9653e9f71c8ae9b174d8852a29ce4b85c19db4650b4d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page