Skip to content

Commit 5686305

Browse files
committed
add comment
1 parent 48fb126 commit 5686305

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

packages/pwa-kit-runtime/src/utils/ssr-server/metrics-sender.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,9 @@ export class MetricsSender {
5353
// The AWS_REGION variable is defined by the Lambda
5454
// environment.
5555
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)
5659
maxRetries: 0
5760
})
5861
}

0 commit comments

Comments
 (0)