From 1f95a805642f5d5ebbae7f976ea097cddbc818d3 Mon Sep 17 00:00:00 2001 From: Chris Park Date: Tue, 31 Oct 2023 09:06:22 +1030 Subject: [PATCH] DO-1562: let only one comsumer function run to throttle the load on the prerencer service recached the objects --- .../lib/recaching/prerender-recache-api-construct.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/prerender-fargate/lib/recaching/prerender-recache-api-construct.ts b/packages/prerender-fargate/lib/recaching/prerender-recache-api-construct.ts index b812174f..f197d29c 100644 --- a/packages/prerender-fargate/lib/recaching/prerender-recache-api-construct.ts +++ b/packages/prerender-fargate/lib/recaching/prerender-recache-api-construct.ts @@ -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) },