-
Notifications
You must be signed in to change notification settings - Fork 784
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
grpc multiple services如何注册所有service? #1233
Comments
|
0.8.0前会忽略service, 所以不会调用失败 |
哦,记错了。grpc 场景一直会检查 service name。服务端也需要用 combine service 注册才行。 |
欢迎试用 Kitex 单 Server 多 Service (Multiple Service),相对于 Combine Service,这个模式更加推荐,不会生成冗余的代码,客户端也不需要变更。 https://www.cloudwego.io/zh/docs/kitex/tutorials/advanced-feature/multi_service/ |
所以要先把使用combine service的client都改了, 才能在server改成多 Service? |
Multi Service 是把每个 Service 独立注册到 server 里,所以用对应 service 的 client 发起请求就行。 Client 端可以不用变,主要是 server 需要从 combineservice 的用法迁移过来。 |
Describe the bug
升级到0.8.0后, 所有的method都注册在CombineService下, 只能使用CombineService的client访问. 客户端如果使用xxxService访问会报错
error=unknown service
To Reproduce
server upgraded to kitex 0.8.0
Expected behavior
在不改client的前提下, 如何让method除了注册到CombineService, 也注册到它所属的Service名下?
Screenshots
If applicable, add screenshots to help explain your problem.
Kitex version:
Please provide the version of Kitex you are using.
Environment:
The output of
go env
.Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: