Git Product home page Git Product logo

reactive_frameworks's Introduction

Reactive Frameworks

This repository demonstrates ways of reactive programming and the benefit using the reactive java framework Quarkus and the streaming libraries RxJava, Mutiny, Project Reactor.

Quarkus Demo

A simple setup of a Quarkus project to show how it could be used.

  • Jackson RestEasy
  • Hibernate ORM with Panache
  • Quarkus Arc

Quarkus Reactive Routes

Shows how one could execute code directly on the underlying vert.x eventloop using reactive routes.

This quakrus instance contains both one reactive route with a delay that returns a String after some time and one RestEasy Route that let's the thread sleep for the same amount of time. You can see that the RestEasy client blocks on a executor thread.

reactive

This project contains some example of the java streaming APIs

  • RxJava
  • Project Reactor
  • Mutiny

quarkus Reactive Processing

This project contains three services. One fakeDB that offers two endpoints. One blocking endpoint that sleeps for 20 seconds before returning a string. One non-blocking reactive route that returns a stream with a delay.

One SprinBoot client that sends a message to the blocking endpoint. We can see that the number of threads increases when waiting for the fakeDB service to response, becasue the IO is done on executor threads

The Quarkus Reactive Service on the other hand can handle the same number of incoming requests without any increase, because it uses reactive non-blocking libraries and the reactor pattern of the underlying vert.x

reactive_frameworks's People

Contributors

baumeister25 avatar

Watchers

 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.