Don’t say much, get up and do

Introduction to the

The Soul gateway implements the traffic limiting function through the hystrix plug-in, which is the specific implementation of the gateway fusing traffic

Requests are processed using semaphores

use

The configuration file

Add configuration items to the Soul profile

<! -- soul hystrix plugin start--> <dependency> <groupId>org.dromara</groupId> <artifactId>soul-spring-boot-starter-plugin-hystrix</artifactId> <version>${last.version}</version> </dependency> <! -- soul hystrix plugin end-->Copy the code

Turn on the switch

Modify the configuration

Next we read the source code