-
Notifications
You must be signed in to change notification settings - Fork 4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
aws-lambda-event-sources: SQS receiveMessageWaitTime
's default value is incorrect
#24795
Comments
Yes this is confusing. But it's unclear to me what the default duration is from the CFN document while according to this document, the default value seems to be |
Yeah I'm happy to take care of it! BTW, I suspect that SQS's WDYT? |
From what I see in the CFN doc
It is unclear to me if the default is In terms of Lambda's internal SQS poller's behavior, we probably need to look up other document but I support to have a PR to update the default from |
This issue has not received a response in a while. If you want to keep this issue open, please leave a comment below and auto-close will be canceled. |
I'll submit a PR later, thanks! |
…ceiveMessageWaitTime (#26882) Currently, the document for aws_lambda_event_sources module includes the following description. https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_lambda_event_sources-readme.html#sqs > receiveMessageWaitTime: Will determine long poll duration. The default value is 20 seconds. However, from SQS perspective, the default value is 0. So, the above description is incorrect. https://docs.aws.amazon.com/AWSSimpleQueueService/latest/APIReference/API_SetQueueAttributes.html > ReceiveMessageWaitTimeSeconds – The length of time, in seconds, for which a ReceiveMessage action waits for a message to arrive. Valid values: An integer from 0 to 20 (seconds). Default: 0. Also, when we use SQS queue as Lambda's source, Lambda uses long polling regardless of the queue's ReceiveMessageWaitTimeSeconds setting. https://docs.aws.amazon.com/lambda/latest/dg/with-sqs.html#events-sqs-scaling > For standard queues, Lambda uses long polling to poll a queue until it becomes active. So, in this context, `receiveMessageWaitTime` prop for Queue construct does not affect the behavior of Lambda EventSource. To avoid confusion, this PR remove the description regarding `receiveMessageWaitTime` from document. Closes #24795 ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
|
Describe the issue
Docs for
aws-lambda-event-sources
says SQS Queue'sreceiveMessageWaitTime
property is default to 20 seconds,but according to CDK
aws-sqs
docs and CloudFormationAWS::SQS::Queue docs
, it's 0 seconds by default, not 20 seconds.Links
CDK
aws-lambda-event-sources
https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_lambda_event_sources-readme.html#sqs
CDK
aws-sqs
https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_sqs.Queue.html#receivemessagewaittime
CloudFormation
AWS::SQS::Queue
https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sqs-queue.html#aws-resource-sqs-queue-properties
The text was updated successfully, but these errors were encountered: