Architecture (Ovenfo Diagram)
Zones, services and animated flows from a YAML file.
Result
ovenfo-diagram: 1
title: Serverless order pipeline on AWS
type: architecture
direction: right
animation: particles
zones:
- { id: aws, label: AWS Cloud - us-east-1, kind: cloud }
- { id: vpc, label: VPC 10.0.0.0/16, kind: network, in: aws }
- { id: private, label: Private subnets, kind: subnet, in: vpc }
nodes:
- { id: customer, label: Customer, kind: actor }
- { id: cdn, label: CloudFront, kind: cdn, tech: Edge cache + WAF, in: aws }
- { id: api, label: API Gateway, kind: gateway, tech: REST, in: aws }
- { id: orders, label: Order service, kind: function, tech: Lambda (Java 21), in: private, status: active }
- { id: db, label: Orders DB, kind: database, tech: Aurora PostgreSQL, in: private }
- { id: cache, label: Session cache, kind: cache, tech: ElastiCache, in: private }
- { id: bus, label: Order events, kind: topic, tech: EventBridge, in: aws }
- { id: mailer, label: Notifications, kind: service, tech: SES, in: aws }
- { id: logs, label: Observability, kind: monitor, tech: CloudWatch, in: aws, status: ok }
edges:
- customer -> cdn: HTTPS
- cdn -> api
- api -> orders: invoke
- orders -> db: SQL
- orders -> cache: read-through
- orders ~> bus: OrderCreated
- bus ~> mailer: email
- { from: orders, to: logs, style: dotted, animate: pulse, label: metrics }
See the code that generates it
ovenfo-diagram: 1
title: Serverless order pipeline on AWS
type: architecture
direction: right
animation: particles
zones:
- { id: aws, label: AWS Cloud - us-east-1, kind: cloud }
- { id: vpc, label: VPC 10.0.0.0/16, kind: network, in: aws }
- { id: private, label: Private subnets, kind: subnet, in: vpc }
nodes:
- { id: customer, label: Customer, kind: actor }
- { id: cdn, label: CloudFront, kind: cdn, tech: Edge cache + WAF, in: aws }
- { id: api, label: API Gateway, kind: gateway, tech: REST, in: aws }
- { id: orders, label: Order service, kind: function, tech: Lambda (Java 21), in: private, status: active }
- { id: db, label: Orders DB, kind: database, tech: Aurora PostgreSQL, in: private }
- { id: cache, label: Session cache, kind: cache, tech: ElastiCache, in: private }
- { id: bus, label: Order events, kind: topic, tech: EventBridge, in: aws }
- { id: mailer, label: Notifications, kind: service, tech: SES, in: aws }
- { id: logs, label: Observability, kind: monitor, tech: CloudWatch, in: aws, status: ok }
edges:
- customer -> cdn: HTTPS
- cdn -> api
- api -> orders: invoke
- orders -> db: SQL
- orders -> cache: read-through
- orders ~> bus: OrderCreated
- bus ~> mailer: email
- { from: orders, to: logs, style: dotted, animate: pulse, label: metrics }