Skip to main content

Notification Consolidated Reference

Summary

A single consolidated reference for day-to-day use. Detailed treatment of each area lives in its own section; this page is the index.

Audience

Engineers, DevOps engineers, QA, support, architects and implementation partners.

Reference Content

The verified reference material for this topic is set out in the sections below.

UI routes

RouteScreenAudience
/notificationsEmployee inbox, split by audience helperEmployee and other users
/settings/notification-templatesLegacy template administrationHR administrator
/operations/notificationsNotification Center operations consoleHR administrator

Plus the header bell widget, present on every page of the client portal.

Operational endpoints

Endpoint familyPurpose
Service rootService identity, environment and correlation echo
HealthHTTP liveness only — no checks registered
StatisticsEight platform-wide counts
Failed queueMessages that exhausted retries
AuditStage trail filterable by event, correlation or message
Message and attemptsPer-message state and per-attempt history
Processed-event lookupIdempotency check for one event
RetrySynchronous re-drive of one message
Test dispatch and test publishVerification hooks with a forced-failure flag

The full endpoint catalog with methods, validation and responses is in the API section.

Configuration sections

SectionCovers
NotificationQueue name, dead-letter names, prefetch, retry, staleness, seeding, channel overrides, email and placeholder providers
RabbitMqBroker connection settings and the shared exchange name
ObservabilityOTLP endpoint, console exporter flag, and an unread Seq setting
Connection stringsOne named notification database entry
LoggingDefault and framework log levels

One environment variable controls whether migration and seeding run at startup.

Option names, defaults and effects are in configuration. No credential, host or connection value is reproduced anywhere in this documentation.

Log statements

Ten statements: six information, two warning, two error. The two that matter operationally are the consumer's bound-to-queue confirmation and its connect-failure warning. Full catalog in logging reference.

Diagnostics

Audit trail, delivery attempts, idempotency lookup, failed queue, single-message read, statistics and service information. Detail in diagnostics.

Supporting scripts and developer utilities

ArtifactPurpose
Notification smoke scriptEnd-to-end verification in direct or broker mode, with optional gateway exercise
Service request collectionA hand-maintained collection of requests against every operational endpoint, using placeholder identifiers
Swagger document and UIGenerated from mapped routes; enabled unconditionally, not gated on environment
Design-time factoryAllows migration tooling to construct the persistence context outside the host
Forced-failure flagHeader and body flag honoured by every channel sender, making failure paths reproducible

The smoke script accepts a base URL, an optional connection-string override, a mode, and optional gateway parameters. Its prerequisites are a reachable database and, in broker mode, a reachable broker.

Constant sets

Six sets are defined as string constants rather than enums: channels (4), recipient types (4), message statuses (5), delivery statuses (3), processing outcomes (7) and audit stages (13).

Key defaults

SettingDefault
Retry attempts3
Retry base delay200 ms
Backoff factor2.0
Prefetch5
Staleness window168 hours
Seed default templatesEnabled
Email providerConsole — log only
SMS and WhatsApp providersPlaceholder — simulated
Header polling interval60 seconds

Section index

Business · Technical · API · Database · Events · UI and Operations (this section).

Classification

Transitional.

Requires confirmation

Production configuration sources and whether Swagger should remain unconditional require confirmation.

See Also

Keywords

  • Notification database
  • Reference
  • Draft database documentation

Source References

  • microservices/src/notification-service/Api/NotificationEndpoints.cs
  • microservices/src/notification-service/Program.cs
  • microservices/src/notification-service/Application/NotificationOptions.cs
  • microservices/scripts/smoke-notification.ps1
  • microservices/src/notification-service/notification-service.http
  • UI/salary-ui/apps/client-hrms-portal/src/App.tsx
  • UI/salary-ui/apps/client-hrms-portal/src/components/AppLayout.tsx
  • microservices/src/notification-service/Infrastructure/NotificationDbContext.cs

Revision Information

  • Status: Draft
  • Last reviewed: 2026-07-21
  • Review cycle: Quarterly