This is example of Jersey's Observable (RxJava) client extension using Netflix Hystrix latency and fault tolerant library.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src
.gitignore
README.html
README.md
pom.xml

README.md

jersey--examples--rx-client-java8-webapp

This is example of Jersey's Observable (RxJava) client extension using Netflix Hystrix latency and fault tolerant library.

The example extends official Jersey examples/rx-client-java8-webapp example.

For details see my Reactive Jersey Client using Java 8, RxJava and Netflix Hystrix blog post.

Running the Example

Run the example as follows:

mvn clean package jetty:run

This deploys current example using Jetty. You can access the application at:

Code

You can be sure the endpoint execution processing time is less than 950 milliseconds. This is because of using Hystrix with specified execution timeout. And that's the reason the response body is not sometimes complete, but on time.