【SpringCloudAlibaba專題】spring cloud gateway結合nacos實現sentinel動態限流值header模式

上一篇是寫如何動態限流的,粒度是對全部的訪問者,忽然今天有個需求,是這樣,須要根據不一樣的租戶來限流,怎麼作呢?來看下吧。 html 追蹤源碼 com.alibaba.csp.sentinel.adapter.gateway.common.rule#GatewayFlowRule 這個類中,就是昨天咱們nacos的那些配置,代碼片斷以下: public class GatewayFlowRule
相關文章
相關標籤/搜索