Notification Dead Letter Queue
Kafka dead-letter topic owned by the platform team that captures order notification commands that Notification API could not deliver.
Purpose & Scope
This dead-letter channel captures order lifecycle email commands that 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 failed to process. Records land here after bounded SMTP/MailKit retries and listener cooldowns are exhausted, or immediately upon template/deserialization failures.
DLQ Profile
| Property | Value |
|---|---|
| Owning Service | 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 |
| Address Pattern | bookworm.{env}.notification.dead-letter-queue |
| Upstream Source Channels | Order Placement Command ChannelChannelv1.0.0Order Placement Command ChannelShared Kafka topic owned by the contributor team carrying Finance order placement commands to Basket API for cleanup and...Ownercommerce-fulfillment-teamOpen docs, Order Completion Command ChannelChannelv1.0.0Order Completion Command ChannelKafka topic owned by the contributor team carrying Finance order-completion commands consumed by Notification API to sen...Ownercommerce-fulfillment-teamOpen docs, Order Cancellation Command ChannelChannelv1.0.0Order Cancellation Command ChannelKafka topic owned by the contributor team carrying Finance order-cancellation commands consumed by Notification API to s...Ownercommerce-fulfillment-teamOpen docs |
| Routing Triggers | Exhausted SMTP/provider retries or immediate poison/deserialization/rendering errors |
| Retention / Inspection Window | Governed by Kafka broker retention policy; inspect and triage before broker expiry |
| Replay Safety | Requires manual validation — check mail provider logs to avoid duplicate customer emails |
Triage & Replay Guardrails
Before replaying any record from this DLQ:
- Check 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 (mail provider) activity logs first — an SMTP timeout may have occurred after the provider already accepted the email.
- Verify that the 24-hour message-ID deduplication cache behavior is understood; replaying a newly issued command ID can send a duplicate email.
- Never replay Place orderCommandv1.0.0Place orderShared Finance order-placement command consumed by Notification to render and submit a new-order email. Ownerplatform-engineering-teamSchemaDiagramOpen docs to Order Placement Command ChannelChannelv1.0.0Order Placement Command ChannelShared Kafka topic owned by the contributor team carrying Finance order placement commands to Basket API for cleanup and...Ownercommerce-fulfillment-teamOpen docs to recover email alone, as Basket APIServicev1.0.0Basket APIInternal HTTP and gRPC service for managing customer-scoped shopping baskets, Catalog price enrichment, and post-checkou...PublishesGetBookGrpc, GetBooksGrpc +2SubscribesCreateBasket, UpdateBasket +4APIsOpenAPI, AsyncAPIOwnercommerce-fulfillment-teamDiagramRepositoryOpen docs also consumes that topic.
- Keep customer names and email addresses out of incident notes; correlate using
orderIdand message IDs only.
Follow the operational triage procedures in Incident Triage & Health Check RunbookCustom DocIncident Triage & Health Check RunbookFirst-5-minutes triage commands and symptom-first recovery playbooks for Container Apps, passwordless RBAC, order orches...Ownerplatform-engineering-teamOpen doc.
- PII sensitivity: Dead-lettered payloads contain customer contact fields (
fullName,email). Restrict DLQ inspection access to authorized operators. - Preserved metadata: Records retain theorderIdKafka partition key and original CloudEvents metadata.
Channel Details & Visualization
Channel information
bookworm.{env}.notification.dead-letter-queue- kafka
| Parameter | Description | Options | Default |
|---|---|---|---|
| env | BookWorm deployment environment. | development, staging, production | development |