Notification Event Source Map
Summary
One authoritative traceability table from event documentation topic to verified source file. Every file listed exists in the reviewed repository.
Audience
Engineers, architects, QA, support and security reviewers.
Reference Content
The verified reference material for this topic is set out in the sections below.
Consumer and transport
| Topic | Source file |
|---|---|
| Hosted consumer, connection retry, exchange and queue declaration, 42 bindings, prefetch, ack and nack behavior, envelope parsing and all fallbacks | microservices/src/notification-service/Messaging/NotificationEventConsumer.cs |
| Envelope record, its 11 fields and the effective-correlation property | microservices/src/notification-service/Messaging/NotificationEventEnvelope.cs |
| Consumer registration as the only hosted service, activity-source registration | microservices/src/notification-service/Program.cs |
| Queue name, dead-letter names, prefetch, retry bounds, staleness window, per-event channel override map | microservices/src/notification-service/Application/NotificationOptions.cs |
Event mapping
| Topic | Source file |
|---|---|
| Supported-event-type list, all 42 resolver cases, template keys, audiences, channel defaults and the override helper, the four service-local payload records | microservices/src/notification-service/Application/EventNotificationResolver.cs |
| Idempotency check, staleness guard, intent execution, ledger write, audit stages, bounded delivery retry | microservices/src/notification-service/Application/NotificationDispatcher.cs |
| Retry bounds and backoff computation | microservices/src/notification-service/Application/RetryPolicy.cs |
| Dispatch activity source | microservices/src/notification-service/Application/NotificationTelemetry.cs |
| Seeded default templates for every resolver template key, and the two orphan keys | microservices/src/notification-service/Seed/DefaultTemplateSeeder.cs |
| Idempotency ledger and message entity shapes | microservices/src/notification-service/Domain/NotificationEntities.cs |
| Ledger uniqueness and index declarations | microservices/src/notification-service/Infrastructure/NotificationDbContext.cs |
Publisher stack
| Topic | Source file |
|---|---|
| Publish implementation, AMQP properties, headers, routing key, persistent delivery, non-throwing failure semantics, lazy channel reuse | microservices/src/shared-kernel/Messaging/RabbitMqEventBus.cs |
| Publish contract, both overloads | microservices/src/shared-kernel/Messaging/IEventBus.cs |
| Exchange name and connection settings | microservices/src/shared-kernel/Messaging/RabbitMqOptions.cs |
| Messaging registration and the conditional outbox-processor selection | microservices/src/shared-kernel/Extensions/MessagingExtensions.cs |
| Shared integration-event base contract | microservices/src/contracts/Events/IntegrationEvent.cs |
API and legacy surfaces
| Topic | Source file |
|---|---|
| Test dispatch and test publish hooks, metadata construction, hard-coded schema version, forced-failure header | microservices/src/notification-service/Api/NotificationEndpoints.cs |
| Legacy notification path that produces notifications without any event | Controllers/NotificationsController.cs |
Verification
| Topic | Source file |
|---|---|
| Direct and broker smoke modes, forced-failure exercise, processed-row polling in broker mode | microservices/scripts/smoke-notification.ps1 |
Classification
Verified source map.
Requires confirmation
None — every entry was confirmed to exist in the reviewed repository.
Related Articles
See Also
Keywords
- Notification database
- Source Map
- Draft database documentation
Source References
microservices/src/notification-service/Messaging/NotificationEventConsumer.csmicroservices/src/notification-service/Messaging/NotificationEventEnvelope.csmicroservices/src/notification-service/Application/EventNotificationResolver.csmicroservices/src/notification-service/Application/NotificationDispatcher.csmicroservices/src/shared-kernel/Messaging/RabbitMqEventBus.csmicroservices/src/shared-kernel/Messaging/RabbitMqOptions.csmicroservices/src/shared-kernel/Extensions/MessagingExtensions.csmicroservices/src/contracts/Events/IntegrationEvent.csmicroservices/src/notification-service/Api/NotificationEndpoints.csmicroservices/src/notification-service/Application/NotificationOptions.csmicroservices/scripts/smoke-notification.ps1
Revision Information
- Status: Draft
- Last reviewed: 2026-07-21
- Review cycle: Quarterly