alexcasalboni / aws-lambda-power-tuning

AWS Lambda Power Tuning is an open-source tool that can help you visualize and fine-tune the memory/power configuration of Lambda functions. It runs in your own AWS account - powered by AWS Step Functions - and it supports three optimization strategies: cost, speed, and balanced.
Apache License 2.0
5.27k stars 362 forks source link

226: support for array-shaped payloads #240

Closed andrestoll closed 3 months ago

andrestoll commented 3 months ago

Addresses https://github.com/alexcasalboni/aws-lambda-power-tuning/issues/226

Checks if payload is "correctly" weighted and then creates the weighted payloads. Otherwise treated as an array-shaped payload.

Added unit tests.

Attached one weighted SFN execution and one unweighted.

Weighted payload to Lambda: image

Unweighted payload to Lambda: image weighted_execution.json unweighted_execution.json