ifixkart-admin/docs/architecture/capacity-planning.md
Adithiyan bbd3a3e959 feat: initial commit — full platform snapshot
- Backend: FastAPI app with all models, services, schemas, routes
- Admin Panel: Next.js dashboard with all modules
  (CRM, POS, repairs, warranties, billing, notifications, etc.)
- Ecommerce: storefront (submodule) + product catalog
- AI Agents: .agents/ skill library for Antigravity IDE
- Docs: architecture, billing, notification gateway markdown
- Submodules: Backend/OpenWA, Ecommerce/File 2/storefront
2026-10-13 12:59:47 +05:30

1.5 KiB

Capacity Planning & Performance Target Specifications

Workload Assumptions & Targets

  • Catalog Capacity Target: 50,000,000 Products / SKUs.
  • Daily Customer Volume Target: 100,000+ Active Customers / Day.
  • Peak Traffic Assumptions:
    • Peak API Request Rate: 5,000 requests / sec.
    • Peak Search Request Rate: 2,000 searches / sec.
    • Peak Order Creation Rate: 100 orders / sec.

Latency & SLAs

Operation Target P95 Latency Target P99 Latency System Responsible
Product Detail Lookup < 50\text{ ms} < 100\text{ ms} Redis Cache / MySQL
Catalog Search & Filtering < 80\text{ ms} < 150\text{ ms} OpenSearch Cluster
Cart Operations < 40\text{ ms} < 80\text{ ms} Redis / FastAPI
Checkout Creation < 200\text{ ms} < 400\text{ ms} MySQL Transaction
Payment Signature Verification < 150\text{ ms} < 300\text{ ms} FastAPI Payment Engine
Offline POS Billing < 30\text{ ms} < 50\text{ ms} Tauri + SQLite
POS Sync Ingestion < 100\text{ ms} < 250\text{ ms} POS Sync Gateway

Resource Estimates (Stage 2 High-Traffic Baseline)

  • MySQL Database: Primary (8 vCPU, 32GB RAM) + 2 Read Replicas (8 vCPU, 32GB RAM).
  • Redis Cluster: 16GB RAM in-memory cache.
  • OpenSearch Cluster: 3 Master Nodes + 3 Data Nodes (16GB RAM each, SSD storage).
  • Celery Workers: 4 Worker Nodes executing background jobs.
  • FastAPI Web Instances: 4 Instances behind Nginx load balancer.