A one stop project for examples of using the ReactiveStreams MongoDB driver with RxJava.
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。
Jaryl Chng 19c165d124 removed synchronicity checks 10ヶ月前
common removed synchronicity checks 10ヶ月前
common-jersey standardizations 10ヶ月前
common-resteasy added tomcat web server support 10ヶ月前
grizzly-jersey standardizations 10ヶ月前
netty-jersey standardizations 10ヶ月前
netty-resteasy added tomcat web server support 10ヶ月前
tomcat-jersey standardizations 10ヶ月前
tomcat-resteasy added tomcat web server support 10ヶ月前
undertow-resteasy added tomcat web server support 10ヶ月前
.gitignore fix #1 10ヶ月前
.gitlab-ci.yml specify artifact 10ヶ月前
README.md cleanup README.md 10ヶ月前
benchmark-wrk.sh specify artifact 10ヶ月前
pom.xml added tomcat web server support 10ヶ月前
stub.sh added netty-resteasy 10ヶ月前

README.md

JAX-RS MongoDB ReactiveStreams to RxJava Examples pipeline status

A one stop project for examples of using the ReactiveStreams MongoDB driver with RxJava.

Includes initializing with multiple embedded web servers for further reference and benchmarking

Note: runs embedded MongoDB on separate port 27018 by default, no need to install it.

Current Implementations Done

  • Jersey on Grizzly (grizzly-jersey)
  • Jersey on Netty (netty-jersey)
  • Jersey on Tomcat (tomcat-jersey)
  • RestEasy on Undertow (undertow-resteasy)
  • RestEasy on Netty (netty-resteasy)
  • RestEasy on Tomcat (tomcat-resteasy)

Resource references

Guide

1. Running implementations

Packaging

$ maven package

Running

$ java -jar (implementation)/target/(implementation).jar
$ java -jar grizzly-jersey/target/undertow-resteasy.jar

2. Endpoints

METHOD ENDPOINT DESCRIPTION
GET /async/{userID} Get user from database
GET /async/{userID}/{name}/{phoneNumber} Create user
GET /sync/{userID} Get user from database (synced)
GET /sync/{userID}/{name}/{phoneNumber} Create user (synced)

3. Benchmark

Use your tool of choice like wrk or JMeter

$ wrk -t12 -c400 -d30s http://127.0.0.1:8080/user/jaryl/Jaryl%20Chng/01189998819991197253