We may earn an affiliate commission when you visit our partners.
Pluralsight logo

Asynchronous Programming in Java

Jose Paumard

Java SE 17 comes with its own asynchronous programming model. This course shows you how you can leverage this API to setup asynchronous systems, triggering tasks on the completion of other tasks, and how you report errors or recover from them.

Read more

Java SE 17 comes with its own asynchronous programming model. This course shows you how you can leverage this API to setup asynchronous systems, triggering tasks on the completion of other tasks, and how you report errors or recover from them.

Asynchronous programming is the universal pattern to create efficient, safe, and high-throughput applications. Starting with Java SE 8, Java has its own API: CompletionStage, to create asynchronous data processing pipelines. In this course, Asynchronous Programming in Java you will lean how to create asynchronous tasks based on the three models this API provides: Runnable, Consumers, and Functions. First, you will see how you can chain these tasks to trigger them on the outcome of other tasks. Then, you will explore what are the threads that are executing your tasks in the default configuration of the API, and how you can control them to balance your application, giving the right number of threads to the right number of tasks. Next, you will discover how you can have certain tasks to run in specific thread, for instance in the case that you need to update a graphical component, the API provides several mechanisms to deal with exceptions. Finally, you will learn how does the API processes exceptions, how you can log them and how you can recover from them if your application permits it. When you are finished with this course, you will be able to write your own asynchronous data processing pipelines, and will have hints on how you can set them up to get better performance.

Enroll now

What's inside

Syllabus

Course Overview
Accessing Data Asynchronously on the Web
Triggering a Task on the Outcome of Another Task
Splitting a Result into Several Asynchronous Tasks
Read more
Controlling What Thread Can Execute a Task
Reporting and Recovering from Errors
Closing Remarks

Good to know

Know what's good
, what to watch for
, and possible dealbreakers
Suitable for learners with no prior experience
Explores asynchronous programming, which is highly relevant to system design and development
Teaches how to build asynchronous data processing pipelines, which are essential for creating efficient event-driven systems
Provides practical guidance on controlling threads and handling errors
Taught by Jose Paumard, a recognized expert in Java programming
Covers the latest Java SE 17 features for asynchronous programming

Save this course

Save Asynchronous Programming in Java to your list so you can find it easily later:
Save

Activities

Coming soon We're preparing activities for Asynchronous Programming in Java . These are activities you can do either before, during, or after a course.

Career center

Learners who complete Asynchronous Programming in Java will develop knowledge and skills that may be useful to these careers:
Software Developer
Software Developers are responsible for designing, developing, and maintaining software applications. This course can provide a foundation of asynchronous programming principles in Java, which is a commonly-used language in software development. You will learn about the CompletionStage API and its three models for creating asynchronous tasks. You will also learn how to trigger tasks on the outcome of other tasks, how to control which thread executes a task, and how to report and recover from errors. These skills will be valuable in any software development role, regardless of the specific industry or application domain.
Data Engineer
Data Engineers are responsible for designing, building, and maintaining data pipelines and systems. This course can provide a solid foundation in asynchronous programming in Java, which is essential for developing high-performance, scalable data pipelines. You will learn how to use the CompletionStage API to create asynchronous tasks and pipelines, how to trigger tasks on the outcome of other tasks, and how to control which thread executes a task. These skills will be valuable in any data engineering role, regardless of the specific industry or application domain.
Cloud Engineer
Cloud Engineers are responsible for designing, building, and managing cloud-based systems and applications. This course can provide a solid foundation in asynchronous programming in Java, which is essential for developing high-performance, scalable cloud applications. You will learn how to use the CompletionStage API to create asynchronous tasks and pipelines, how to trigger tasks on the outcome of other tasks, and how to control which thread executes a task. These skills will be valuable in any cloud engineering role, regardless of the specific cloud platform or application domain.
Java Developer
Java Developers are responsible for designing, developing, and maintaining Java applications. This course can provide a solid foundation in asynchronous programming in Java, which is essential for developing high-performance, scalable Java applications. You will learn how to use the CompletionStage API to create asynchronous tasks and pipelines, how to trigger tasks on the outcome of other tasks, and how to control which thread executes a task. These skills will be valuable in any Java development role, regardless of the specific industry or application domain.
Web Developer
Web Developers are responsible for designing, developing, and maintaining websites and web applications. This course can provide a foundation of asynchronous programming principles in Java, which is a commonly-used language in web development. You will learn about the CompletionStage API and its three models for creating asynchronous tasks. You will also learn how to trigger tasks on the outcome of other tasks, how to control which thread executes a task, and how to report and recover from errors. These skills will be valuable in any web development role, regardless of the specific industry or application domain.
Android Developer
Android Developers are responsible for designing, developing, and maintaining Android applications. This course can provide a foundation of asynchronous programming principles in Java, which is the primary language used for Android development. You will learn about the CompletionStage API and its three models for creating asynchronous tasks. You will also learn how to trigger tasks on the outcome of other tasks, how to control which thread executes a task, and how to report and recover from errors. These skills will be valuable in any Android development role, regardless of the specific industry or application domain.
Software Architect
Software Architects are responsible for designing and overseeing the development of software systems. This course can provide a solid foundation in asynchronous programming in Java, which is essential for designing and developing high-performance, scalable software systems. You will learn how to use the CompletionStage API to create asynchronous tasks and pipelines, how to trigger tasks on the outcome of other tasks, and how to control which thread executes a task. These skills will be valuable in any software architect role, regardless of the specific industry or application domain.
Full-Stack Developer
Full-Stack Developers are responsible for designing, developing, and maintaining both the front-end and back-end of web applications. This course can provide a foundation of asynchronous programming principles in Java, which is a commonly-used language in full-stack development. You will learn about the CompletionStage API and its three models for creating asynchronous tasks. You will also learn how to trigger tasks on the outcome of other tasks, how to control which thread executes a task, and how to report and recover from errors. These skills will be valuable in any full-stack development role, regardless of the specific industry or application domain.
Machine Learning Engineer
Machine Learning Engineers are responsible for developing and deploying machine learning models. This course may be useful for Machine Learning Engineers who want to learn how to develop asynchronous data processing pipelines using Java. You will learn how to use the CompletionStage API to create asynchronous tasks and pipelines, how to trigger tasks on the outcome of other tasks, and how to control which thread executes a task. These skills will be valuable in any Machine Learning Engineering role that involves developing data processing pipelines.
Data Scientist
Data Scientists are responsible for analyzing data and developing machine learning models. This course may be useful for Data Scientists who want to learn how to develop asynchronous data processing pipelines using Java. You will learn how to use the CompletionStage API to create asynchronous tasks and pipelines, how to trigger tasks on the outcome of other tasks, and how to control which thread executes a task. These skills will be valuable in any Data Science role that involves developing data processing pipelines.
Systems Analyst
Systems Analysts are responsible for analyzing and designing business systems. This course may be useful for Systems Analysts who want to learn how to develop asynchronous data processing pipelines using Java. You will learn how to use the CompletionStage API to create asynchronous tasks and pipelines, how to trigger tasks on the outcome of other tasks, and how to control which thread executes a task. These skills will be valuable in any Systems Analyst role that involves developing data processing pipelines.
Database Administrator
Database Administrators are responsible for designing, building, and maintaining databases. This course may be useful for Database Administrators who want to learn how to develop asynchronous data processing pipelines using Java. You will learn how to use the CompletionStage API to create asynchronous tasks and pipelines, how to trigger tasks on the outcome of other tasks, and how to control which thread executes a task. These skills will be valuable in any Database Administrator role that involves developing data processing pipelines.
Quality Assurance Analyst
Quality Assurance Analysts are responsible for testing and evaluating software applications. This course may be useful for Quality Assurance Analysts who want to learn how to develop asynchronous data processing pipelines using Java. You will learn how to use the CompletionStage API to create asynchronous tasks and pipelines, how to trigger tasks on the outcome of other tasks, and how to control which thread executes a task. These skills will be valuable in any Quality Assurance Analyst role that involves developing data processing pipelines.
Technical Writer
Technical Writers are responsible for writing and editing technical documentation. This course may be useful for Technical Writers who want to learn how to develop asynchronous data processing pipelines using Java. You will learn how to use the CompletionStage API to create asynchronous tasks and pipelines, how to trigger tasks on the outcome of other tasks, and how to control which thread executes a task. These skills will be valuable in any Technical Writer role that involves developing data processing pipelines.
Project Manager
Project Managers are responsible for planning and managing software development projects. This course may be useful for Project Managers who want to learn how to develop asynchronous data processing pipelines using Java. You will learn how to use the CompletionStage API to create asynchronous tasks and pipelines, how to trigger tasks on the outcome of other tasks, and how to control which thread executes a task. These skills will be valuable in any Project Manager role that involves developing data processing pipelines.

