Consuming RESTful services using the reactive JAX-RS client
Learn how to use a reactive JAX-RS client to asynchronously invoke RESTful microservices over HTTP. Discover the benefits of the RxJava reactive extensions and explore the pluggable reactive JAX-RS client provider offered by Eclipse Jersey. Enhance your client-side applications by efficiently consuming web services using the JAX-RS API. This guide showcases the use of asynchronous method calls and compares the default CompletionStage-based provider with Jersey’s RxJava provider. Choose between Jersey and Apache CXF for third-party reactive libraries and experience the power of reactive programming in Open Liberty.
At a Glance
Learn how to use a reactive JAX-RS client to asynchronously invoke RESTful microservices over HTTP.
First, you’ll learn how to create a reactive JAX-RS client application by using the default reactive JAX-RS client APIs. You will then learn how to take advantage of the RxJava reactive extensions with a pluggable reactive JAX-RS client provider that’s published by Eclipse Jersey. The JAX-RS client is an API used to communicate with RESTful web services. The API makes it easy to consume a web service by using the HTTP protocol, which means that you can efficiently implement client-side applications. The reactive client extension to JAX-RS is an API that enables you to use the reactive programming model when using the JAX-RS client.
The application in this guide demonstrates how the JAX-RS client accesses remote RESTful services by using asynchronous method calls. You’ll first look at the supplied client application that uses the JAX-RS default CompletionStage-based provider. Then, you’ll modify the client application to use Jersey’s RxJava provider, which is an alternative JAX-RS reactive provider. Both Jersey and Apache CXF provide third-party reactive libraries for RxJava and were tested for use in Open Liberty.
User Reviews
Be the first to review “Consuming RESTful services using the reactive JAX-RS client”
You must be logged in to post a review.


There are no reviews yet.