A definitive guide to implementing concurrency patterns in your applications
Key Features
Learn functional programming patterns to write clear and high quality code
Explore parallel programming and multithreading techniques to make your code run faster
Efficiently use thread pools, actors patterns, and threading patterns to build reliable applications
Book Description
Selecting the correct concurrency architecture has a significant impact on the design and performance of your applications. Concurrent design patterns help you understand the different characteristics of parallel architecture to make your code faster and more efficient.
This book will help Java developers take a hands-on approach to building scalable and distributed apps by following step-by-step explanations of essential concepts and practical examples. You’ll begin with basic concurrency concepts and delve into the patterns used for explicit locking, lock-free programming, futures, and actors.
You’ll explore coding with multithreading design patterns, including master, slave, leader, follower, and map-reduce, and then move on to solve problems using synchronizer patterns. You'll even discover the rationale for these patterns in distributed and parallel applications, and understand how future composition, immutability, and the monadic flow help you create more robust code. By the end of the book, you’ll be able to use concurrent design patterns to build high performance applications confidently.
What you will learn
Explore parallel architecture
Get to grips with concurrency models to optimize your code s performance
Explore important concurrency patterns in the Java multithreading library
Gain insights into concurrent design patterns
Discover design principles behind a variety of thread abstractions in Java
Apply functional concurrency patterns to address issues with threads and locks
Who this book is for
If you’re a developer with foundational programming knowledge and want to learn patterns to build scalable and high performing apps, this guide is a must-have.