Skip to content
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

[serverless-offline-sqs] Support for maximumBatchingWindow #227

Open
tomusiaka opened this issue Oct 21, 2022 · 1 comment
Open

[serverless-offline-sqs] Support for maximumBatchingWindow #227

tomusiaka opened this issue Oct 21, 2022 · 1 comment

Comments

@tomusiaka
Copy link

Based on non-offline functionality and docu, it is possible to set maximumBatchingWindow. This sends MaximumBatchingWindowInSeconds attribute to SQS ReceiveMessage action. Offline that would be simulated using WaitTimeSeconds attribute in receiveMessage action. However, serverless-offline-sqs plugin seems to ignore that setting. Wait time is always 5 seconds, which appears to be hard-coded in the receiveMessage request.

@terozio
Copy link

terozio commented Nov 4, 2022

This makes local testing super slow if you want to do something message per message when you always need to wait before the lambda function is triggered.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants