Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

What is the spring cloud gateway design method?

Shulou Source: shulou.com Published: 2022-06-01 11:16:41 09月26日 Update

This article introduces the relevant knowledge of "what is the design method of spring cloud gateway". In the operation of actual cases, many people will encounter such a dilemma, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!

Source code package:

Spring-cloud-starter-gateway-core-2.1.5.release.

Support features:

Dynamically refresh routes:

The contract integrates:

Cross-domain configuration:

Current limit configuration:

Load balancing:

Routing configuration:

HttpClient configuration:

The basis of the framework implementation:

Spring 5 Spring WebFlux reactive

Features: high throughput and low latency [asynchronous non-blocking]

Spring-webmvc + servlet+tomcat synchronous blocking

Spring-webFlux+reactive+netty asynchronous non-blocking

About the comparison between spring-webMvc and spring-webflux:

Annotation-based writing is very similar to spring-webMvc:

Equivalent: based on functional writing:

If you add both spring-boot-starter-web and spring-boot-starter-webflux dependencies, Spring Boot automatically configures Spring MVC instead of WebFlux. Of course you can force the application type to be specified through SpringApplication.setWebApplicationType (WebApplicationType.REACTIVE)

This is the end of the content of "what is the Design method of spring cloud gateway". Thank you for reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!

Tags: Configuration blocking method design content writing function more knowledge practicality similarity balance achievement next functional dynamic at the same time dilemma foundation reality Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno NVidia Redmi Docker macOS Huawei