In this chapter, we are going to explore the concepts and implementations of reactive patterns, looking at how we can use them to implement a better application. We will also cover reactive programming concepts, focusing on how they can aid application development. After reading this chapter, we will be able to use reactive patterns using the best practices of Java EE 8.
The following topics will be explored in this chapter:
- Explaining the concept of reactive programming
- Explaining the concept of an event in CDI
- Implementing an event in CDI
- Explaining the concept of an asynchronous EJB method
- Implementing an asynchronous EJB method
- Explaining the concept of an asynchronous REST service
- Implementing an asynchronous REST service
For a long time, applications processed all requests in a synchronous manner. In a synchronous process, the users...