When to Use (and Not Use) Java 8 Parallel Streams

preview_player
Показать описание
This video explains the circumstances when to use (and when not to use) Java 8 parallel streams.
Рекомендации по теме
Комментарии
Автор

Thanks for videos.
Just a few comments:
1. I think in one of the videos, you said that we can't use non-common ForkJoinPool for parallel streams (maybe I didn't get it right).
However, this seems not to be officially recommend. And I think this is because there are some issues with this approach.

2. Regarding when not to use Parallel Streams, per my understanding any tasks that can block shouldn't be used without managedblocker on common forkjoin poll.
And in most situations it is much easier for me to create old Executor or use CompletableFutures. Complete blocking operation and process results using streams if required. As spending time defining logic for managedblocker will take for me more time and will require more testing.

AlexeyPirogov
join shbcf.ru