当前位置:网站首页>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 );
}
}
边栏推荐
- FPGA_Vivado软件初次使用流程_超详细
- [SQL] CASE表达式
- Extended Physics-InformedNeural Networks论文详解
- 图像识别(六)| 激活函数
- [C Advanced] deeply explore the storage of data (in-depth analysis + interpretation of typical examples)
- [translation] announce Vites 13
- JVM memory model parsing
- 一篇文章让你理解 云原生 容器化相关
- 万维网、因特网和互联网的区别
- Neo4j import CSV data error: neo4j load CSV error: couldn't load the external resource
猜你喜欢

C language layered understanding (C language function)

MySQL tutorial: MySQL database learning classic (from getting started to mastering)
![[SQL] CASE表达式](/img/05/1bbb0b5099443f7ce5f5511703477e.png)
[SQL] CASE表达式

朋友刚学完自动化测试就拿25Koffer,我功能测试何时才能到头?

VR panoramic shooting and production of business center helps businesses effectively attract people

AMD64 (x86_64) architecture ABI document: medium

【方向盘】工具提效:Sublime Text 4的常用快捷键合集

What if the test / development programmer gets old? Lingering cruel facts
![[sql] usage of self connection](/img/92/92474343b4b4e6ea60453b4799cb55.jpg)
[sql] usage of self connection

规范自己debug的流程
随机推荐
The El table header merges the first four columns into one cell
Arthas' dynamic load class (retransform)
How can users create data tables on Web pages and store them in the database
cmd cpm 命令汇总
Multithreaded programming
富文本转化为普通文本
(PC+WAP)织梦模板蔬菜水果类网站
Win11隐藏输入法状态栏方法
Self-supervised learning method to solve the inverse problem of Fokker-Planck Equation
Wechat official account mutual aid, open white groups, and small white newspaper groups to keep warm
(9) Attribute introspection
Oxycon 2022 network capture frontier conference is about to open!
小测(一)
How to close the case prompt icon of win11? Closing method of win11 case prompt Icon
测试/开发程序员老了怎么办?挥之不去残酷的事实......
Arthas download and startup
QT signal transmission between multi-level objects signal transmission between multi-level nested class objects
Opening method of win11 microphone permission
这种动态规划你见过吗——状态机动态规划之股票问题(上)
持续交付和DevOps是一对好基友