boxes-and-lines E-Commerce Platform

tag Team as t Backend blue, Frontend green, Platform purple
tag Priority as p High red, Medium orange, Low gray

active-tag Team
hide priority:Low

heat Load orange

direction-lr

// --- Services ---
API Gateway t: Backend, heat: 850
  Main entry point for all requests
  Routes to **backend services**
  -routes-> UserService
  -routes-> ProductService
  -routes-> OrderService

UserService t: Backend, heat: 430
  Handles auth and profiles
  Uses `JWT` tokens for sessions
  -reads-> UserDB
  -checks-> SessionCache

ProductService t: Frontend, heat: 620, description: Product catalog and search
  Supports *full-text* search
  -queries-> ProductDB
  -invalidates-> ProductCache

OrderService t: Backend, heat: 290
  Order processing pipeline
  Validates inventory before commit
  -writes-> OrderDB
  -publishes-> OrderQueue

// --- Data Stores ---
UserDB t: Platform
ProductDB t: Platform
OrderDB t: Platform
SessionCache t: Platform
ProductCache t: Platform
OrderQueue t: Platform

// --- External ---
PaymentGateway t: Backend, description: Stripe integration

// --- Consumer ---
WebApp t: Frontend
  -> API Gateway

Admin t: Backend
  -> API Gateway

// --- Groups ---
[AWS us-east-1]
  [Compute]
    API Gateway
    UserService
    ProductService
    OrderService
  [Data]
    UserDB
    ProductDB
    OrderDB

// --- Cross-links (flat form — nodes already declared above) ---
OrderService -charges-> PaymentGateway
OrderQueue -> PaymentGateway
SessionCache <-syncs-> ProductCache p: Medium
