Money-saving tips for the frugal serverless developer
summary
Set up billing alarms early—one org found a caching bug that cost ~$2,000 over two weeks before an alarm fired. Control CloudWatch: structured logs, sample debug (5–10%), and set retention because CloudWatch logs ingest costs about 3¢/GB. Push logs with Lambda extensions to avoid double-ingest. Right-size Lambda with Lambda Power Tuning and test ARM vs x86 (ARM ≈25% cheaper/ms but can be much slower); avoid synchronous lambda-to-lambda calls; use async or HTTP APIs, cache with Momento for pay-per-use.
AI-written summary · about
