O'Reilly logo

Reactive Programming With Java 9 by Tejaswini Mandar Jog

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Designing nonblocking interfaces

Now we've understood many concepts used in reactive applications, it's time to push ourselves a bit harder to understand which mistakes to avoid while writing the application. The Publisher created by us has an executor, which handles the threads for us. Though here we are not dealing with threads directly we need to be careful so that we will not come across situations of thread blocking. Let's find out how thread blocking can occur in the application.

Let's now develop an application where the Publisher will emit a number and the Subscriber will consume it. We not only want to concentrate on the Publisher-Subscription mechanism but also want to develop the application that will perform the consumption without ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required