---
title: Whitebox Overall System
summary: Level-1 decomposition of BookWorm into its top-level business capabilities and shared foundation.
owners:
  - architecture-enabling-team
badges:
  - content: Architecture
    backgroundColor: blue
    textColor: blue
---

## Overview Diagram

The white-box view groups BookWorm's applications and capability services into eight Level-1 building blocks and shows their principal dependencies. User interactions remain in the system context view; detailed internal relationships are covered at Level 2 and Level 3. The table below lists each building block and links to its catalog resources.

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

## Motivation

BookWorm is decomposed by business capability so each area can own its rules and authoritative data while collaborating through explicit contracts. The edge, shared foundation, and grouped supporting resources provide common entry and operational capabilities without becoming a shared business layer.

## Contained Building Blocks

| Building Block                 | Responsibility (Blackbox)                                                                                    | Key Interfaces / Exposed APIs                                                                                                                                                                                                              |
| :----------------------------- | :----------------------------------------------------------------------------------------------------------- | :----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Edge and Frontends**         | Provides the customer and staff experiences and the system's public entry point.                             | Customer and staff web experiences; routes requests to capability APIs.                                                                                                                                                                    |
| **[[domain\|catalog]]**        | Owns book, author, category, publisher, and pricing information and makes books discoverable.                | [[service\|catalog-api]] for catalog operations; [[service\|catalog-ingestion]] for catalog search updates; [[container\|catalog-database]], [[container\|catalog-cache]], [[container\|catalog-blob]], and [[container\|catalog-vector]]. |
| **[[domain\|shopping]]**       | Owns customer baskets before checkout and provides basket information to the purchase journey.               | [[service\|basket-api]]; [[container\|basket-database]].                                                                                                                                                                                   |
| **[[domain\|ordering]]**       | Owns accepted orders, purchase details, and official order status.                                           | [[service\|order-api]]; checkout coordination with [[service\|order-orchestration]]; [[container\|order-database]].                                                                                                                        |
| **[[domain\|reviews]]**        | Owns customer feedback and provides review information for bookstore experiences.                            | [[service\|rating-api]]; [[container\|rating-database]].                                                                                                                                                                                   |
| **[[domain\|conversational]]** | Provides guided book discovery and store assistance using catalog and review information.                    | [[service\|chat-api]] and [[service\|mcp-server]]; [[container\|chat-session-blob]].                                                                                                                                                       |
| **[[domain\|platform]]**       | Provides scheduled work and transactional email capabilities for the bookstore.                              | [[service\|scheduler-service]] and [[service\|notification-api]]; [[container\|scheduler-database]].                                                                                                                                       |
| **Shared Foundation**          | Supplies shared hosting, diagnostics, resilience, and integration capabilities without owning business data. | Shared libraries and hosting integrations used by the capability blocks.                                                                                                                                                                   |

## Important Interfaces

- Capability blocks exchange information through owned, versioned HTTP and gRPC contracts or asynchronous event contracts; compatibility is verified before changes are released.
- Each capability remains authoritative for its own business data. Other blocks obtain information through its interfaces rather than accessing its stores directly.
- See [[doc\|arc42/08-crosscutting-concepts/002-contracts-and-messaging]] for contract and messaging conventions, and [[doc\|arc42/06-runtime-view]] for interaction sequences.

## Related Views

- [[doc\|arc42/05-building-block-view/002-level-2]] — Internal services and stores within each capability.
- [[doc\|arc42/05-building-block-view/003-level-3]] — Detailed decomposition of checkout orchestration.
- [[doc\|arc42/07-deployment-view]] — Deployment and infrastructure placement.
