Storefront has been decoupled into micro-frontends with a dedicated commerce app and shared shell.

Read the architecture guide →

External email delivery platform used by BookWorm to submit rendered transactional emails over authenticated SMTP.

External

System Purpose & Boundary

SendGrid provides BookWorm’s external SMTP email relay boundary within the PlatformDomainv1.0.0PlatformProvides cross-cutting capabilities for recurring scheduled triggers and durable, idempotent transactional email notific...Ownerplatform-engineering-teamDiagramOpen docs domain, offloading internet mail routing, sender reputation, and downstream ISP delivery. Only Notification SystemSystemv1.0.0Notification SystemInternal platform system that consumes order commands, renders email templates, and submits messages over SMTP. Ownerplatform-engineering-teamDiagramOpen docs integrates with SendGrid at runtime to submit rendered order lifecycle emails. Owning BookWorm’s notification state, managing retry queues, and dictating order or payment status are explicitly out of scope.

Note

SendGrid acceptance confirms only that the provider accepted the SMTP submission—it does not guarantee recipient inbox delivery or confirm that the underlying business order succeeded.

Contained Capabilities

Service / AgentRole in SystemPrimary Data StoreInteraction Style (Sync / Async)
SendGrid APIServicev1.0.0SendGrid APIExternal SMTP email delivery provider used by BookWorm to submit rendered order notification emails over authenticated S...Ownerplatform-engineering-teamDiagramOpen docsExternal email delivery integration boundary accepting authenticated SMTP submissionsExternal (Provider-managed)Sync (SMTP submission)

External Interactions & Trust Boundaries

  • Sole BookWorm consumer: 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 submits rendered MIME emails over TLS-encrypted SMTP in publish environments (and uses a local test inbox during development).
  • Resilience & dead-lettering: Notification SystemSystemv1.0.0Notification SystemInternal platform system that consumes order commands, renders email templates, and submits messages over SMTP. Ownerplatform-engineering-teamDiagramOpen docs retains full ownership of 24-hour message-ID deduplication, bounded client retries, and dead-letter routing when SendGrid is unavailable or throttles requests.
  • Credential & PII boundary: API keys and sender secrets are injected strictly via runtime secret configuration; recipient addresses and message bodies are never logged in routine telemetry.

System Visualizations

System Context

Component Topology

Architecture Decisions

Architecture Decision Records (4)

Decisions that apply to this SendGrid. Search, filter by status, or sort by clicking a column.
Summary
ADR-003: Keep email delivery behind a MailKit SMTP provider boundaryAcceptedNov 1, 2026Notification submits MIME messages through MailKit over SMTP, using MailPit in development and a configured provider elsewhere without relying on SendGrid's HTTP API.
ADR-001: Keep notification ownership inside BookWormAcceptedOct 27, 2026BookWorm treats SendGrid as an external delivery provider while the Notification System owns notification state, business meaning, and delivery policy.
ADR-002: Use a durable outbox with bounded provider retriesAcceptedOct 27, 2026Notification delivery attempts are driven by durable outbox records and a bounded retry policy so provider outages do not lose work or create unbounded duplicate sends.
ADR-003: Keep SendGrid credentials and message data within the delivery boundaryAcceptedOct 27, 2026SendGrid credentials are runtime secrets, while email addresses and message content are restricted to the components that require them for delivery and support.
  • 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 transactional order emails.
  • Notification SystemSystemv1.0.0Notification SystemInternal platform system that consumes order commands, renders email templates, and submits messages over SMTP. Ownerplatform-engineering-teamDiagramOpen docs — Internal email rendering and retry boundary.
  • 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 integration details and credential practices.
  • domains/bookworm/subdomains/platform/engineering/platform-integration-boundaries — Platform external integration boundaries.