Notification API
Internal background worker that consumes order commands from Kafka, renders MJML email templates, and submits mail over SMTP via MailKit.
Service Responsibility & Boundary
Notification API is an internal background worker within the PlatformDomainv1.0.0PlatformProvides cross-cutting capabilities for recurring scheduled triggers and durable, idempotent transactional email notific...Ownerplatform-engineering-teamDiagramOpen docs domain that consumes order lifecycle commands from Order OrchestrationServicev1.0.0Order OrchestrationMessage-driven Finance workflow service that coordinates post-checkout basket cleanup and order notifications using Dura...PublishesPlaceOrderCommand, DeleteBasketCompleteCommand +3SubscribesUserCheckedOutIntegrationEvent, OrderStatusChangedToCompleteIntegrationEvent +3APIsAsyncAPIOwnercommerce-fulfillment-teamDiagramRepositoryOpen docs over Kafka, renders MJML email templates, and submits MIME messages over SMTP to SendGrid APIServicev1.0.0SendGrid APIExternal SMTP email delivery provider used by BookWorm to submit rendered order notification emails over authenticated S...Ownerplatform-engineering-teamDiagramOpen docs (or a local test inbox in development). It owns no relational database, maintains no email outbox, and publishes no reply events—calling domains retain full ownership of business outcomes.
Service Profile
| Property | Value |
|---|---|
| Bounded Context / Domain | PlatformDomainv1.0.0PlatformProvides cross-cutting capabilities for recurring scheduled triggers and durable, idempotent transactional email notific...Ownerplatform-engineering-teamDiagramOpen docs |
| Owner Team | Platform Engineering TeamTeamPlatform Engineering TeamPlatform team providing BookWorm's thinnest viable platform—orchestration, messaging fabric, scheduling, notifications, ...Open docs |
| Runtime Style | Async Worker (Kafka Consumer & SMTP Client) |
| Public / Gateway Exposure | Internal Only (not routed via API Gateway) |
| Authentication & Authorization Policy | Internal worker; Azure Managed Identity for cache access and runtime secret configuration for SMTP credentials |
| Owned Data Store(s) | Redis (24-hour message-ID deduplication cache) — no SQL database or outbox |
| Key Resilience / Idempotency Pattern | 24-hour message-ID idempotency guard, bounded SMTP retry pipeline, Kafka listener cooldowns, and dead-letter routing on Notification Dead Letter QueueChannelv1.0.0Notification Dead Letter QueueKafka dead-letter topic owned by the platform team that captures order notification commands that Notification API could...Ownerplatform-engineering-teamOpen docs |
Contracts & Data Ownership
Notification API consumes Place orderCommandv1.0.0Place orderShared Finance order-placement command consumed by Notification to render and submit a new-order email. Ownerplatform-engineering-teamSchemaDiagramOpen docs, Send order completed notificationCommandv1.0.0Send order completed notificationShared Finance completion command consumed by Notification to render and submit a completed-order email. Ownerplatform-engineering-teamSchemaDiagramOpen docs, and Send order cancelled notificationCommandv1.0.0Send order cancelled notificationShared Finance cancellation command consumed by Notification to render and submit a canceled-order email. Ownerplatform-engineering-teamSchemaDiagramOpen docs partitioned by Order ID. Blank recipient email addresses are skipped safely without error or retry.
SMTP acceptance from the mail provider confirms only submission—not inbox arrival—and Notification does not ingest bounce or delivery webhooks. Additionally, because Order OrchestrationServicev1.0.0Order OrchestrationMessage-driven Finance workflow service that coordinates post-checkout basket cleanup and order notifications using Dura...PublishesPlaceOrderCommand, DeleteBasketCompleteCommand +3SubscribesUserCheckedOutIntegrationEvent, OrderStatusChangedToCompleteIntegrationEvent +3APIsAsyncAPIOwnercommerce-fulfillment-teamDiagramRepositoryOpen docs retries Place orderCommandv1.0.0Place orderShared Finance order-placement command consumed by Notification to render and submit a new-order email. Ownerplatform-engineering-teamSchemaDiagramOpen docs with a new message ID on basket-cleanup timeouts, retries can send an additional placement email.
Sends messages (0)
Quickly find the message you need by searching for the name, type, or summary.| Name | Version | Type | Summary | Channels |
|---|---|---|---|---|
| No messages found | ||||
Receives messages (3)
Quickly find the message you need by searching for the name, type, or summary.- PII minimization: Email credentials reside in runtime secrets, recipient metadata is redacted in structured logs, and rendered HTML bodies are never logged. - Dead-letter routing: Transient SMTP failures trigger client retries followed by Kafka listener backoff; exhausted messages route to Notification Dead Letter QueueChannelv1.0.0Notification Dead Letter QueueKafka dead-letter topic owned by the platform team that captures order notification commands that Notification API could...Ownerplatform-engineering-teamOpen docs.
Architecture Visualizations & Specifications
Notification Delivery Context
Loading graph...
Service Interactions
Attached Resources & Related Docs
- API and contracts indexCustom DocAPI and contracts indexConsolidated index of BookWorm HTTP v1, gRPC, AG-UI, MCP, A2A, and Kafka/Wolverine contracts grouped by service with aut...Ownerplatform-engineering-teamOpen doc — Consolidated service, HTTP, gRPC, and Kafka contract directory.
- SendGrid APIServicev1.0.0SendGrid APIExternal SMTP email delivery provider used by BookWorm to submit rendered order notification emails over authenticated S...Ownerplatform-engineering-teamDiagramOpen docs — External SMTP email delivery boundary.
- Order OrchestrationServicev1.0.0Order OrchestrationMessage-driven Finance workflow service that coordinates post-checkout basket cleanup and order notifications using Dura...PublishesPlaceOrderCommand, DeleteBasketCompleteCommand +3SubscribesUserCheckedOutIntegrationEvent, OrderStatusChangedToCompleteIntegrationEvent +3APIsAsyncAPIOwnercommerce-fulfillment-teamDiagramRepositoryOpen docs — Upstream Finance workflow producing order email commands.
- Notification DeliveryFlowv1.0.0Notification DeliveryFinance emits order-notification commands over Kafka; Notification API applies Redis idempotency, renders MJML email tem...Ownerplatform-engineering-teamView flowOpen docs — End-to-end notification rendering and submission flow.