Skip to content

Latest commit

 

History

6 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RxJava Dropwizard Demo

Using RxJava with Dropwizard is no different than using it with any other framework that uses Jersey.

In this demo app, a slow and a fast backend service is simulated and combined into a single response. This is done asynchronously using Jersey's AsyncResponse and RxJava's subscribeOn().

Prerequisites

Java 8 JDK should be installed and java on your $PATH.

Build and Run

To build, run:

$ ./gradlew oneJar

To run:

$ java -jar build/libs/rxdemo-1.0-SNAPSHOT-standalone.jar server src/dist/config/demo.yml

What to look at

Check out the examples in DemoResource.java for the different ways to do async and how they differ from each other.

About

A small dropwizard app to demonstrate how to use RxJava with Dropwizard

Topics

Resources

Stars

11 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages