shenyu icon indicating copy to clipboard operation
shenyu copied to clipboard

[Question] Does Shenyu support dubbo using protobuf serialization?

Open ForrestWang123 opened this issue 11 months ago • 5 comments

Question

Our company is using dubbo using probobuf, does Shenyu support this?

ForrestWang123 avatar Jan 15 '25 07:01 ForrestWang123

Hi. At present, it is not supported. May I ask if it is the triple protocol, the serialization is protobuf, and the calling method is unary?

eye-gu avatar Jan 16 '25 11:01 eye-gu

May I ask if it is the triple protocol, the serialization is protobuf, and the calling method is unary? Sorry, What do you mean of this? @eye-gu

ForrestWang123 avatar Jan 16 '25 13:01 ForrestWang123

I would like to know how you use protobuf in dubbo

eye-gu avatar Jan 17 '25 01:01 eye-gu

I would like to know how you use protobuf in dubbo

In fact, we use protobuf in the quite normal way. I still cannot understand "triple protocol", "the calling method is unary", can you help to explain more? I am very happy that you created https://github.com/apache/shenyu/pull/5903 and I am very willing to be involved in the design and implement. Thank you again. @eye-gu

ForrestWang123 avatar Jan 17 '25 21:01 ForrestWang123

Triple is a new protocol of Dubbo in version 3: https://cn.dubbo.apache.org/zh-cn/overview/reference/protocols/triple/. Unary's introduction is also in this document, perhaps a better way is to check the grpc documentation.

Now, I plan to use Dubbo's protobuf-json generalization call to implement it, I don't know if it can meet your scenario: https://cn.dubbo.apache.org/zh-cn/docsv2.7/user/examples/pb-generic-reference/

eye-gu avatar Jan 18 '25 14:01 eye-gu