-
Course
- Core Tech
Leveraging Parallel Streams for Fast Data Processing in Java 8
Parallelism is an amazing feature brought by the Stream API in Java 8. In this course, you will learn how parallel streams are working under the hood, how to use them to improve the performances of your applications, and when to avoid them.
What you'll learn
Along with the implementation of the map / filter reduce algorithm, the Stream API brings an amazing feature: the possibility to conduct the processing of your data in parallel. Going parallel is as simple as calling a parallel() method, something many developers are tempted to do. In this course, Leveraging Parallel Streams for Fast Data Processing in Java 8, you will learn what is happening under the hood, and how parallelism has been implemented in the Stream API. First, you will see that going parallel may improve the performances of your computations greatly, but may also ruin your application. Next, you will discover how to understand when things are working, which will give you the keys you need to decide when to go parallel and when to stay away from it. Finally, you will analyze the situations where things are not behaving as expected. By the end of this course, you will gain better understanding of parallelism as it is: a complex topic that you can grasp with simple ideas, so that you can use what you will learn immediately.
Table of contents
- Version Check | 15s
- Introducing the Course and Parallel Streams | 1m 59s
- What Are You Going to Learn? What Do You Need to Know? | 2m 48s
- Course Agenda | 1m 29s
- Measuring Parallel Streams Performance Reliably | 3m 6s
- Making a Regular Stream a Parallel Stream | 2m 8s
- Measuring Performances Using JMH | 2m 33s
- Using the Computation of Prime Numbers to Set up JMH | 1m 7s
- Setting up the Prime Numbers Computation in a Parallel Stream | 1m 35s
- Setting up a Class to Be Benched by JMH | 4m 26s
- Live Demo: Writing a JMH Class That Computes Prime Numbers | 2m 45s
- Live Demo: Running a Benchmark with JMH in the IDE | 1m 58s
- Live Demo: Using Maven to Run a JMH Benchmark | 3m 35s
- Analyzing the Results of Sequential and Parallel Computation | 2m 21s
- Module Wrap Up | 1m 49s
About the author
Passionate about programming computers for over 20 years, Jose made his debut in assembler and C, C for SIMD parallel machines before adopting Java as an object-oriented language. Assistant professor in Paris North University for more than 15 years, Jose also brings his expertise to many projects, in various industrial fields.
More Courses by Jose