You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@brpc.apache.org by GitBox <gi...@apache.org> on 2022/09/21 15:59:09 UTC

[GitHub] [incubator-brpc] thorneliu commented on pull request #1922: 增加Nacos命名服务

thorneliu commented on PR #1922:
URL: https://github.com/apache/incubator-brpc/pull/1922#issuecomment-1253910442

   Hi guys,
   
   FYI. 我这里基于[nacos-cli ](https://github.com/nacos-group/nacos-sdk-cpp)实现了另外一个版本的 nacos naming service:
   https://github.com/thorneliu/incubator-brpc/commit/2cf39b6d0b91318575901eba9adf00b545600f84
   
   基于这个patch, client可以:
   ```
   std::string nacosurl("nacos://serverAddress/namespace/groupName/serviceName/clusterId");
   channel.Init(nacosurl.c_str(), FLAGS_load_balancer.c_str(), &options)
   ```
   
   这个naming service是通过nacos cpp sdk订阅nacos服务的服务视力变化来更新servernodes的; 
   不好的地方在于这个实现引入了第三方库的依赖
   
   @yyweii @serverglen 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@brpc.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@brpc.apache.org
For additional commands, e-mail: dev-help@brpc.apache.org