Lambdas and streams are more than just a more elegant way to express the same functionality. One of the major enhancements is that the underlying implementation of the stream API may process streams in parallel. This enables developers to use modern multi core processors efficiently with very little programming overhead.
This talk shows how to use parallel streams to improve performance of a classical JEE server application.
---
Lambda expressions and streams are among the most important new features in Java 8. In many cases, lambda expressions enable the developer to write more concise and expressive code than with previous Java versions. Streams are a new API for applying lambda expressions to traditional data structures, like ArrayList and HashMap.
However, the combination of lambdas and streams is more than just an elegant way to express the same functionality. One of the major enhancements is the ability to process streams in parallel. Parallel stream processing enables developers to use modern multi core processors efficiently with very little programming overhead.
This talk presents Java 8 lambdas and streams, with a special focus on the parallelization features:
* How can we use the parallelization features of the new standard library?
* How can we implement our own data structures to support parallel processing?
* What are the use cases for parallel stream processing, and when is parallel processing not feasible?
* What are the technologies supporting parallel stream processing under the hood?
These topics will be exemplified in a classical JEE server application.
---
Example Code: https://github.com/ConSol/parallel-streams-example
---
JavaZone 2014, http://www.javazone.no