0
1

StepFunctionsのHTTP Endpoint Call third-party APIを諦めた話

Posted at

はじめに

Step Functions + LambdaでAPIからデータ収集していたものを、HTTP Endpoint Call third-party APIを使ってStep Functionsのみで実装しようとしたけど諦めた話。

結論

HTTP Endpoint Call third-party APIを利用する際には、タイムアウトが最大5秒までしか対応しておらず、今回利用するAPIはレスポンスに5秒以上かかることがよくあるためLambdaでAPIを実行することにした。

どういうことか

HTTP Endpoint Call third-party APIを使う際には、EventBridge Connectionを介してAPI接続することとなる。

EventBridge Connectionのコンソールにわかりやすい下記の図がある。
image.png

このEventBridge Connectionが5秒以上のレスポンスには対応していない。
※デフォルト設定だと185回までリトライされてしまうので、注意が必要。
image.png

0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1