Skip to content

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

Notifications You must be signed in to change notification settings

shamoh/jersey--examples--rx-client-java8-webapp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages