Giter VIP home page Giter VIP logo

jax-rs-mongodb-reactivestreams-to-rxjava-examples's Introduction

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.