Skip to content
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

【功能建议】提供 trpc-java 集成 #473

Open
onemsg opened this issue Mar 14, 2024 · 1 comment
Open

【功能建议】提供 trpc-java 集成 #473

onemsg opened this issue Mar 14, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@onemsg
Copy link

onemsg commented Mar 14, 2024

What is the feature you want to add?

提供对 trpc-java 集成支持,开箱即用(springboot-starter风格)地注册服务、发现服务、动态路由等。

如果已有支持,可能是我在文档中没有发现

Why do you want to add this feature?

  • 相比 gPRC,更喜欢 tRPC 生成的 Java 代码中,Response 作为方法参数返回的风格
  • 熟悉 tRPC + Polaris 的开发方式,想继续用于个人学习中

How to implement this feature?

开发类似 trpc-polaris-springboot-starter 项目,集成 tRPC 和 polaris。

  • 在 tRPC 配置中 Provider 的注册方式为 polaris,spring 读取配置自动构建和启动 Provider beans,并根据配置自动注册 providers 以及生成定时心跳上报的调度任务
  • 在 tRPC 配置中 Consumer 的发现方式为 polaris,spring 读取配置自动构建 Consumer beans,并负责 consumers 的负载均衡等工作
  • 以上

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

@onemsg onemsg added the enhancement New feature or request label Mar 14, 2024
@chuntaojun
Copy link
Member

可以看一下这里:https://github.com/trpc-group/trpc-java

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants