← InfraDraft

Fintech & Commerce

Design Amazon (Cart and Checkout systems)

An e-commerce cart and checkout flow coordinating inventory reservation, pricing, and payment as a single reliable distributed transaction.

Open and Simulate this Architecture in InfraDraft

Core Architectural Components

Shopping Cart Service

Session-based, persistent cart state synced across devices.

Inventory Reservation Service

Holds stock for a cart item so it can't be sold out from under the buyer at checkout.

Pricing & Promotions Engine

Applies discounts, coupons, and dynamic pricing at checkout time.

Checkout Orchestration Service

A saga/workflow coordinating inventory, pricing, and payment as one logical transaction.

Payment Processing Integration

Authorizes and captures payment as part of the checkout saga.

Order Management Service

Owns the order record once checkout succeeds, driving fulfillment.

Tax & Shipping Calculation Service

Computes final line-item costs before the charge is authorized.