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

Read the architecture guide →

ADR-BW-005: Use Kafka for configured asynchronous integration

Retain the shared Wolverine Kafka integration for asynchronous cross-capability messages where a broker is configured.

November 7, 2026Proposed
FieldValue
StatusProposed
Date2026-11-07
OwnersPlatform Engineering TeamTeamPlatform Engineering TeamPlatform team providing BookWorm's thinnest viable platform—orchestration, messaging fabric, scheduling, notifications, ...Open docs
Affected ResourcesBookWormDomainv1.0.0BookWormCore e-commerce domain for the BookWorm online bookstore, coordinating catalog discovery, customer baskets, order fulfil...Ownerarchitecture-enabling-teamDiagramRepositoryOpen docs
Related ADRsADR-BW-008: Persist configured broker handoffs with local inboxes and outboxesDecision Recordv1.0.0ADR-BW-008: Persist configured broker handoffs with local inboxes and outboxesUse the shared event framework's per-service durable message storage without claiming exactly-once business effects.Ownerplatform-engineering-teamOpen docs, ADR-BW-010: Preserve message identity and cross-boundary correlationDecision Recordv1.0.0ADR-BW-010: Preserve message identity and cross-boundary correlationCarry stable integration identity and request context for routing and diagnosis without using correlation fields as auth...Ownerplatform-engineering-teamOpen docs, ADR-003: Integrate through Kafka contracts correlated by Order IDDecision Recordv1.0.0ADR-003: Integrate through Kafka contracts correlated by Order IDFinance exchanges environment-scoped integration messages through Kafka and partitions messages exposing OrderId by that...Ownercommerce-fulfillment-teamOpen docs, ADR-001: Consume order notification commands through KafkaDecision Recordv1.0.0ADR-001: Consume order notification commands through KafkaNotification consumes Finance order commands through Wolverine and Kafka, keeping email processing outside the business ...Ownerplatform-engineering-teamOpen docs

Context & Problem Statement

BookWorm coordinates checkout, basket cleanup, email delivery, rating projection, and scheduled vector indexing across independent services. Executing these follow-up steps synchronously would inflate user-facing latency and couple service availability. BookWorm needs one standard asynchronous integration backbone for decoupled workflows while allowing purely interactive services (like Chat APIServicev1.0.0Chat APIInternal HTTP host for BookWorm's interactive multi-agent chat workflow, agent discovery, and session persistence. Ownerai-capabilities-teamDiagramRepositoryOpen docs) to opt out.

Decision Drivers

  • Temporal decoupling: Keep user-facing writes fast and resilient to downstream downtime.
  • Standardized operations: Use uniform topic naming, retry policies, and dead-letter queues.
  • Explicit contract ownership: Let each publisher define its integration event or command schema.

Options Considered

OptionProsCons
Shared Kafka backbone (WolverineFx) for async servicesIndependent scaling, durable logs, replayability, and per-service DLQsRequires broker monitoring, lag alerting, and DLQ replay procedures
Synchronous HTTP chains for follow-up workImmediate success/failure feedbackDownstream outages block checkout and review submissions
Per-service broker choiceTailored to individual workloadsFragments operational tooling, monitoring, and retry semantics
Shared-database pollingNo separate broker requiredViolates service data ownership and adds polling load

Decision & Consequences

Chosen Option: Use Kafka (via WolverineFx) as the standard asynchronous integration backbone across event-driven services, with bounded retries and per-service dead-letter queues. Purely synchronous or interactive services (such as Chat APIServicev1.0.0Chat APIInternal HTTP host for BookWorm's interactive multi-agent chat workflow, agent discovery, and session persistence. Ownerai-capabilities-teamDiagramRepositoryOpen docs and MCP ServerServicev1.0.0MCP ServerInternal stateless Streamable HTTP MCP service that exposes read-only Catalog lookup tools and reusable AI prompts. PublishesListBooksGrpc, GetBookDetailsGrpc +2Ownerai-capabilities-teamDiagramRepositoryOpen docs) intentionally omit broker integration.

  • Positive: Publishers and consumers evolve and scale independently; failed deliveries route cleanly to service-owned DLQs.
  • Negative: Operators must monitor consumer lag and maintain DLQ replay procedures.

Compliance Criteria

  • Asynchronous cross-service events and commands must use configured Kafka channels following BookWorm’s environment-prefixed naming convention.
  • Every Kafka consumer must configure bounded retries and a dedicated dead-letter queue.
  • Services without asynchronous integration needs must not register unnecessary broker dependencies.