Using reactive relational database connection specification R2DBC to operate MySQL database

1. Introduction It was introduced in March R2DBC , which is an asynchronous, non blocking relational database connection specification. Although some NoSQL database vendors provide reactive database clients for their databases, migration to NoSQL is not an ideal choice for most projects. This promotes the birth of a general responsive relation ...

Posted by jabapyth on Tue, 23 Jun 2020 18:58:16 -0700

What exactly did spring boot do?

Preface For server-side development, most new projects are based on spring boot. Projects using spring boot typically have this line of code SpringApplication.run(TestApplication.class, args); This is where the Spring boot framework loads.It's a whim to see what it's doing. new SpringApplication(primarySources)) The run method first creates a ...

Posted by evmace on Tue, 02 Jun 2020 01:51:44 -0700

Spring cloud gateway routing, assertion, filtering

Gateway introduction What is it? There is a very important component in the Spring Cloud family bucket: gateway. In the 1.x version, Zuul gateway is used, but in the 2.x version, Spring Cloud has developed a set of gateway components: Spring Cloud Gateway because Zuul's upgrade keeps skipping tickets. Based on Spring Boot 2.x, Spring WebFlu ...

Posted by mk_silence on Sat, 25 Apr 2020 21:19:31 -0700

Spring Cloud Gateway series processing request process

This article mainly reveals the loading of Spring Cloud Gateway and how to handle the request process from the source point of view. 1. Overview of spring gateway Spring Cloud Gateway is an official gateway developed by spring based on Spring 5.0, Spring Boot 2.0, Project Reactor and other technologies. Spring Cloud Gateway aims to provide a ...

Posted by Michael Lasky on Thu, 23 Apr 2020 00:29:58 -0700

Spring Cloud Micro Service Architecture From Getting Started to Getting Used - Service Gateway Spring Cloud Gateway

In the first two articles, we have preliminarily completed a small micro-service framework, including a service registry, an order service, and an inventory service. Order services can also make inter-service invocations of inventory services through feign.In that article, we will introduce the service gateway Spring Cloud Gateway. Spring Cloud ...

Posted by daddymac on Mon, 23 Mar 2020 10:59:24 -0700

JDK9 New Feature Reactive Stream Responsive Stream

_This article focuses on the JDK9 feature Reactive Stream Responsive Stream, describes what the Reactive Stream is and what the backpressure is, and the interface and two use cases for Reactive Stream provided in JDK9, including how to use Processor. _1.Reactive Stream concept _Reactive Stream is a set of standards introduced by JDK9 and a set ...

Posted by simjay on Fri, 28 Feb 2020 18:03:33 -0800

Webplus - returns a unified custom response object

Preface [TOC] Generally speaking, the status code of http request only indicates whether there is a problem in the request, and cannot indicate where the error is. For example, the user is only a business problem and needs to give a warning, but the status code of http does not indicate a business problem. Therefore, many systems adopt the foll ...

Posted by illzz on Thu, 05 Dec 2019 21:00:41 -0800

Summary of small pits encountered by the spring cloud gateway interceptor

Many friends may encounter the following problems when using spring cloud gateway How to read Post request body in spring cloudgateway private BodyInserter getBodyInserter(ServerWebExchange exchange) { ServerRequest serverRequest = new DefaultServerRequest(exchange); Mono<String> modifiedBody = serverRequest.bodyToMono ...

Posted by Scorptique on Thu, 28 Nov 2019 06:25:34 -0800

Spring Boot: Spring Doc Generates OpenAPI 3.0 Documents

1. Overview The company is currently documenting the project, and documentation is critical to building the REST API.In this article, I will introduce Spring Doc, a tool that simplifies the generation and maintenance of API documents for Spring Boot 1.x and 2.x applications based on the OpenAPI 3 specification. 2. Set up springdoc-openapi If yo ...

Posted by polybiosis on Sun, 24 Nov 2019 17:54:50 -0800

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