cloudwego / hertz

Go HTTP framework with high-performance and strong-extensibility for building micro-services.
https://www.cloudwego.io
Apache License 2.0
5.22k stars 508 forks source link

hertz 服务注册染色概念 #858

Closed laixiaohuai closed 1 year ago

laixiaohuai commented 1 year ago

Is your feature request related to a problem? Please describe.

A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

Describe the solution you'd like

可以支持染色概念吗?就是同一套环境,加了请求标识(可以是请求头,可以是其他模式),可以访问到特定实例,当染色的实例不存在,请求将到没染色标识的实例上来兜底

Describe alternatives you've considered

A clear and concise description of any alternative solutions or features you've considered.

Additional context

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

li-jin-gou commented 1 year ago

可以看下 istio,这个能力用 mesh 或其它proxy 做。

GuangmingLuo commented 1 year ago

Kitex 支持 xDS 协议和 Proxyless 架构,可以结合 Istio 在框架侧实现泳道和自定义路由,详见 https://github.com/kitex-contrib/xds 和相关公众号文章;Hertz 暂未支持 xDS 协议,需要结合开源的服务网格数据面+控制面来实现染色和泳道。