So you want to optimize your performance by running your code on multiple threads?
This training covers the best ways to run code in parallel in Java today. We will deep dive into the concept of a thread pool executor, heavily used over the past 20+ years and in every major modern Java framework. The content was brainstormed with hundreds of developers in dozens of companies, so you will benefit from the collective experience of a huge number of projects.
This is the recording of a 3.5 intense hours of live webinar that took place in December 2020.
- Thread - Fundamentals
- Why not to manually create threads
- Thread Pool Executors: deep explanations
- Sizing a Thread Pool: Goetz Formula
- @Async (Spring)
- Handle HTTP Requests Asynchronously
- parallelStream Best Practices
- Thread Locals Best Practices
- Handling Exceptions from other threads
What to expect?
We will solve together a series of exercises in Java (70% of the time) exploring the behavior of the tools we cover, discussing their intended purpose, pros and cons of each in detail. The content will be backed by deep explanations of key theoretical concepts and proven whenever necessary via performance benchmarks. We will make some brief reference (<20%) to the Spring Framework, but all the ideas are directly applicable in any other frameworks in Java: JavaEE, Quarkus and Micronaut.
After following this workshop, you'll acquire a solid knowledge about multithreading and will take away at least a dozen of key practical techniques that you can apply to any real-life work involving multithreading. Expect an intense experience, as usual!
But perhaps the best part is that you can ask any question you want to a Java Champion and former Lead Architect at IBM. There will be no unanswered questions™️😀
Disclaimer: Concurrency is a huge topic. The training does NOT cover concurrency control, race bugs, or deadlocks, nor ReactiveX or Akka Actors. Those might become the topic of another a future training.
Any Java developer, ideally with some prior contact with multi-thread code.
The webinar will take place on Zoom, so for best experience (to be able to participate in polls), please have the app installed.
You are not required to write code during the webinar. I would recommend instead that you get yourself a black coffee and you pay close attention to the discussion, ask questions and bring ideas, as the code will go through a lot of alternative solutions.
After the webinar, you will be able to download all the code zipped together with the git history, so you can explore each commit at your own pace. I strongly encourage you to try out the code on your machine afterwards, and for that you will need a Java 8+ SDK installed, a decent IDE, and access to GitHub and Maven Central.
If you want to get the best value out of this workshop, you can prepare by reading a bit about completable futures and parallel streams.
Looking forward working with you!
P.S.: The content is distilled from my 2-days (16-hours) Performance training. If you are interested in a private dedicated session for your company, please find here my entire curricula and contact details.