# High Scale Ecommerce

> Playbook for building a High-Scale E-Commerce platform.

- Skill: `j4flmao/high-scale-ecommerce` (Agent Skill)
- Install (CLI): `npx skillmds@latest add j4flmao/high-scale-ecommerce`
- Raw SKILL.md: https://api.skillmd.com/api/skills/j4flmao/high-scale-ecommerce/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: j4flmao (https://skillmd.com/u/j4flmao)
- Updated: 2026-09-21
- Page: https://skillmd.com/skills/j4flmao/high-scale-ecommerce

---


# High-Scale E-Commerce Playbook

**AUTHORITATIVE. DENSE. MẠNH.**

## 1. Core Architecture
- **Programmatic SEO**: Edge-rendered, dynamically generated product pages for max indexability.
- **Headless Checkout**: API-first, decoupled payment flow. Sub-second latency.
- **Database Sharding**: Write-heavy order flows distributed across physical shards. Zero single point of failure.

## 2. System Flow

```mermaid
%%{init: {"theme": "default", "flowchart": {"useMaxWidth": true}}}%%
flowchart TD
    SEO[Organic SEO Traffic] --> CDN[Edge CDN / WAF]
    CDN --> LB[Load Balancer]
    LB --> FE[Headless Frontend]
    FE --> CO[Checkout Service API]
    CO --> S1[(DB Shard 1)]
    CO --> S2[(DB Shard 2)]
    CO --> S3[(DB Shard 3)]
```

## 3. Infrastructure (Kubernetes)

```yaml
apiVersion: apps/v1
kind: Deployment
metadata:
  name: checkout-service
spec:
  replicas: 20
  selector:
    matchLabels:
      app: checkout
  template:
    metadata:
      labels:
        app: checkout
    spec:
      containers:
      - name: checkout-app
        image: registry/checkout:latest
        resources:
          limits:
            cpu: "4"
            memory: "8Gi"
        env:
        - name: SHARDING_STRATEGY
          value: "REGION_BASED"
```

