Money-saving tips for the frugal serverless developer
summary
Create billing alarms (they run ~4–8 hours late) and watch for one-line bugs that turn hundreds of Secrets Manager calls into billions and jump a bill (example: crossed a $2,000 threshold). CloudWatch often tops bills: ingest $0.50/GB, storage $0.03/GB; set retention, use structured logs, sample with Lambda Powertools, or send via Lambda extensions and block CloudWatch by IAM to avoid double-ingest. Right-size memory (every 1.8GB unlocks a 2nd CPU core), use Lambda Power Tuning, test ARM vs x86 (ARM ~25%/ms cheaper but can be much slower), prefer async or HTTP APIs over sync Lambda→Lambda, and choose services (Kinesis, ALB, Momento) by their cost dimensions.
AI-written summary · about
