apache/dubbo

[Triple] Optimize wrapper mode performance

Open

#10,776 创建于 2022年10月20日

在 GitHub 查看
 (7 评论) (0 反应) (1 负责人)Java (26,453 fork)batch import
help wantedtype/proposal

仓库指标

Star
 (41,524 star)
PR 合并指标
 (平均合并 7天 14小时) (30 天内合并 20 个 PR)

描述

Background

The current triple protocol only supports pb serialization temporarily, it is recommended to use idl to generate stub.

However, there are still many users (especially java) users who are not used to using idl to generate stubs, so the triple protocol serializes the user objects into bytes in order to be compatible with the user habits of dubbo2, and then uses pb for packaging. Although this solution is feasible, serialization twice will lead to poor performance。

Describe the proposal

In order to solve the above problems, we first have to make the triple protocol not strongly bound to pb.

We can use the content-type transfer serialization type to support different serialization protocols.

But it should be noted that compatibility with the existing wrapper mode is required

贡献者指南