Skip to content

Commit

Permalink
fix: update sentinel-vs-hystrix.md (doocs#249)
Browse files Browse the repository at this point in the history
错别字
  • Loading branch information
Geeker4J authored and yanglbme committed Feb 8, 2022
1 parent 8e0f774 commit 9a7a4d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/high-availability/sentinel-vs-hystrix.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ Hystrix 的资源模型设计上采用了命令模式,将对外部资源的调

Sentinel 的设计则更为简单。相比 Hystrix Command 强依赖隔离规则,Sentinel 的资源定义与规则配置的耦合度更低。Hystrix 的 Command 强依赖于隔离规则配置的原因是隔离规则会直接影响 Command 的执行。在执行的时候 Hystrix 会解析 Command 的隔离规则来创建 RxJava Scheduler 并在其上调度执行,若是线程池模式则 Scheduler 底层的线程池为配置的线程池,若是信号量模式则简单包装成当前线程执行的 Scheduler。

而 Sentinel 则不一样,开发的时候只需要考虑这个方法/代码是否需要保护,置于用什么来保护,可以任何时候动态实时的区修改
而 Sentinel 则不一样,开发的时候只需要考虑这个方法/代码是否需要保护,至于用什么来保护,可以任何时候动态实时的去修改

`0.1.1` 版本开始,Sentinel 还支持基于注解的资源定义方式,可以通过注解参数指定异常处理函数和 fallback 函数。Sentinel 提供多样化的规则配置方式。除了直接通过 `loadRules` API 将规则注册到内存态之外,用户还可以注册各种外部数据源来提供动态的规则。用户可以根据系统当前的实时情况去动态地变更规则配置,数据源会将变更推送至 Sentinel 并即时生效。

Expand Down

0 comments on commit 9a7a4d1

Please sign in to comment.