Skip to content

Commit 395f37a

Browse files
committed
update doc
1 parent c35a87a commit 395f37a

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

docs/utilities/batch.md

+5-3
Original file line numberDiff line numberDiff line change
@@ -480,9 +480,11 @@ used with SQS FIFO. In that case, an `UnsupportedOperationException` is thrown.
480480

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

487489

488490
=== "Example with SQS"

0 commit comments

Comments
 (0)