---
title: Runtime View
summary: Representative BookWorm runtime scenarios across commerce, discovery, customer feedback, and platform operations.
owners:
  - architecture-enabling-team
badges:
  - content: Architecture
    backgroundColor: blue
    textColor: blue
---

BookWorm combines synchronous request-response interactions for browsing and commands with asynchronous event-driven coordination for post-commit work. Bounded contexts own their state and publish facts or commands across Kafka; derived views and external side effects may therefore lag while retries, idempotency, and compensation preserve eventual consistency.

## Runtime Overview

The overview distinguishes direct web and service calls from broker-mediated coordination and scheduled work.

<MermaidFileLoader file="mermaids/06-runtime-view-diagram-1.mmd" />

## Scenario Index

These scenarios cover the highest-risk runtime boundaries: cross-service checkout, derived catalog state, review compensation, AI orchestration, and external delivery. They expose both state-changing transactions and independently retryable work.

| Scenario                                                                 | Trigger                                                      | Key Building Blocks                                                                 | Primary Quality Goal                                              |
| :----------------------------------------------------------------------- | :----------------------------------------------------------- | :---------------------------------------------------------------------------------- | :---------------------------------------------------------------- |
| [[doc\|arc42/06-runtime-view/001-checkout-and-order-coordination]]       | Customer submits checkout                                    | Commerce, API Gateway, Ordering API, Basket API, Catalog API, Finance, Notification | Consistent order creation with bounded post-checkout coordination |
| [[doc\|arc42/06-runtime-view/002-catalog-search-index-maintenance]]      | Catalog write or scheduled batch trigger                     | Catalog API, PostgreSQL, Scheduler, Catalog Ingestion, Microsoft Foundry, Qdrant    | Fresh and concurrency-safe search data                            |
| [[doc\|arc42/06-runtime-view/003-feedback-and-rating-projection]]        | Feedback is created or deleted                               | Rating API, Catalog API, Kafka Broker                                               | Accurate derived ratings with recoverable invalid references      |
| [[doc\|arc42/06-runtime-view/004-conversational-book-discovery]]         | Customer submits a chat turn                                 | Storefront, Chat API, Microsoft Foundry, Presidio, MCP Tools, Rating API            | Safe, grounded, low-latency guidance                              |
| [[doc\|arc42/06-runtime-view/005-notification-delivery-and-maintenance]] | Finance publishes an email command or a scheduled job starts | Finance, Notification, Scheduler, Catalog Ingestion, Kafka Broker                   | Reliable delivery attempts and predictable maintenance            |
