Please tell me the difference between Step Functions' optimized integrations and AWS SDK integrations

Please tell me the difference between Step Functions' optimized integrations and AWS SDK integrations

2025.11.26

日本語版はこちら

The issue

I am conducting verification to execute Lambda from Step Functions.
In the Step Functions workflow studio settings, I can choose between optimized integrations and AWS SDK integrations, but I would like to know what differences there are between them.

The solution

Please check the differences between each integration in the following AWS official documentation.
Integrating optimized services with Step Functions - AWS Step Functions

The main differences include the following points:

  • Whether job execution is supported
  • Whether callback tasks are supported

There are also differences by service beyond the above, so please check the differences for each service from the links to each service listed in the above documentation.

Example with Lambda

For example, the main features of optimized integration in Lambda are as follows.
Invoke an AWS Lambda function with Step Functions - AWS Step Functions

  • The Payload field of the response is parsed from escaped Json to Json.
  • If an exception is raised within the Lambda function, the Task will fail.

As a specific example, let's compare the case where Lambda returns a JSON format response like the following.

return {
    key1: "value1",
    key2: "value2",
};

With optimized integration and AWS SDK integration, the above JSON is obtained as the following results.

  • Optimized integration
{
  "key1": "value1",
  "key2": "value2"
}
  • AWS SDK integration
"{\"key1\":\"value1\",\"key2\":\"value2\"}"

When Lambda returns a JSON format response, optimized integration obtains it in JSON format, while AWS SDK integration obtains it as a string.
Since the data acquisition format differs, subsequent processing will also change, so please consider which integration to use after understanding the differences for each service.

References

この記事をシェアする

FacebookHatena blogX

関連記事