Java 9 Performance Optimization and Modularization

Java 9 Performance Optimization and Modularization

English | MP4 | AVC 1920×1080 | AAC 44KHz 2ch | 1h 54m | 456 MB

Get to know the different data structures available in Java 9. Use loops to process, mutate data and simplify processing logic with functional programming

More than three years after the release of Java 8, the next version is now just around the corner. You may have heard about Java 9’s module system, but there’s even more to this new version.

The course will teach you how to leverage the power of multithreading in Java, before moving on to look at the benefits of modularising larger projects. We start of on our path by building a Twitter application that leverages the Twitter public API. We will start with a trivial single threaded implementation, pulling a single hashtag, and storing tweets in a text file. We will then accelerate the application by leveraging multi-threading, to download and process hashtags concurrently. Functional programming will be used for processing data streams.

By the end of this course, you will be familiar with Java 9 Performance Optimization and Modularization.

What You Will Learn

  • Load CSV files and Maven Dependency Management
  • Understand the Different Types of Data Structure
  • Get familiar with Streams and Parallel streams
  • Go from zero to hero in Functional Programming
  • Leverage some of the multithreaded capabilities of Java
  • Learn to make an application thread safe
  • Learn to pull tweets for a specified set of hashtags and store them in a text file.
  • Learn about some of the common threading issues developers run into when developing multithreaded applications for the first time.
  • Learn the benefits that Project Jigsaw brings to Java 9
Table of Contents

01 The Course Overview
02 Twitter4J and Twitter API Key
03 Sample of Tweets and Printing It
04 Event Loop to Regularly Pull Tweets
05 Writing Tweets to a Text File
06 Multithreading in Java and the Executor Service
07 Leveraging the Executor Service
08 Multithreaded Contention Issues
09 Making an Application Thread Safe
10 Making Our Twitter Application Thread Safe
11 Creating a Simple Multi-Package Project
12 Project Jigsaw and Its Problem
13 Modularizing Our Twitter App and Defining Interfaces