Using Project Reactor

It is time to update our REST API so that it becomes an event-driven application. You will see that the changes we make are not difficult to apply. We will start by updating our dependencies so that Project Reactor classes are accessible. Open your API application build.gradle configuration and extend it:

...  
dependencies { 
    ...  
    compile 'io.projectreactor:reactor-bus:2.0.8.RELEASE' 
    ...  
} 
...  

Here, we introduced support for a Project Reactor bus. We will use it to trigger an action in some particular situations. We will email the system administrator if the number of total Notes or TODOs in the system reaches a critical level. This example is trivial. One good example would be triggering actions when storage reaches a ...

Get Building Applications with Spring 5 and Kotlin now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.