The Real Bill: How Much Serverless Costs...
AWSChi phí

The Real Bill: How Much Serverless Costs, and Where It Saves

Opening the real bill of this very product. Cost Explorer shows that building and testing across the whole series cost essentially nothing, because serverless doesn't charge while idle and usage stays inside the free tier. We walk through the pricing model service by service, and point out where design choices in the series cut cost.

K
KaiMay 26, 2026· 22 views
CI/CD: Automating Build and Canary Deplo...
AWSCI/CD

CI/CD: Automating Build and Canary Deploy With Rollback

Throughout the series we deployed by typing sam deploy by hand. This article builds CI/CD: a GitHub Actions workflow that builds and validates the template on every push, and deploys safely with canary via CodeDeploy, shifting traffic gradually and rolling back automatically if an error alarm fires. Plus two real traps hit along the way: esbuild missing from the CI PATH, and a circular dependency between the function and the alarm.

K
KaiMay 26, 2026· 36 views
Security: IAM Least-Privilege, Throttlin...
AWSIAM

Security: IAM Least-Privilege, Throttling, and WAF

Tighten security for the product. Shrink each function's IAM to exactly the actions it needs instead of granting the whole read-write set, set throttling at API Gateway to fight abuse, discuss where to store secrets, and how to attach WAF to an HTTP API. Verify that least-privilege doesn't break functionality, and watch the system shed load when flooded.

K
KaiMay 26, 2026· 16 views
Cold Start: Measure It for Real, Then Op...
AWSHiệu năng

Cold Start: Measure It for Real, Then Optimize What's Optimizable

Back to cold start with real numbers. Force a cold start on the resolve handler to see Init Duration and the cost of the first call, then examine the ways to reduce it: more memory (also more CPU), smaller package, SnapStart, and provisioned concurrency — each has its own place, and on the test account one doesn't apply.

K
KaiMay 26, 2026· 25 views
CloudWatch: Alarms, Dashboards, and SLOs...
AWSCloudWatch

CloudWatch: Alarms, Dashboards, and SLOs for the API

With logs, traces, and metrics in place, the next step is knowing automatically when the system has a problem. Define SLOs for the API, build CloudWatch alarms that fire when errors or throttles cross a threshold, gather metrics into a dashboard, and use Logs Insights to compute indicators from structured logs. Push a real alarm into ALARM state by causing a throttle.

K
KaiMay 26, 2026· 21 views
Observability: Lambda Powertools and X-R...
AWSObservability

Observability: Lambda Powertools and X-Ray Tracing

Start operating like production by being able to see inside. Wire in Lambda Powertools for structured JSON logs and pushed metrics, enable X-Ray to trace which services a request passes through. Read a real trace showing the resolver calling DynamoDB and EventBridge as subsegments, and a log line carrying a trace id to link logs to traces.

K
KaiMay 26, 2026· 14 views
Step Functions: Orchestrating Multi-Step...
AWSKiến trúc

Step Functions: Orchestrating Multi-Step Workflows and the Saga Pattern

When a process has many steps, branches, and error handling, cramming it all into one Lambda gets messy and hard to read. Step Functions pulls the orchestration logic out into a declarative state machine. Build a link-moderation workflow (safety scan, then activate or reject), with Retry, Catch, and a direct DynamoDB call without Lambda. Covers Standard vs Express, and the saga pattern for undoing a mid-process failure.

K
KaiMay 26, 2026· 25 views