Giter Site home page Giter Site logo

spring-webflux-playground's Introduction

Spring WebFlux and Reactive WebClient Demo Project

In this demo project you may examples of reactive endpoints built on top of Spring WebFlux, and using WebClient for calling other resources.

  1. Explaining different communication models in reactive application with Spring WebFlux. Differences between standard application/json content type and application/stream+json. Introduction to back pressure term. Detailed description can be found here: Using Reactive WebClient with Spring WebFlux
  2. A detailed analyse of threading and concurrency model used by Spring WebFlux and Reactor Netty. It also threats about WebClient and Spring Boot Actuator pooling. A detailed description can be found here: A Deep Dive Into Spring WebFlux Threading Model

$ docker run -d --name webflux --cpus="1" -p 8080:8080 piomin/sample-spring-webflux

Guide

Required:

  1. JDK 11+
  2. Maven

How to run ? mvn clean install

There are two JUnit tests: PerformanceSpringWebFluxTest and SampleSpringWebFluxTest.

To provide some standalone tests just run the main class SampleSpringWebFluxApp. For generating some traffic to the application run application SendingApp. It runs MockWebServer on localhost:8082 in order to mock downstream service called by WebClient and than calls endpoints exposed by the application usung TestRestTemplate.

spring-webflux-playground's People

Contributors

piomin avatar americanstone avatar

Watchers

 avatar  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.