polarismesh / polaris

Service Discovery and Governance Platform for Microservice and Distributed Architecture
https://polarismesh.cn
Other
2.4k stars 396 forks source link

路由规则中增加反向匹配的筛选方式 #565

Closed taohuifa closed 2 years ago

taohuifa commented 2 years ago

What is the feature you want to add? 路由规则中增加反向匹配筛选方式.(在路由规则实例分组中, 匹配方式支持反向匹配, 即找匹配不上的实例)

Why do you want to add this feature? 我们线上追加新版本服务, 例如1.0.0, 希望控制流量比例到这个版本, 而其他流量则到非这个版本的实例上

How to implement this feature? 在实际使用过程中, 更多以新版本作为关注点, 老的多个测试版本希望走保底逻辑. 另外当前很多语言版本(golang等), 不支持regexp2功能, 因此无法正则反向过滤

Additional context Add any other context or screenshots about the feature request here. image

andrewshan commented 2 years ago

好的,这个功能应该支持,看看是否愿意来贡献一下? gosdk的库在这里:https://github.com/polarismesh/polaris-go