apache / dubbo

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

[Feature] triple protocol use netty ProtobufEncoder and ProtobufDecoder to replace .proto #14719

Open JunJieLiu51520 opened 1 month ago

JunJieLiu51520 commented 1 month ago

Pre-check

Search before asking

Apache Dubbo Component

Java SDK (apache/dubbo)

Descriptions

and other way, this can decrease the compiler cost, current sdk repository source is too heavely

Related issues

No response

Are you willing to submit a pull request to fix on your own?

Code of Conduct

JunJieLiu51520 commented 1 month ago

@oxsean do you agree this ?

oxsean commented 1 month ago

Sorry, I didn't quite understand what want to do, can you add more info?

JunJieLiu51520 commented 1 month ago

image

i say that if we add a protobuf channelhandler whether mean we need not define .proto file and add (de)serialize logic,

i think it's heavly in dubbo-rpc-triple module, right ?

another reason is dubbo sdk build getting slower and slower and when sync from dubbo to my reponsity always compiler failed

oxsean commented 1 month ago

The issue is not on the same level. The ability to encode and decode also relies on having classes generated based on proto. Moreover, Triple is an RPC framework, and its data packets are not in raw proto format.