Skip to content

Commit

Permalink
Merge pull request #1170 from aligent/fix/DO-1562_limit_prerender_rec…
Browse files Browse the repository at this point in the history
…ache_consumer_concurrency

DO-1562: let only one comsumer function run to throttle the load on t…
  • Loading branch information
krishanthisera authored Nov 1, 2023
2 parents fdfd791 + 1f95a80 commit f83c983
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ export class PrerenderRecacheApi extends Construct {
existingProducerLambdaObj: apiHandler,
existingConsumerLambdaObj: new NodejsFunction(this, "consumer", {
timeout: Duration.seconds(60),
reservedConcurrentExecutions: 1,
}),
deployDeadLetterQueue: false,
queueProps: { visibilityTimeout: Duration.minutes(60) },
Expand Down

0 comments on commit f83c983

Please sign in to comment.