serverless-plugins icon indicating copy to clipboard operation
serverless-plugins copied to clipboard

[serverless-offline-sqs] Support for maximumBatchingWindow

Open tomusiaka opened this issue 3 years ago • 1 comments

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.

tomusiaka avatar Oct 21 '22 20:10 tomusiaka

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.

terozio avatar Nov 04 '22 09:11 terozio