Skip to content

Commit

Permalink
update doc
Browse files Browse the repository at this point in the history
  • Loading branch information
jeromevdl committed Jun 26, 2024
1 parent 9438151 commit 1e55a9b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/utilities/batch.md
Original file line number Diff line number Diff line change
Expand Up @@ -472,15 +472,15 @@ instead of `BatchMessageHandler#processBatch()`. Partial batch failure works the
in parallel rather than sequentially.

This feature is available for SQS, Kinesis and DynamoDB Streams but cannot be
used with SQS FIFO. In that case, items will be processed sequentially, even with the `processBatchInParallel` method.
used with SQS FIFO. In that case, an `UnsupportedOperationException` is thrown.

!!! warning
Note that parallel processing is not always better than sequential processing,
and you should benchmark your code to determine the best approach for your use case.

!!! info
To get more threads available (more vCPUs), you need to increase the amount of memory allocated to your Lambda function.
While the exact vCPU allocation isn't published, from observing common patterns customers see an allocation of one vCPU per 1024 MB of memory.


=== "Example with SQS"

Expand Down

0 comments on commit 1e55a9b

Please sign in to comment.