Skip to main content

Naming Conventions

Consistent names make a system landscape easier to understand and let tooling attribute components to systems automatically. Apply them wherever interfaces or externally visible artifacts are published — deployables, message types, Kafka topics. Naming inside a single microservice is left to the team, as long as it is consistent.

This page covers only the conventions that jEAP components or tooling actually rely on. Naming of infrastructure resources (Keycloak realms/clients, database clusters, object-storage buckets, Git repositories/projects) is a platform concern and is documented with the respective platform, not here.

Glossary​

TermExampleMeaning
contextassessment, discrepancyA bounded context — typically the domain a microservice encapsulates.
agencyBITThe organization (federal office) that owns the application.
systemMySystemThe business application.
servicemysystem-assessment-serviceA single microservice.

Deployable elements​

Services, frontends and other individually deployable elements.

Standardized type ids​

Type idDescription
serviceMicroservice without a UI
uiSingle-page application
scsSelf-contained system (backend and UI)
mobileappMobile app
gatewayAPI gateway

If no standardized type fits, propose a new one to the jEAP team rather than inventing a local one.

Convention​

StatusElementConventionExampleRationale
MUSTIndividually deployable / runnable elements<system>-<context>-<typeid> — system matching [a-z]+[a-z0-9_]*, context matching [a-z]+[a-z0-9-]*, typeid from the table abovemysystem-assessment-service, mysystem-assessment-ui, mysystem-manualtask-connector-serviceAttribution to the system; the kind of component is visible in the name. The name is also used as the Spring application name — the id under which the service appears in monitoring and distributed tracing.

Message types​

Domain events​

StatusElementConventionExampleRationale
MUSTAll events (internal / external)<System><EventName> — System matching [A-Z][a-z0-9_]* is the publishing or defining system; EventName in CamelCase. System is omitted for event types published by many different systems (e.g. the framework's error-handling event).JmeDeclarationCreatedEventClear attribution to a system where possible.
MUSTEvent name<BusinessObject><VerbPastTense>[V<version>]Event — the version is added only for a new major version (see parallel change)DeclarationCreatedEvent; new major version: DeclarationCreatedV2EventUniformity; the business meaning is recognizable from the name.

Commands​

StatusElementConventionExampleRationale
MUSTAll commands (internal / external)<System><CommandName> — System matching [A-Z][a-z0-9_]* is the receiving or defining system; CommandName in CamelCase. System is omitted for framework command types used by many systems.JmeCreateDeclarationCommandClear attribution to a system where possible.
MUSTCommand name<Verb><BusinessObject>[V<version>]Command — the version is added only for a new major version (see parallel change)CreateDeclarationCommand; new major version: CreateDeclarationV2CommandUniformity; the business meaning is recognizable from the name.

Kafka topics​

Topic naming is documented with the messaging library — see jeap-messaging.

Pact participants​

The consumer/provider names jEAP registers on the Pact Broker (used by the deployment pipeline's can-i-deploy checks and by the governance service) follow {agency}-{spring.application.name}[_{apiName}], e.g. bit-declaration-scs.

Commit messages​

StatusConventionExampleRationale
MUSTThe commit message contains the issue-tracker id when one existsTASK-1234 Add buttonjEAP's deployment-log and changelog tooling extracts the id to link a deployment to its issues and to compute lead time.

PostgreSQL default schema​

jEAP configures the PostgreSQL default schema as data (not public, which is deprecated since PostgreSQL 15) — applied by jeap-spring-boot-db-migration-starter and jeap-spring-boot-postgresql-aws-starter.

See also​

  • Documenting jEAP — how jEAP documentation is written and published.
  • Using jEAP — the Maven parents and dependency management.