infra
intermediate
Serverless API (AWS Lambda)
Solution Components
Cloud Cost Estimator
Dynamic Pricing Calculator
$0 / month
Compute Resources
$ 15
Database Storage
$ 25
Load Balancer
$ 10
CDN / Bandwidth
$ 5
* Estimates vary by provider & region
%% Autogenerated serverless-aws-lambda
graph TD
classDef standard fill:#1e293b,stroke:#38bdf8,stroke-width:1px,color:#e5e7eb;
classDef c-actor fill:#1e293b,stroke:#e5e7eb,stroke-width:1px,stroke-dasharray: 5 5,color:#e5e7eb;
classDef c-compute fill:#422006,stroke:#fb923c,stroke-width:1px,color:#fed7aa;
classDef c-database fill:#064e3b,stroke:#34d399,stroke-width:1px,color:#d1fae5;
classDef c-network fill:#2e1065,stroke:#a855f7,stroke-width:1px,color:#f3e8ff;
classDef c-storage fill:#450a0a,stroke:#f87171,stroke-width:1px,color:#fee2e2;
classDef c-security fill:#450a0a,stroke:#f87171,stroke-width:1px,color:#fee2e2;
classDef c-gateway fill:#2e1065,stroke:#a855f7,stroke-width:1px,color:#f3e8ff;
classDef c-container fill:#422006,stroke:#facc15,stroke-width:1px,color:#fef9c3;
subgraph api_layer ["API Layer"]
direction TB
api_gateway["
"]
class api_gateway c-network
lambda_functions["
"]
class lambda_functions standard
end
subgraph data_layer ["Data Layer"]
direction TB
dynamodb["
"]
class dynamodb c-database
s3["
"]
class s3 c-database
end
subgraph ops_layer ["Operations"]
direction TB
cloudwatch["
"]
class cloudwatch c-compute
cognito["
"]
class cognito c-compute
end
%% Orphans
clients["
"]
class clients c-actor
%% Edges
clients -.-> api_gateway
api_gateway -.-> lambda_functions
lambda_functions -.-> dynamodb
lambda_functions -.-> s3
cloudwatch -.-> lambda_functions
cognito -.-> api_gateway
API GatewaygatewayREST/HTTP API
Lambda FunctionsfunctionNode.js / Python handlers
DynamoDBdatabaseNoSQL database
S3 BucketsdatabaseObject storage
CloudWatchserviceLogs & metrics
CognitoserviceUser authentication
API ClientsactorMobile/Web apps
Serverless API (AWS Lambda)
Serverless architecture on AWS using Lambda functions for compute, API Gateway for HTTP routing, DynamoDB for NoSQL storage, and S3 for object storage.
This pattern eliminates server management, provides automatic scaling, and follows a pay-per-use pricing model. Ideal for event-driven workloads and APIs with variable traffic patterns.
Tech Stack
| Component | Technology |
|---|---|
| Compute | AWS Lambda |
| Api | API Gateway |
| Database | DynamoDB |
| Storage | S3 |
| Monitoring | CloudWatch |