-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
rpc api调用报服务找不到 #63
Comments
micro api在2.x版本中存在不兼容的问题,由于v2版本是过渡版本,我们没有太多时间进行跟进,等稳定后才会去更新我们的教程版本。不过不影响对micro的理解。 |
好吧。那一般情况下grpc转http对外提供接口要怎么搞呢?每个srv再加一层api服务吗?感觉这样很繁琐额 |
另外我测试了一下,把命名空间改成go.micro.api就可以代理成功,可以通过地址路由转发过去。这个是不是限制了只能代理api层呢? |
micro api是只能代理命名空间下的,如果你每个srv都要暴露api,那实际是你可以不分这一层,可以把srv都在api服务层,再根据服务的演变逐步拆分出来srv层 |
|
go-micro版本:V2.6
按照示例:https://github.com/micro-in-cn/tutorials/tree/master/examples/basic-practices/micro-api/rpc 运行rpc.go以及micro api
添加enable_rpc参数,开启rpc路由则可以成功
The text was updated successfully, but these errors were encountered: