Spring Cloud Alibaba Introduction Practice (11)-Sentinel Rules and Resources

In the previous blog, by connecting the mall-order service to the Sentinel console, you can see the information expanded by the mall-order service in the console as follows:
Insert picture description here
you can see that there are various rules, such as flow control rules, system rules, authorization rules, etc. .

What are the rules seen above for?

Rules are used to define how to protect resources , or to define which rules a resource should be protected by. Once this resource triggers the threshold corresponding to the rule, default or developed custom fault tolerance methods will be adopted.

What is the resource

Simply understand which thing needs to be protected. This thing is a resource. A resource can be any content in a Java application, a service, a method, or even a piece of code.

So seeing the rules displayed on the console, coupled with the understanding of resources, we can understand that the main principle of our use of the console is to explicitly configure various rules for various resources to achieve various Fault-tolerant function.

So the next step is to understand the use of various rules.

Guess you like

Origin blog.csdn.net/weixin_38106322/article/details/109420678