Combining compleblefuture with Sleuth of Spring, combining tool classes with allOf and anyOf

Series Catalog: Thinking and comparison in the application of Spring WebFlux Completabilefuture and Spring's Sleuth combination tool class Some optimization thinking in the process of using anyOf by CommpetableFuture Combining compleblefuture with Sleuth of Spring, combining tool classes with allOf and anyOf The previously implemented complet ...

Posted by phpnewbie81 on Fri, 22 Nov 2019 11:02:07 -0800

Spring Cloud gateway service I

Before we introduced zuul gateway service, today we talk about spring cloud gateway as the parent-child gateway service of spring cloud. Many ideas are based on zuul, which provides a convenient condition to consider zuul's migration to gateway. gateway's core functions are similar to zuul's. But his implementation method is different from zuul ...

Posted by paggard on Mon, 04 Nov 2019 17:07:21 -0800

spring cloud gateway source code parsing

1.gateway versus zuul 1.zuul is based on servlet 2.5 and compatible with servlet 3.0. It uses blocking API and does not support long connections such as websocket. 2.Gateway is based on spring 5, Reactor and spring boot 2. It uses non-blocking API, supports websocket, integrates perfectly with spri ...

Posted by noobyphpchick on Sat, 05 Oct 2019 10:21:41 -0700

11 Points Make Your Spring Boot Start Faster

Preface OpenJDK 11 is used. java --version openjdk 11.0.1 2018-10-16 OpenJDK Runtime Environment 18.9 (build 11.0.1+13) OpenJDK 64-Bit Server VM 18.9 (build 11.0.1+13, mixed mode) You can run the benchmark as follows. It may take some time to run, and all the tests will be executed below. ./mvnw clean package (cd benchmarks/; java -jar target ...

Posted by ronniebrown on Thu, 12 Sep 2019 00:20:11 -0700

spring webflux returns application/stream+json

order This paper mainly studies the example of spring webflux returning application/stream+json maven <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-webflux</artifactId> </dependency> controller /** * curl -i localhost:8080/stream * @return ...

Posted by jason_kraft on Thu, 07 Feb 2019 14:18:17 -0800