Serverless Architecture

API Gateway, Lambda, DynamoDB: the pattern most greenfield work starts from.

Serverless Architecture: rendered example
Rendered by Gnomon from the source below. No edits.

The source

43 lines of PlantUML, and pulls in AWS icons. Copy it, or open the template inside Gnomon and render it as it is.

@startuml
!define AWSPuml https://raw.githubusercontent.com/awslabs/aws-icons-for-plantuml/main/dist
!include AWSPuml/AWSCommon.puml
!include AWSPuml/Compute/Lambda.puml
!include AWSPuml/NetworkingContentDelivery/APIGateway.puml
!include AWSPuml/Database/DynamoDB.puml
!include AWSPuml/Storage/SimpleStorageService.puml
!include AWSPuml/ApplicationIntegration/SimpleQueueService.puml
!include AWSPuml/ApplicationIntegration/SimpleNotificationService.puml
!include AWSPuml/NetworkingContentDelivery/CloudFront.puml
!include AWSPuml/SecurityIdentityCompliance/Cognito.puml

title AWS Serverless Architecture

actor User as user

CloudFront(cdn, "CloudFront", "CDN")
SimpleStorageService(staticSite, "Static Website", "S3")
Cognito(auth, "Cognito", "Auth")

APIGateway(api, "API Gateway", "REST API")
Lambda(getFunc, "GET Handler", "Node.js")
Lambda(postFunc, "POST Handler", "Node.js")
Lambda(processFunc, "Processor", "Python")

DynamoDB(dynamo, "DynamoDB", "NoSQL")
SimpleQueueService(queue, "SQS Queue", "Async Jobs")
SimpleNotificationService(notifications, "SNS", "Notifications")

user --> cdn
cdn --> staticSite
user --> auth
user --> api

api --> getFunc
api --> postFunc
getFunc --> dynamo
postFunc --> dynamo
postFunc --> queue
queue --> processFunc
processFunc --> notifications

@enduml

Render this offline

This template ships in Gnomon and renders on your machine, with no account and nothing sent to a server. The browser editor is free and needs no install.

Get GnomonOpen the browser editor

Others in AWS architecture diagrams