Class RouteIdFactory

Namespace: redb.Route.Core
Assembly: redb.Route.dll

Builds the id of a route that declared none with RouteId("..."): the endpoint's scheme,
its path and a deterministic UUID of the whole endpoint URI, joined with - — for example
kafka-orders-1b4e28ba-2fa1-11d2-883f-0016d3cca427.

The id is stable. The same endpoint yields the same id on every start, in every process and on
every node of a cluster, so metric series, stored checkpoints and control-bus commands keep
pointing at the same route across a restart. It holds no URI separator (a / or a :
breaks dashboard labels and metric tags) and no query string, so a secret in the URI cannot
surface in a log line; endpoints differing only in a parameter still get different ids, because
the parameters are hashed rather than shown.


The UUID is RFC 4122 version 5 (name-based, SHA-1) in the standard URL namespace over
, so anyone can recompute a route id from its URI with any
UUID library, without this code.

public static class RouteIdFactory

Inheritance

Object→RouteIdFactory

Methods

ForEndpoint(EndpointUri)

Builds the default id of a route consuming from uri.

public static string ForEndpoint(EndpointUri uri)