Skip to content

源码地址:https://github.com/alibaba/Sentinel

官方文档:https://github.com/alibaba/Sentinel/wiki

Sentinel-features-overview


客户端 ​

客户端流程图 ​


扩展 ​

  • InitFunc

    com.alibaba.csp.sentinel.init.InitExecutor#doInit会在加载时调用。

    在META-INF/services/com.alibaba.csp.sentinel.init.InitFunc中添加。

  • MetricExtension,AdvancedMetricExtension

    用于统计。

    com.alibaba.csp.sentinel.metric.extension.callback.MetricEntryCallback#onPass会在操作完成后或发生BlockException时调用。

  • ProcessorSlot

    核心调用链,在META-INF/services/com.alibaba.csp.sentinel.slotchain.ProcessorSlot中添加。

  • SlotChainBuilder

    调用链构建。在META-INF/services/com.alibaba.csp.sentinel.slotchain.SlotChainBuilder中添加。


alibaba.cloud ​

流程图 ​


服务端 ​

扩展 ​

  • DynamicRuleProvider

    动态规则获取,可扩展为从 nacos ,appllo,redis,zk等数据源获取。

  • DynamicRulePublisher

    在发生配置变更时推送配置。可扩展为向 nacos ,appllo,redis,zk等数据源推送。