Skip to content

testing webclient reactive communication with spring boot reactive application built on top of spring webflux

Notifications You must be signed in to change notification settings

piomin/sample-spring-webflux

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

85 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Spring WebFlux and Reactive WebClient Demo Project Twitter

CircleCI

SonarCloud Bugs Coverage Lines of Code

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

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.

About

testing webclient reactive communication with spring boot reactive application built on top of spring webflux

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published