Skip to content

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

@onemsg

Description

@onemsg

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions