当前位置:网站首页>Service gateway (zuul)
Service gateway (zuul)
2022-07-26 03:03:00 【dzl84394】
- Dynamic Routing Dynamic routing
- Security Monitoring and review
- Authentication Identity authentication and security
- Stress Testing Pressure test : Gradually increase the traffic of a service cluster , To understand service performance ;
- Canary Testing Canary test
- Service Migration Service migration
- Load Shedding Load clipping : Allocate the corresponding capacity for each load type , Discard requests that exceed the limit ;
- Static Response handling Static response processing
- Active/Active traffic management
- Insights
Spring Cloud 2021.0.1 Removed Hystrix、Zuul etc. Netflix Components
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<artifactId>dms-cloud-zuul</artifactId>
<groupId>cn.dails</groupId>
<version>1.0-SNAPSHOT</version>
<parent>
<groupId>cn.dails</groupId>
<artifactId>dails-parent</artifactId>
<version>1.0-SNAPSHOT</version>
<relativePath></relativePath>
</parent>
<properties>
<maven.compiler.source>8</maven.compiler.source>
<maven.compiler.target>8</maven.compiler.target>
<!-- <spring-boot.version>2.3.12.RELEASE</spring-boot.version>-->
<!-- <spring-cloud.version>Hoxton.SR12</spring-cloud.version>-->
</properties>
<dependencies>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-netflix-eureka-client</artifactId>
<!-- <version>2.2.9.RELEASE</version>-->
</dependency>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-netflix-zuul</artifactId>
<version>2.2.9.RELEASE</version>
</dependency>
</dependencies>
<build>
<finalName>dms-zuul</finalName>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<version>${spring-boot.version}</version>
</plugin>
</plugins>
</build>
</project>
Inside this spring-cloud-starter-netflix-zuul Already need to specify version 了
yml
server:
port: 18088
base-uri-code: zuul
spring:
application:
name: dms-zuul
eureka:
client:
serviceUrl:
defaultZone: http://localhost:8088/eureka/
zuul:
routes:
dms-user:
stripPrefix: false
path: /user/**
serviceId: dms-user
dms-asset:
stripPrefix: false
path: /asset/**
serviceId: dms-asset
ZuulApplication
package cn.dms;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.netflix.zuul.EnableZuulProxy;
@SpringBootApplication
@EnableZuulProxy
@EnableEurekaClient
@EnableDiscoveryClient
public class ZuulApplication {
public static void main(String[] args) {
SpringApplication.run( ZuulApplication.class, args );
}
}
边栏推荐
- Safety margin of mass consumption
- Win11麦克风权限的开启方法
- An article allows you to understand the relevance of cloud native containerization
- [sql] case expression
- [steering wheel] how to transfer the start command and idea: VM parameters, command line parameters, system parameters, environment variable parameters, main method parameters
- 1. Software testing ----- the basic concept of software testing
- 图像识别(六)| 激活函数
- Literature speed reading | in the face of danger, anxious people run faster?
- ES6 advanced - inherit parent class attributes with constructors
- 【C进阶】深入探索数据的存储(深度剖析+典例解读)
猜你喜欢

(九)属性自省

ES6 advanced - using prototype object inheritance methods

Multithreaded programming

Study notes of pytorch deep learning practice: convolutional neural network (Advanced)

软件测试岗:阿里三面,幸好做足了准备,已拿offer

Image recognition (VII) | what is the pooling layer? What's the effect?

STM——EXTI外部中断学习笔记

如何根据登录测试的需求设计测试用例?

What if the test / development programmer gets old? Lingering cruel facts

Influence of middle tap change on ZVS oscillation circuit
随机推荐
STM32——串口学习笔记(一个字节、16位数据、字符串、数组)
案例:使用keepalived+Haproxy搭建Web群集
Parallelloopbody in opencv
ShardingSphere数据分片
QT signal transmission between multi-level objects signal transmission between multi-level nested class objects
Safety margin of mass consumption
[detailed explanation of key and difficult points of document operation]
Influence of middle tap change on ZVS oscillation circuit
【方向盘】使用IDEA的60+个快捷键分享给你,权为了提效(Live Template&Postfix Completion篇)
微信公众号互助、开白群,小白报团取暖
Golang 中‘...‘的用法
Qt 信号在多层次对象间传递 多层嵌套类对象之间信号传递
重装Win7系统如何进行?
How can users create data tables on Web pages and store them in the database
ES6 advanced - inherit parent class attributes with constructors
snownlp库各功能及用法
Programming example of STM32 state machine -- fully automatic washing machine (Part 1)
Shardingsphere data slicing
手把手教你依赖管理
MySQL build websites data table