drawio-skills

Architecture Diagram Examples

Architecture diagrams help visualize system design and component relationships.

E-Commerce Microservices Architecture

E-Commerce Microservices Architecture

Prompt:

Design a microservices e-commerce system architecture diagram with the following components:

API Gateway
├── User Service (authentication, user profiles)
├── Product Catalog Service (inventory management, product search, categories)
├── Shopping Cart Service (cart management, session handling)
├── Order Service (order processing, order history)
├── Payment Service (payment gateway, transactions)
└── Notification Service (emails, SMS, push notifications)

Infrastructure:
- API Gateway (entry point for all requests)
- Service Mesh (service-to-service communication)
- Message Queue (RabbitMQ/Kafka for async events)
- Cache Layer (Redis for session and product caching)
- Databases (PostgreSQL per service)
- CDN/Load Balancer
- Monitoring (Prometheus, Grafana)

Example File: https://github.com/bahayonghang/drawio-skills/blob/main/examples/ecommerce-microservices.drawio

Architecture Layers:

  1. Client Layer: Web and mobile clients
  2. CDN/Load Balancer: Traffic distribution
  3. API Gateway: Authentication, routing, rate limiting
  4. Microservices Layer: 6 core services
    • User Service (auth, profiles)
    • Product Catalog Service (inventory, search)
    • Shopping Cart Service (session management)
    • Order Service (order processing, history)
    • Payment Service (payment gateway, transactions)
    • Notification Service (email, SMS, push)
  5. Infrastructure Layer:
    • Service Mesh (inter-service communication)
    • Message Queue (async events)
    • Cache Layer (Redis)
  6. Data Layer: Independent databases per service
  7. Monitoring: Prometheus + Grafana

Key Design Principles:

Connection Types:

Use Cases:


AWS Serverless Architecture

Prompt:

Generate an AWS architecture diagram with Lambda, API Gateway, DynamoDB,
and S3 for a serverless REST API. Use AWS icons.

Components:

Use Cases:

GCP Microservices

Prompt:

Generate a GCP architecture diagram with Cloud Run, Cloud SQL, and
Cloud Storage for a web application. Use GCP icons.

Components:

Use Cases:

Azure Web Application

Prompt:

Generate an Azure architecture diagram with App Service, SQL Database,
and Blob Storage. Use Azure icons.

Components:

Use Cases:

Tips for Architecture Diagrams

Use Official Icons

Always mention the cloud provider and request official icons:

Show Data Flow

Indicate the direction of data flow with arrows and labels:

Organize components into logical groups:

Include Monitoring

Don’t forget observability components:

Next Steps