classy_uid ¶This module contains utilities for constructing unique IDs using various algorithms.
-spec cluster_unique_tuple() -> cu_tuple().
Return a tuple similar to classy_uid:site_unique_tuple/0, but also including site id, which makes it unique within the cluster.
Cluster-unique tuples can be used to order events on the originator site, but not globally.
-spec site_unique_tuple() -> su_tuple().
Return a tuple that is unique within the site (across restarts), but is NOT unique in a cluster.
SeqTuple returned by this function consists of a number of node
restarts followed by a erlang:unique_integer.
Site-unique tuples can be used to order events within the site.