We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 173916e commit 1991300Copy full SHA for 1991300
packages/pwa-kit-runtime/src/utils/ssr-server/metrics-sender.js
@@ -50,7 +50,11 @@ export class MetricsSender {
50
apiVersion: '2010-08-01',
51
// The AWS_REGION variable is defined by the Lambda
52
// environment.
53
- region: process.env.AWS_REGION || 'us-east-1'
+ region: process.env.AWS_REGION || 'us-east-1',
54
+ // Setting maxRetries to 0 will prevent the SDK from retrying.
55
+ // This is necessary because under high load, there will be backpressure
56
+ // on the Lambda function, and causing severe performance issues (400-500ms latency)
57
+ maxRetries: 0
58
})
59
}
60
return this._CW
0 commit comments