[Sentinel] Sentinel integrates dubbo to achieve flow control (4)

前言

Information from Baidu

1. sentinel集成dubbo实现流控(基础实现)

  • Document:
    https://blog.csdn.net/weixin_38028611/article/details/99724194 The
    document is very comprehensive, including general current limiting, cluster current limiting, stress testing tools and so on.
    But when I realized the current limit, aboutBootstrapAppThe use of it was unsuccessful. So I searched again.

    https://www.cnblogs.com/yinjihuan/p/10516045.html
    This article is also very detailed. Follow the steps and you can directly succeed! The current limit is mainly introduced inside.
    重点:@SentinelResource(value = "getUser", blockHandler = "exceptionHandler")In this code,blockHandler = “exceptionHandler”This section must not be saved! Otherwise it will fail

2. sentinel集成dubbo实现流控(从zookeeper动态获取规则)

  • difficulty
    Difficulty: jar package conflict is annoying. My side is down from 1.7.2 to 1.6.3. Then some jars were removed
    Insert picture description here

  • Document:
    https://blog.csdn.net/tianyaleixiaowu/article/details/94442906
    reference document, basically it can be realized.
    https://mp.weixin.qq.com/s/twMFiBfRawKLR-1-N-f1yw
    5 ways to persist the rules. The document
    ps written by the boss of the game : Push rules, you can also see the official demo, as shown in the figure: The
    Insert picture description here
    content has two main parts:
    one is to push rules to zookeeper (in fact, a file is created in zookeeper and the rules are written in) the
    Insert picture description here
    other part is Read the rules, get the file path created above to zookeeper, then read it through jar, and finally register it in FlowRuleManager.

3. sentinel集成dubbo实现流控(集群方式)

4. sentinel集成dubbo实现流控(持久化)

Guess you like

Origin blog.csdn.net/s1441101265/article/details/107487201