sofastack / sofa-rpc

SOFARPC is a high-performance, high-extensibility, production-level Java RPC framework.
https://www.sofastack.tech/sofa-rpc/docs/Home
Apache License 2.0
3.81k stars 1.17k forks source link

是否支持服务路由分组的能力? #1205

Closed boolfunc closed 1 year ago

boolfunc commented 2 years ago

Your question

开源版本的sofa-rpc支持服务路由分组的能力吗?

Your scenes

印象中,sofa rpc可以跟通过设置run.mode=TEST的方式,实现调用指定的微服务提供方。但是开源版本中没有搜到相关代码。 这个功能支持吗? 我们希望在研发环境,利用类似的能力实现服务分组,实现多环境线下测试

Your advice

Environment

环境及版本无关

EvenLjj commented 2 years ago

@boolfunc This function is not implemented in the open source version, and it is simple to implement. According to some parameter configurations, and then set directurl when creating consumerconfig in inBinding.This way use the DirectUrlRouter to router. In other words, you can also customize the router to meet the needs of your multi environment testing.

stale[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.