Skip to content

Commit

Permalink
fix: set aggregator handle buffer queue message timeout and memory pe…
Browse files Browse the repository at this point in the history
…r env set in aws console (#86)

* fix: set aggregator handle buffer queue message timeout and memory per env set in aws console

* fix: set visibility timeout for queue
  • Loading branch information
vasco-santos authored Jan 12, 2024
1 parent 01dc26c commit dd83c43
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions stacks/aggregator-stack.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,10 @@ export function AggregatorStack({ stack, app }) {
// During the deduplication interval (5 minutes), Amazon SQS treats
// messages that are sent with identical body content
contentBasedDeduplication: true,
queueName: `${bufferQueueName}.fifo`
queueName: `${bufferQueueName}.fifo`,
visibilityTimeout: Duration.minutes(2)
}
}
},
})

/**
Expand Down Expand Up @@ -190,7 +191,8 @@ export function AggregatorStack({ stack, app }) {
aggregatorBufferStoreBucket,
aggregateOfferQueue
],
timeout: '20 seconds'
timeout: '2 minutes',
memorySize: '2 GB'
},
deadLetterQueue: bufferQueueDLQ.cdk.queue,
cdk: {
Expand Down

0 comments on commit dd83c43

Please sign in to comment.