From AWS docs here about SQS event source mapping :
"Batch window
The maximum amount of time to gather records before invoking the function, in seconds.
This applies only to standard queues.
If you're using a batch window greater than 0 seconds, you must account for the increased processing time in your queue's visibility timeout.
We recommend setting your queue's visibility timeout to six times your function timeout, plus the value of MaximumBatchingWindowInSeconds."
However here the visibility timeout is explicitly set to the same value as the function timeout.
I couldn't find if those values were the same on purpose or not, should the visibility timeout be exposed to the user or internally set to the value advised by AWS docs?
From AWS docs here about SQS event source mapping :
"Batch window
The maximum amount of time to gather records before invoking the function, in seconds.
This applies only to standard queues.
If you're using a batch window greater than 0 seconds, you must account for the increased processing time in your queue's visibility timeout.
We recommend setting your queue's visibility timeout to six times your function timeout, plus the value of MaximumBatchingWindowInSeconds."
However here the visibility timeout is explicitly set to the same value as the function timeout.
I couldn't find if those values were the same on purpose or not, should the visibility timeout be exposed to the user or internally set to the value advised by AWS docs?