Topic And Naming Cheatsheet
Topic Format
persistent://<tenant>[_<env>]/<domain>/<InformationModelName>[_<event_purpose>]
ReqRes_<Request>_<Reply>[_<purpose>]_Request ReqRes_<Request>_<Reply>[_<purpose>]_Response
<topic>_DLQ
Every topic comes with its _DLQ, and a _Request topic with its _Response: they are created with it and never
requested on their own. No topic is created on first use; see Topics On The Klok
Broker.
Production has no environment suffix; dev and test do. A topic name never has a second suffix and never names its
reader: a reader is known by its subscription, whose name is its route id (ACM012E1_DeliveryNotice).
The purpose is optional and it is the publisher's. The solution requires it so that one datamodel serves several flows,
and each consumer reads only its own; it is set with topicPurpose() or <RouteId>.topic.purpose. When the content
belongs to one reader in another tenant, the publisher may choose that tenant's slug as the purpose, as in
PurchaseOrderV1_northwind below. See Topic Purpose.
Good Examples
persistent://acme_dev/finance/InvoiceV1_Created
persistent://acme/common/CustomerGlobalV1_Changed
persistent://acme/common/KlokLogEventV4
persistent://acme/common/CallAiResponseV1_documentation
persistent://acme/purchasing/PurchaseOrderV1_northwind
Bad Examples
persistent://acme/finance/events
persistent://acme_prod/finance/Invoice/1.0.0/Created
persistent://acme_prod/finance/SapRawIdocDump
persistent://acme/finance/InvoiceV1_created_v2
persistent://acme/finance/InvoiceV1_invoice_created
persistent://acme/finance/InvoiceV1_created_tenant-b
Route IDs
ACM001I1 Ingress route 1 in solution ACM001 (tenant short code ACM, solution 001)
ACM001P1 Processing route 1 in solution ACM001
ACM001E1 Egress route 1 in solution ACM001
Legs: I ingress, P processing, E egress, A API, S sub route, T timer.
Class Names
ACM001I1_CustomerImportOnramp
ACM001P1_CustomerValidationProcessor
ACM001E1_CustomerExportOfframp
Vault Paths
secret/<tenant>/integration/<name>/env
secret/<tenant>/application/<name>/env
secret/<tenant>/common/repo/cicd-environment-variables
secret/<tenant>/CICD_KEY
secret/<tenant>/KNOWN_HOSTS
GitLab Paths
/<tenant>/integration/domain/<domain>/<project>
/<tenant>/datamodel/public/<model>-v<n>
/<tenant>/datamodel/common/<model>-v<n>
/<tenant>/datamodel/domain/<domain>/<model>-v<n>
/<tenant>/datamodel/system/<system>/<model>-v<n>
/<tenant>/documentation/integration/domain/<domain>/<project>
/<tenant>/documentation/datamodel/<same path as the datamodel>
/<tenant>/environment/<tenant>-deploy-manifests
Rules To Remember
- Put the major version in the model name.
- Do not add a separate semver segment to the topic.
- Keep event purpose meaningful: it names a flow the publisher sets for the solution, without
_, versions or environments, and never a second suffix for a reader. - Give a shared datamodel a purpose per flow rather than letting consumers filter one topic.
- Avoid generic topic names.
- Keep tenant and domain names consistent across systems.
- Data shared between systems or domains travels as Class B or C; a Class X topic ties its readers to one system.