Helpers to create a global registry (possibly sharded) of public identifiers such that we can go from a pair of a public identifier and a stream family to a fully qualified stream identifier (FQSI) containing a database pool, a shard ID, the stream family and a stream identifier.
From a FQSI, we have all the information required to actually find the corresponding stream.
Public identifiers could have a form such as "[shard]:[UUIDv4]" while FQSI could be "[pool name]:[shard number]:[stream family name]:[integer ID]"..
Helpers to create a global registry (possibly sharded) of public identifiers such that we can go from a pair of a public identifier and a stream family to a fully qualified stream identifier (FQSI) containing a database pool, a shard ID, the stream family and a stream identifier.
From a FQSI, we have all the information required to actually find the corresponding stream.
Public identifiers could have a form such as "[shard]:[UUIDv4]" while FQSI could be "[pool name]:[shard number]:[stream family name]:[integer ID]"..