4
4

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

AWS-SDK for JavaScript(Nodejs)のリトライ

Posted at

#AWS-SDK for JavaScript(Nodejs)のリトライ

デフォルトでリトライ機能あったんだ・・・というのを知ったので自分用にメモ

##参考URL

最大リトライ回数について
タイムアウトについて

##初期化

こんな感じで書くかなぁ、というのをCloudWatchで残しておきます。

const AWS = require('aws-sdk');

const cw = AWS.CloudWatch({
  apiVersion: '2010-08-01',
  region: 'ap-northeast-1',
  maxRetries: 6,
  httpOptions: {
    timeout: 10000,
  }
})

##戒め

ドキュメント、読みましょう

4
4
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
4
4

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?