Skip to content

E-Commerce Architecture

A full-featured e-commerce platform with microservices, event streaming, and API documentation tables.

# E-Commerce Platform Architecture
node id="customer" title="Customer" shape="person" {
End Users
Shoppers
}
group id="frontend" title="Client Apps" icon="https://cdn.simpleicons.org/googlechrome" {
node id="web" title="Web App" icon="https://cdn.simpleicons.org/react" shape="browser" {
Next.js SSR
TypeScript
}
node id="mobile" title="Mobile App" icon="https://cdn.simpleicons.org/flutter" shape="mobile" {
iOS & Android
Push Notifications
}
}
group id="gateway" title="API Gateway" icon="https://cdn.simpleicons.org/fastapi" {
node id="lb" title="Load Balancer" icon="https://cdn.simpleicons.org/nginx" shape="diamond" {
Traffic Distribution
SSL Termination
}
node id="auth" title="Auth Service" icon="https://cdn.simpleicons.org/auth0" shape="shield" {
OAuth 2.0
JWT Tokens
}
}
group id="services" title="Microservices" icon="https://cdn.simpleicons.org/docker" {
node id="users" title="User Service" icon="https://cdn.simpleicons.org/go" shape="hexagon" {
Profiles
Preferences
}
node id="catalog" title="Catalog Service" icon="https://cdn.simpleicons.org/rust" shape="hexagon" {
Products
Categories
}
node id="search" title="Search Engine" icon="https://cdn.simpleicons.org/elasticsearch" shape="gear" {
Full-text Search
Filters
}
}
group id="data" title="Data Layer" icon="https://cdn.simpleicons.org/databricks" {
node id="postgres" title="PostgreSQL" icon="https://cdn.simpleicons.org/postgresql" shape="cylinder" {
Users & Orders
ACID Transactions
}
node id="redis" title="Redis" icon="https://cdn.simpleicons.org/redis" shape="cylinder" {
Session Cache
Rate Limits
}
node id="eventbus" title="Event Bus" icon="https://cdn.simpleicons.org/rabbitmq" shape="hub" {
Domain Events
CQRS
}
node id="kafka" title="Kafka" icon="https://cdn.simpleicons.org/apachekafka" shape="queue" {
Event Streaming
Order Events
}
}
group id="infra" title="Infrastructure" icon="https://cdn.simpleicons.org/amazonwebservices" {
node id="k8s" title="Kubernetes" icon="https://cdn.simpleicons.org/kubernetes" shape="container" {
Orchestration
Auto-scaling
}
node id="monitoring" title="Observability" icon="https://cdn.simpleicons.org/grafana" shape="server" {
Metrics
Logging
}
node id="ci" title="CI/CD" icon="https://cdn.simpleicons.org/githubactions" shape="pipeline" {
Build & Deploy
}
}
table id="api" {
column id="users-api" title="Users API" icon="https://cdn.simpleicons.org/swagger" {
POST /auth/login
POST /auth/register
GET /users/:id
}
column id="catalog-api" title="Catalog API" icon="https://cdn.simpleicons.org/swagger" {
GET /products
GET /products/:id
GET /categories
}
column id="orders-api" title="Orders API" icon="https://cdn.simpleicons.org/swagger" {
POST /orders
GET /orders/:id
PUT /orders/:id/status
}
}
# Connections
edge from="customer" to="web" label="Browse"
edge from="customer" to="mobile" label="Shop"
edge from="web" to="lb" label="HTTPS"
edge from="mobile" to="lb" label="HTTPS"
edge from="lb" to="auth" label="Verify"
edge from="auth" to="users" label="Identity"
edge from="users" to="postgres" label="CRUD"
edge from="catalog" to="postgres" label="Read"
edge from="catalog" to="search" label="Index"
edge from="eventbus" to="kafka" label="Stream" style="animated"
edge from="lb" to="api" label="REST"
edge from="k8s" to="services" label="Orchestrate" style="dashed"
edge from="monitoring" to="services" label="Observe" style="dashed"
  • Nested groups for frontend, gateway, services, data, and infrastructure
  • All node shapes — person, browser, mobile, diamond, shield, hexagon, gear, cylinder, hub, queue, container, server, pipeline
  • Table element for API documentation
  • Edge styles — solid, dashed, and animated
  • Icons from Simple Icons CDN throughout