Expand description
Typed identifiers for members of a Cluster.
In Hydro, a Cluster is a location that represents a group of
identical processes. Each process in a cluster is identified by a MemberId.
A MemberId<Tag, Id> has two type parameters.
Tag names the member’s cluster, so IDs from different clusters cannot be mixed up.
Id is the type of the ID itself, such as an index, an address, or a name.
You choose Id when you create the cluster (see
FlowBuilder::cluster).
Pick whatever the code that runs the cluster already uses to identify its members.
Hydro only compares, hashes, orders, clones, and sends IDs, so it works with any such type.
The deployment backend must support it (see
SupportsMemberId).