Reading list

We've selected 11 books that we think will supplement your learning. Use these to develop background knowledge, enrich your coursework, and gain a deeper understanding of the topics covered in Asynchronous Programming in Java .
Provides a comprehensive overview of Java concurrency, covering topics such as thread safety, synchronization, and concurrency patterns. It valuable reference for anyone working with Java concurrency.
Provides a collection of 78 proven guidelines for writing effective Java code. It valuable resource for any Java developer, regardless of their experience level.
Provides a practical guide to writing concurrent code in Java. It covers topics such as thread synchronization, deadlock avoidance, and performance optimization.
Provides a comprehensive guide to Java performance tuning. It covers topics such as profiling, garbage collection, and memory management.
Spring popular Java framework for building web applications. provides an extensive guide to Spring's features, including asynchronous programming support through its web MVC and reactive frameworks. It offers practical examples and code snippets to demonstrate how to implement asynchronous applications using Spring.
While this book focuses on asynchronous programming in Node.js, it provides a valuable perspective on the concepts and patterns used in asynchronous programming in general. It covers topics such as event loops, callbacks, and promises, which are essential for understanding asynchronous programming in Java.
Provides a practical guide to multithreading in Java, covering topics such as thread creation, synchronization, and deadlock avoidance. It offers a blend of theoretical explanations and practical examples, making it a useful resource for understanding the fundamentals of asynchronous programming.
Provides a practical guide to writing reactive code in Java. It covers topics such as the Reactive Streams API, reactive programming patterns, and backpressure.
Provides a practical guide to writing high-performance Java code. It covers topics such as performance measurement, garbage collection tuning, and memory management.
Provides a practical guide to writing reactive code in RxJava. It covers topics such as the Observable API, reactive programming patterns, and backpressure.
Provides a comprehensive overview of Kotlin coroutines. It covers topics such as coroutine creation, coroutine suspension, and coroutine cancellation.

Share

Help others find this course page by sharing it with your friends and followers:

Similar courses

Similar courses are unavailable at this time. Please try again later.
Our mission

OpenCourser helps millions of learners each year. People visit us to learn workspace skills, ace their exams, and nurture their curiosity.

Our extensive catalog contains over 50,000 courses and twice as many books. Browse by search, by topic, or even by career interests. We'll match you to the right resources quickly.

Find this site helpful? Tell a friend about us.

Affiliate disclosure

We're supported by our community of learners. When you purchase or subscribe to courses and programs or purchase books, we may earn a commission from our partners.

Your purchases help us maintain our catalog and keep our servers humming without ads.

Thank you for supporting OpenCourser.

© 2016 - 2024 OpenCourser