Skip to content

Commit

Permalink
up sqs max messages and lower wait time and visibility timeout on mes…
Browse files Browse the repository at this point in the history
…sages (#496)

* up sqs max messages and lower wait time and visibility timeout on messages

* waittime back to 20 sec

* revert visibility timeout
  • Loading branch information
bwagner5 authored Oct 8, 2021
1 parent a7d4a75 commit 6a22485
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/monitor/sqsevent/sqs-monitor.go
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ func (m SQSMonitor) receiveQueueMessages(qURL string) ([]*sqs.Message, error) {
aws.String(sqs.QueueAttributeNameAll),
},
QueueUrl: &qURL,
MaxNumberOfMessages: aws.Int64(5),
MaxNumberOfMessages: aws.Int64(10),
VisibilityTimeout: aws.Int64(20), // 20 seconds
WaitTimeSeconds: aws.Int64(20), // Max long polling
})
Expand Down

0 comments on commit 6a22485

Please sign in to comment.