GithubHelp home page GithubHelp logo

houssoli / rest-and-graphql-examples Goto Github PK

View Code? Open in Web Editor NEW

This project forked from krizsan/rest-example

1.0 2.0 0.0 123 KB

Example RESTful web service implemented with Spring Boot, JAX-RS and RxJava.

License: Apache License 2.0

Java 94.37% Scala 5.63%

rest-and-graphql-examples's Introduction

REST-Example

Example RESTful web service implemented with Spring Boot, Spring WebFlux and Reactor.
This is the version with Spring WebFlux replacing asynchronous JAX-RS and with Reactor replacing RxJava.
Please refer to the "before" branch for the version without asynchronous JAX-RS and RxJava.
Please refer to the "rxjava-after" branch for the version with asynchronous JAX-RS and RxJava.

To load-test this application, first start the RestExampleApplication and then start the load-tests using mvn gatling:test.
The load-test report can be found in the target/gatling directory.

The original articles for which this example program was developed can be found here:
https://www.ivankrizsan.se/2016/11/19/rest-with-asynchronous-jersey-and-rxjava-part-1/
https://www.ivankrizsan.se/2016/11/25/rest-with-asynchronous-jersey-and-rxjava-part-2/
https://www.ivankrizsan.se/2016/12/17/rest-with-asynchronous-jersey-and-rxjava-part-3/
https://www.ivankrizsan.se/2016/12/29/rest-with-asynchronous-jersey-and-rxjava-part-4/

The Spring WebFlux and Reactor version is covered in this article:
https://www.ivankrizsan.se/2019/12/08/rest-with-spring-webflux-and-reactor/

Metrics with Prometheus

To view metrics of the application in Prometheus, do the following:

  • Edit the prometheys.yml configuration file and insert the IP address of the computer on which the rest-example application is running.
  • Start Prometheus and Prometheus Alertmanager by entering docker-compose up in the terminal.
  • Open the URL http://localhost:9090 in a browser.

rest-and-graphql-examples's People

Contributors

krizsan avatar

Stargazers

Roman avatar

Watchers

James Cloos avatar Lionel Houssou avatar

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.