Hlc
The Hlc type is a string that represents a Hybrid Logical Clock (HLC) value.
stringHLCs are used to provide a timestamp that can be used to order events across distributed systems. The Hlc type in TinyBase is a sortable 16 character string that encodes a timestamp, a counter, and a client identifier.
- 42 bits (7 chars) for the time in milliseconds (~139 years).
- 24 bits (4 chars) for the counter (~16 million).
- 30 bits (5 chars) for a client
Idor its hash (~1 billion).
Since
v6.2.0