Table of Contents

Class ReplicaIdentity

Namespace
MailFathom.Application.Coordination
Assembly
MailFathom.Application.dll

Names one replica of a deployment, in the words an operator finds that process's log by.

public sealed record ReplicaIdentity : IEquatable<ReplicaIdentity>
Inheritance
ReplicaIdentity
Implements
Inherited Members

Remarks

It is what a figure only one process can answer for is reported beside, so that an operator asking the same question twice can tell whether two different answers describe two replicas or one deployment changing. A status surface that carries a per-process figure without one reports a replica as though it were the whole, which is the reading ADR 0031 says the administrative surface exists to prevent.

It names a process and never a hold, which is what separates it from WorkLeaseHolder. A lease carries both: the holder is what a conditional write is refused against, and this is what an operator reads to find the log or the trace the work is happening in. Nothing compares this value to decide anything, so a deployment whose two replicas somehow chose one identity loses a reading rather than an exclusion.

The text is the deployment's own — a host name and a process — and never anything from a message. The composition root composes it, because what names a process is the environment it is running in rather than something this layer may read.

Fields

MaximumLength

The greatest length a replica identity may have, which bounds the column it is stored in.

Properties

Value

Gets the text this replica is reported and stored under.

Methods

Create(string)

Creates an identity for one replica.

ToString()

Returns a string that represents the current object.