Notification System
Internal platform system that consumes order commands, renders email templates, and submits messages over SMTP.
System Purpose & Boundary
The Notification System centralizes transactional email rendering and SMTP delivery handoff within the PlatformDomainv1.0.0PlatformProvides cross-cutting capabilities for recurring scheduled triggers and durable, idempotent transactional email notific...Ownerplatform-engineering-teamDiagramOpen docs domain. It consumes order lifecycle commands from Finance SystemSystemv1.0.0Finance SystemInternal BookWorm workflow system that coordinates post-checkout basket cleanup and order notifications through Durable ...Ownercommerce-fulfillment-teamDiagramOpen docs, merges supplied order and customer context into shared email templates, and submits MIME messages to the configured mail provider (SendGridSystemv1.0.0SendGridExternal email delivery platform used by BookWorm to submit rendered transactional emails over authenticated SMTP. Ownerplatform-engineering-teamDiagramOpen docs in publish environments, or a local test inbox in development). Owning order business state, tracking inbox delivery/bounces, and maintaining a relational email outbox are explicitly out of scope.
Mail-provider acceptance confirms only SMTP submission—not recipient inbox arrival or underlying order success. Calling domains retain full ownership of business state, and exhausted delivery retries route to the dead-letter Kafka topic.
Contained Capabilities
| Service / Agent | Role in System | Primary Data Store | Interaction Style (Sync / Async) |
|---|---|---|---|
| Notification APIServicev1.0.0Notification APIInternal background worker that consumes order commands from Kafka, renders MJML email templates, and submits mail over ...SubscribesPlaceOrderCommand, CancelOrderCommand +1APIsAsyncAPIOwnerplatform-engineering-teamDiagramRepositoryOpen docs | Consumes order email commands from Kafka, deduplicates by message ID, renders templates, and submits over SMTP | Redis (24-hour idempotency cache) | Async (Kafka consumer & SMTP client) |
External Interactions & Trust Boundaries
- Upstream commands: 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 from Finance SystemSystemv1.0.0Finance SystemInternal BookWorm workflow system that coordinates post-checkout basket cleanup and order notifications through Durable ...Ownercommerce-fulfillment-teamDiagramOpen docs over Kafka.
- Outbound mail provider: Submits rendered emails over authenticated SMTP to SendGridSystemv1.0.0SendGridExternal email delivery platform used by BookWorm to submit rendered transactional emails over authenticated SMTP. Ownerplatform-engineering-teamDiagramOpen docs; blank recipient addresses are skipped safely without failing.
- Credential boundary: Mail-provider credentials reside strictly in runtime secret configuration and are never logged alongside recipient addresses or message bodies.
- At-least-once handoff: Message-ID deduplication guards against duplicate Kafka deliveries within 24 hours, while Finance timeout retries that emit new message IDs may trigger an additional email. - Resilience: Transient SMTP failures trigger bounded client retries before Kafka listener cooldowns and dead-letter routing.
System Visualizations
System Context
Component Topology
Architecture Decisions
Architecture Decision Records (9)
Decisions that apply to this Notification System. Search, filter by status, or sort by clicking a column.Related Documentation
- 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 SMTP submission flow.
- User CheckoutFlowv1.0.0User CheckoutAn authenticated customer checks out a persisted basket through Ordering API; Finance coordinates asynchronous basket cl...Ownercommerce-fulfillment-teamView flowOpen docs — Checkout flow triggering order placement notifications.
- domains/bookworm/subdomains/platform/engineering/platform-integration-boundaries — Platform service and external provider boundaries.