How do you keep AWS Lambda costs down?

Uses and configurations are combinations that can be problematic for some budgets. The following are some ways to keep your AWS Lambda costs down:

  • Your functions should be executed at the right frequency: You have to identify which factor can affect how frequently your Lambda functions need to trigger. Let's say you are using Kinesis as a Lambda function trigger; you can simply adjust the batch size. If the batch size is higher, then your Lambda function will execute less frequently. You have to check your triggers and see if you can reduce the number of executions.
  • Write efficient code that executes fast: If your function completes the execution in half of the time, then it will save you half of ...

Get Expert AWS Development now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.