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