Skip to content

Commit

Permalink
update doc
Browse files Browse the repository at this point in the history
  • Loading branch information
jeromevdl committed Jul 2, 2024
1 parent c35a87a commit 395f37a
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions docs/utilities/batch.md
Original file line number Diff line number Diff line change
Expand Up @@ -480,9 +480,11 @@ used with SQS FIFO. In that case, an `UnsupportedOperationException` is thrown.

!!! info
To get more threads available (more vCPUs), you need to increase the amount of memory allocated to your Lambda function.
While it is technically possible to increase the number of threads using Java options or custom thread pools, it can
decrease performance when miss-used (see [here](https://www.baeldung.com/java-when-to-use-parallel-stream#fork-join-framework)
and [here](https://dzone.com/articles/be-aware-of-forkjoinpoolcommonpool) for more information) and we don't recommend it.
While it is possible to increase the number of threads using Java options or custom thread pools,
in most cases the defaults work well, and changing them is more likely to decrease performance
(see [here](https://www.baeldung.com/java-when-to-use-parallel-stream#fork-join-framework)
and [here](https://dzone.com/articles/be-aware-of-forkjoinpoolcommonpool)).
In situations where this may be useful - such as performing IO-bound work in parallel - make sure to measure before and after!


=== "Example with SQS"
Expand Down

0 comments on commit 395f37a

Please sign in to comment.