Sentinel icon indicating copy to clipboard operation
Sentinel copied to clipboard

[API-CHANGE] Bring nouveau Sentinel entry API in Sentinel 2.0

Open sczyh30 opened this issue 2 years ago • 3 comments

Issue Description

Type: feature request

Describe what happened (or what feature you want)

Bring nouveau Sentinel entry API in Sentinel 2.0. An example:

try (Sentinel.entry(resourceName)) {
  // your logic here
} catch (BlockException e) {
  // your block handler here
}

NOTE: The legacy SphU and SphO API will not be deprecated, but we'll recommend using the new API for Sentinel 2.0.

sczyh30 avatar Aug 24 '22 15:08 sczyh30

Sentinel 2.0相比1.8.x会有很大的变更吗? 可以将开源的2.0版本直接merge到二开的版本上(基于1.8.x)吗?

liaomengge avatar Aug 25 '22 02:08 liaomengge

There will be breaking changes in Sentinel 2.0, but we'll try to keep compatibility with Sentinel 1.8.x.

sczyh30 avatar Aug 25 '22 04:08 sczyh30

是所有api都发生了很大的变化嘛? 还是只是部分使用上的改变? 是类似nacos 1.x到2.x的大变更升级?还是只是增加部分功能以及部分Api名称的变化?

liaomengge avatar Aug 30 '22 05:08 liaomengge

希望可以更方便的和配置中心联动,有部分需要修改源码才能和nacos配置中心联动

HanYi001 avatar Nov 21 '22 07:11 HanYi001