concept
Production platform architecture
The capstone integrates the bookstore lessons into one architecture. A customer reads a catalog and places an order. The API can scale independently of the order ledger, but an order must be committed exactly once for a given request key. Use a Deployment for stateless API replicas, a single-replica StatefulSet for the toy ledger with its own PVC, and a bounded Job for reconciliation. The single ledger is deliberately a single point of failure: it demonstrates persistence and recovery, not a highly available database. For real production, a replicated or managed database with verified consistency and failover is a separate architecture decision.
Formal Syntax & Structure
kubernetes syntaxkubernetes
Base: service identities, ports, resource and probe settingsLocal overlay: two API replicas; LOCAL_CLASS_REVIEWManaged overlay: three API replicas; MANAGED_CLASS_REVIEWBoth: require actual storage, network and artifact evidenceWorking Example
Example Snippetkubernetes
baseline API requests: 2 × 250m = 500mrolling surge: 1 × 250m = 250m additionalpeak API requests: 750m, excluding ledger, job and system overhead