Skip to content

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

Notifications You must be signed in to change notification settings

olsson/rxjava-dropwizard-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages