Order Completion Command Channel
Kafka topic owned by the contributor team carrying Finance order-completion commands consumed by Notification API to send completion emails.
Purpose & Scope
This topic transports order-completion notification commands published by 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 after Order APIServicev1.0.0Order APIAuthenticated Ordering service for Buyer profiles and the Order lifecycle, creating Orders from baskets, snapshotting pr...PublishesGetBasketGrpc, GetBookGrpc +5SubscribesCreateOrder, CompleteOrder +11APIsOpenAPI, AsyncAPI, Carrier Service LevelsOwnercommerce-fulfillment-teamDiagramRepositoryOpen docs reports that an order has completed. 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 these commands to render and submit a completion email when usable customer contact details are present. No delivery confirmation is returned to Finance, and this channel never mutates order state.
Channel Specification
| Property | Value |
|---|---|
| Bounded Context / Owner | OrderingDomainv1.0.0OrderingCreates durable Orders from a buyer's current basket, locks purchase-time pricing, and owns order lifecycle transitions ...Ownercommerce-fulfillment-teamDiagramOpen docs / Commerce Fulfillment TeamTeamCommerce Fulfillment TeamStream-Aligned team owning customer shopping baskets, checkout coordination, order lifecycle, and financial saga orchest...Open docs |
| Channel Type | Topic |
| Address Pattern | bookworm.{env}.finance.complete-order |
| Parameters | env (development, staging, production; default: development) |
| Protocol & Envelope Format | Kafka + CloudEvents JSON (application/json) |
| Partition Key & Ordering Guarantee | Keyed by orderId; preserves per-order command ordering within a partition |
| Delivery Semantics | At-least-once |
| Dead-Letter Channel | 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 |
Messages & Participants
| Message | Type | Producer | Consumer(s) | Consumer Group |
|---|---|---|---|---|
| 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 | Command | 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 | 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 | Notification service consumer |
Ordering, Retries & Failure Handling
- Partition-key ordering: Keying by
orderIdpreserves ordering for lifecycle notification commands targeting the same order. - Transient retries: 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 applies bounded SMTP client retries and Kafka listener cooldowns on transient mail-provider failures.
- Immediate DLQ routing: Malformed payloads, rendering errors, or exhausted retries 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.
- Consumer idempotency: 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 deduplicates by message ID for 24 hours; blank email addresses are skipped safely without error, and operators must 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 activity before replaying to prevent duplicate emails.
Channel Details & Visualization
Channel information
bookworm.{env}.finance.complete-order- kafka
| Parameter | Description | Options | Default |
|---|---|---|---|
| env | BookWorm deployment environment. | development, staging, production | development |
Related Documentation
- 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 — Consumer dead-letter queue
- Order Completion Event ChannelChannelv1.0.0Order Completion Event ChannelKafka topic owned by the commerce-fulfillment-team carrying Order API events when an order transitions from New to Compl...Ownercommerce-fulfillment-teamOpen docs — Upstream order completion event topic
- 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 — Paired order cancellation command topic
- 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 — Command producer
- 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 — Email consumer
- 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 — Notification delivery workflow
- Order Lifecycle and Status TransitionsFlowv1.0.0Order Lifecycle and Status TransitionsCheckout creates a New Order owned by Ordering API, Finance coordinates post-order cleanup and notifications, and explic...Ownercommerce-fulfillment-teamView flowOpen docs — End-to-end order lifecycle flow
- Contracts and MessagingCustom DocContracts and MessagingOwned APIs and events connect independently maintained BookWorm capabilities without sharing business state.Ownerplatform-engineering-teamOpen doc — Messaging standards and idempotency rules