apache / dubbo

The java implementation of Apache Dubbo. An RPC and microservice framework.
https://dubbo.apache.org/
Apache License 2.0
40.46k stars 26.42k forks source link

Can we generate gprc class in runtime so that we may do not need to depends on proto plugin. #9262

Open vio-lin opened 2 years ago

vio-lin commented 2 years ago

can we generate gprc class in runtime so that we my do not need to depends on proto plugin. if we change the serialization we can open grpc server with json data form

EarthChen commented 2 years ago

Do you mean to use reflection service? https://github.com/grpc/grpc/blob/master/doc/server-reflection.md

vio-lin commented 2 years ago

Do you mean to use reflection service? https://github.com/grpc/grpc/blob/master/doc/server-reflection.md some thing difference. I just think if we can exteract service description from pojo service and change them to grpc client and service stub Class in runtime. We may do not need write proto file anymore. And just add some thing like plugin then we can run and invoke service throw grpc in http2 which may not in Protobuf Serialization. Adavamce

  1. this service can run in http2 and can use gateway of http2
  2. we can use more readable format stram instead of protobuf binary
  3. code first service just add some config to upgrate to grpc