---
title: Technical Context
summary: External-facing channels and protocols that realize the BookWorm business context.
owners:
  - architecture-enabling-team
badges:
  - content: Architecture
    backgroundColor: blue
    textColor: blue
---

This view describes only the interfaces exposed across the BookWorm system boundary. It does not show internal communication, implementation components, or infrastructure topology.

## Technical Context and Channel Diagram

<MermaidFileLoader file="mermaids/003-technical-context-diagram-1.mmd" />

## Business-to-Technical Mapping Table

| External Partner            | Business Input/Output                                                                                                                              | Technical Channel & Protocol          | Data Format                          | Auth / Security                                            | Notes / SLA                                                                                   |
| :-------------------------- | :------------------------------------------------------------------------------------------------------------------------------------------------- | :------------------------------------ | :----------------------------------- | :--------------------------------------------------------- | :-------------------------------------------------------------------------------------------- |
| **Customers**               | Submit searches, basket changes, checkout requests, questions, and reviews; receive catalog, basket, order, recommendation, and review information | HTTPS web channel, bidirectional      | HTML pages and JSON application data | Identity-provider authentication; secure sessions          | Proposed: `99.9%` availability; p95 up to `500 ms` for browse/basket and `2 s` for checkout   |
| **Store Administrators**    | Submit catalog, order, and review decisions; receive worklists and status information                                                              | HTTPS web channel, bidirectional      | HTML pages and JSON application data | Authenticated administrative session with role checks      | Uses the customer interface capacity targets; no separate administrative SLA                  |
| **Identity Provider**       | Receives sign-in requests and provides identity confirmation and user roles                                                                        | OAuth 2.0 / OpenID Connect over HTTPS | OIDC redirects and signed tokens     | Issuer, audience, signature, expiry, and role validation   | Provider availability and token lifetime follow the identity-provider tenant SLA              |
| **AI Service**              | Receives book and feedback context; provides recommendations, conversation responses, and summaries                                                | HTTPS request-response                | JSON                                 | Credential or workload authentication; encrypted transport | Proposed timeout `30 s`; `3` attempts with capped backoff; output quality is not signed off   |
| **Email Delivery Provider** | Receives order, account, and notification email content; may report delivery failures                                                              | SMTP over TLS                         | MIME email message                   | SMTP credentials or equivalent provider authentication     | Relay timeout `45 s`; transient submissions retry `3` times; inbox delivery SLA is unverified |

## Key Interface Notes

### Web channels

- Customer operations target p95 browse/basket latency of `500 ms`, checkout latency of `2 s`, p99 at most `2x` p95, and unexpected errors below `1%`.
- Apply load protection of `100` concurrent requests and `30 requests/minute per IP`; reject additional load with a clear retry message.
- Administrative activity shares the web channel but has no separate measured SLA.

### Identity and AI

- **Identity:** Microsoft Entra ID is the provider. Validate issuer, audience, signature, expiry, and role claims; allow `10 s` for sign-in or token validation. Provider downtime and token lifetime follow the provider's tenant policy.
- **AI:** Microsoft Foundry is the provider. Allow `30 s` per request, use at most `3` attempts with capped backoff, and limit requests to `20/minute per IP` and `10` requests per `30 s` per user. Unsuitable or unavailable model output must use an explicit degraded result.

### Email

- SendGrid is used in cloud environments and Mailpit in local environments.
- A relay submission times out after `45 s`; retry transient failures up to `3` times with `1 s` exponential backoff.
- Relay acceptance does not prove inbox delivery. Bounce handling and final delivery status remain unverified.

### Other channels

- No file drops, webhooks, hardware interfaces, or external message-broker integrations are defined for the current business context.
