With the introduction of the stream API in Java 8 parallel computation became easier than ever. What can be simpler, call the .parallel() method on any stream and if possible it’ll become parallelized. However, it doesn’t mean that it is automatically a good idea.
In this post we’ll look at a classic example of parallel stream use and talk about what consequences it bears for the whole system.
Read the full article on RebelLabs: http://zeroturnaround.com/rebellabs/java-parallel-streams-are-bad-for-your-health/