container
Cart Database

Cart Database

PostgreSQL database that is the system of record for shopping carts and their items.

Databasepostgres@16Residency: eu-west-1Retention: 90dAccess Mode: readWrite

What is this?

The Cart Database is the authoritative store for shopping carts at Acme Inc. The Cart APICart APIServicev1.0.0The public-facing API for shopping carts. Handles commands to add and remove items and to check out, and publishes an ev...Publishescart-checked-out, calculate-discountSubscribesadd-item-to-cart, remove-item-from-cart +1APIsOpenAPIOwnershopping-platformMapRepoView docs reads from and writes to it as customers add, remove and check out items.

What does it store?

  • Carts — one row per cart: id, customer, status and timestamps.
  • Cart Items — one row per item in a cart: product, quantity and unit price.

Schema

Retention

Carts are transient. Abandoned carts are pruned after 90 days (see frontmatter). A checked-out cart’s contents live on in the Cart Checked OutCart Checked OutEventv1.0.0Published when a customer has checked out their cart. Ownershopping-platformSchemaMapView docs event and downstream order records.