---
title: Building Block View Level 2
summary: Static responsibilities, interfaces, and data ownership within BookWorm's major capabilities.
owners:
  - architecture-enabling-team
badges:
  - content: Architecture
    backgroundColor: blue
    textColor: blue
---

This view opens the Level-1 capability blocks into their applications, services, and owned data stores. It describes static responsibilities and interfaces without detailing internal classes or code layers.

## Overview

Related components are grouped by the capability or concern they support, with people and external dependencies kept outside those groups. The tables below provide the complete building-block inventory.

### Commerce and Data Ownership

<LikeC4View viewId="bookwormCommerceContainers" project="deployment" />

### Discovery and Reviews

<LikeC4View viewId="bookwormAIAndPlatformContainers" project="deployment" />

### Ordering and Operations

<LikeC4View viewId="bookwormOrderingAndOperations" project="deployment" />

## Motivation

The system groups applications, services, and stores by the business capability that owns their behavior and data. This keeps changes and scaling needs localized while contracts make cross-capability dependencies explicit.

## Contained Building Blocks

| Building Block                 | Responsibility (Blackbox)                                                                                                       | Key Interfaces / Exposed APIs                                                                                                                                                                                                                                                       |
| :----------------------------- | :------------------------------------------------------------------------------------------------------------------------------ | :---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Edge and Frontends**         | Provides the public entry point and the customer and staff experiences.                                                         | Gateway routes browser requests to storefront, commerce, back-office, and capability APIs.                                                                                                                                                                                          |
| **[[domain\|catalog]]**        | Owns book, author, category, publisher, and pricing information and makes books discoverable.                                   | [[service\|catalog-api]] exposes versioned HTTP and book gRPC interfaces; [[service\|catalog-ingestion]] maintains the derived search index. Owned data: [[container\|catalog-database]], [[container\|catalog-cache]], [[container\|catalog-blob]], [[container\|catalog-vector]]. |
| **[[domain\|shopping]]**       | Owns customer baskets before checkout and provides basket information to Ordering.                                              | [[service\|basket-api]] exposes versioned HTTP and basket gRPC interfaces. Owned data: [[container\|basket-database]].                                                                                                                                                              |
| **[[domain\|ordering]]**       | Owns accepted orders, purchase details, and official order status; coordinates post-checkout work separately from order status. | [[service\|order-api]] exposes order and staff operations; [[service\|order-orchestration]] coordinates post-checkout outcomes. Owned data: [[container\|order-database]] and [[container\|order-cache]].                                                                           |
| **[[domain\|reviews]]**        | Owns customer feedback and makes review information available to bookstore experiences.                                         | [[service\|rating-api]] exposes feedback operations and an agent interface. Owned data: [[container\|rating-database]] and [[container\|rating-cache]].                                                                                                                             |
| **[[domain\|conversational]]** | Provides guided book discovery and store assistance using catalog and review information.                                       | [[service\|chat-api]] provides the customer conversation interface; [[service\|mcp-server]] provides read-only catalog tools. Conversation data is held in [[container\|chat-session-blob]].                                                                                        |
| **[[domain\|platform]]**       | Provides scheduled work and transactional email delivery for the bookstore.                                                     | [[service\|scheduler-service]] initiates scheduled work; [[service\|notification-api]] submits customer email. Owned state includes [[container\|scheduler-database]] and the order workflow's durable state.                                                                       |
| **Shared Foundation**          | Provides common hosting, identity integration, diagnostics, resilience, and privacy capabilities without owning business data.  | Shared technical libraries and hosting integrations used by applications and services.                                                                                                                                                                                              |

## Important Interfaces

- Synchronous cross-capability calls use owned, versioned HTTP or gRPC contracts; asynchronous work uses owned event and command contracts.
- Each capability remains authoritative for its own business data. Other capabilities use its interfaces rather than reading its stores directly.
- Search vectors and catalog rating summaries are derived data and may lag behind authoritative catalog and review updates.
- AI-assisted discovery and review summaries are advisory; they do not create or change baskets or orders.

## Related Views

- [[doc\|arc42/05-building-block-view/001-whitebox-overall-system]] — Level-1 capability overview.
- [[doc\|arc42/05-building-block-view/003-level-3]] — Detailed decomposition of checkout orchestration.
- [[doc\|arc42/06-runtime-view]] — Runtime interactions between building blocks.
- [[doc\|arc42/07-deployment-view]] — Deployment and infrastructure placement.
