Skip to content

Commit 661d1fd

Browse files
author
Alan Shaw
committedSep 24, 2024·
chore: increase batch size again
1 parent df5faed commit 661d1fd

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed
 

‎stacks/aggregator-stack.js

+5-5
Original file line numberDiff line numberDiff line change
@@ -66,11 +66,11 @@ export function AggregatorStack({ stack, app }) {
6666
// Guarantee exactly-once processing
6767
// (Note: maximum 10 batch)
6868
fifo: true,
69-
// During the deduplication interval (14 minutes), Amazon SQS treats
69+
// During the deduplication interval (15 minutes), Amazon SQS treats
7070
// messages that are sent with identical body content
7171
contentBasedDeduplication: true,
7272
queueName: `${bufferQueueName}.fifo`,
73-
visibilityTimeout: Duration.minutes(14)
73+
visibilityTimeout: Duration.minutes(15)
7474
}
7575
},
7676
})
@@ -192,15 +192,15 @@ export function AggregatorStack({ stack, app }) {
192192
aggregatorBufferStoreBucket,
193193
aggregateOfferQueue
194194
],
195-
timeout: '14 minutes',
196-
memorySize: '8 GB'
195+
timeout: '15 minutes',
196+
memorySize: '10 GB'
197197
},
198198
deadLetterQueue: bufferQueueDLQ.cdk.queue,
199199
cdk: {
200200
eventSource: {
201201
// we can reduce most buffers possible at same time to avoid large buffers to create huge congestion on the queue while being processed.
202202
// also makes fewer lambda calls and decreases overall execution time.
203-
batchSize: 2,
203+
batchSize: 10,
204204
// allow reporting partial failures
205205
reportBatchItemFailures: true,
206206
},

0 commit comments

Comments
 (0)
Please sign in to comment.