Lambda Power Tuning
Lambda Power Tuning
Lambda Power Tuning helps you allocate memory to functions.
You can choose to optimize for cost, performance, or both.
It's important to understand how your application handles a burst of requests.
As all of the concurrency is not instantly available, requests might be throttled.
Lambda Power Tuning Video
W3schools.com collaborates with Amazon Web Services to deliver digital training content to our students.
How Lambda Power Tuning Works
A Step Functions State Machine executes the function supplied in memory settings.
A State Machine accepts the following parameters:
- Lambda ARN
- Number of invocations for each memory configuration
- The Lambda function's static payload
- Whether all calls should be parallel
- Cost, speed, or balanced strategy
Cost Strategy
The cost strategy will report the cheapest option.
Regardless of performance, it will generate a report.
Speed Strategy
The speed strategy will report the fastest option.
Regardless of cost, it will generate a report.
Balanced Strategy
The balanced strategy will report a balanced option based on "balancedWeight."
A balancedWeight is a number ranging from 0 to 1.
The speed strategy is 0, while the cost strategy is 1.