layouts/layer-layouts.md
GitHubLayer Layouts
Layout: Catalog of per-layer layout patterns Best for: Choosing how to arrange components within each layer of any architecture diagram
Template
Layer Layout Patterns
1 · Simple Grid — equal-width columns (2 / 3 / 4 / 5 / 6)
Web App
Mobile App
Desktop App
API Portal
CLI Tool
SDK
2 · Sub-grouped — split into titled groups with independent grids
Synchronous
REST API
GraphQL
gRPC
Asynchronous
Kafka
RabbitMQ
SQS
3 · Product Groups — dashed-border modules for multi-product layers
Product A
User Mgmt
Auth
Profile
Settings
Product B
Orders
Payments
Invoicing
Refunds
Product C
Analytics
Reports
Dashboards
Exports
4 · KPI / Metrics Row — large values with labels
99.9%
Uptime
142ms
P95 Latency
2.4M
Daily Requests
12
Microservices
3
Regions
5 · Vertical Stack — ordered steps or sequential items
1
Client sends request to API Gateway2
Gateway validates token and applies rate limiting3
Request routed to appropriate microservice4
Service processes business logic and queries database5
Response returned through gateway to client6 · Nested Zones — dashed containers for isolation boundaries
Public Subnet
ALB
NAT GW
Bastion
WAF
Private Subnet A
App Server 1
App Server 2
Worker 1
Worker 2
Private Subnet B
RDS Primary
RDS Standby
ElastiCache
S3 Endpoint
7 · Inline Pipeline — horizontal flow with arrow connectors
Source Code
→
Build
→
Unit Test
→
Integration Test
→
Staging Deploy
→
Production
8 · Mixed Width — unequal columns for primary + secondary elements
Core Database
PostgreSQL · Primary read/write store
PostgreSQL · Primary read/write store
Redis Cache
Hot data
Hot data
Search Index
Elasticsearch
Elasticsearch
Event Store
Kafka
Kafka
Data Lake
S3 + Glue · Long-term analytics storage
S3 + Glue · Long-term analytics storage
Blob Store
Files/Media
Files/Media