- Add callback registry for statistic slot for extensions. - Add a new module `sentinel-parameter-flow-control` under `sentinel-extension`. - Add a `CacheMap` interface to provide abstraction for cache. We use ConcurrentLinkedHashMap as the default implementation (LRU strategy).. - Add a `ParameterMetric` class as frequent parameter metrics for a specific resource. The metric map is located in `ParamFlowSlot` rather than `ClusterNode`. - Implement `ParameterLeapArray` as statistic data structure for frequent parameters in a period of time window. - Add `ParamFlowSlot` as the checker slot; Add `ParamFlowChecker` to do rule checking; Add `ParamFlowRuleManager` to do rule managing. - The statistic metrics for frequent parameters is enabled only if the related resource has configured parameter flow rule; Parameter metrics for removed rules will be cleared automatically. - Leverage extensible `SlotChainBuilder` to provide a `HotParamSlotChainBuilder`. - Add command handlers for hot param rules. - Add test cases and demo. |
||
|---|---|---|
| .. | ||
| sentinel-demo-annotation-spring-aop | ||
| sentinel-demo-apollo-datasource | ||
| sentinel-demo-basic | ||
| sentinel-demo-dubbo | ||
| sentinel-demo-dynamic-file-rule | ||
| sentinel-demo-nacos-datasource | ||
| sentinel-demo-parameter-flow-control | ||
| sentinel-demo-rocketmq | ||
| sentinel-demo-zookeeper-datasource | ||
| README.md | ||
| pom.xml | ||
README.md
Sentinel Examples
The examples demonstrate:
- How to leverage basic features (e.g. flow control, circuit breaking, load protection) of Sentinel
- How to use various data source extensions of Sentinel (e.g. file, Nacos, ZooKeeper)
- How to use Dubbo with Sentinel
- How to use Apache RocketMQ client with Sentinel
- How to use Sentinel annotation support