weibocom / motan

A cross-language remote procedure call(RPC) framework for rapid development of high performance distributed services.
Other
5.88k stars 1.78k forks source link

关于hessian2的选型问题 #523

Open tanxiaolong77 opened 7 years ago

tanxiaolong77 commented 7 years ago

这几天在深入研究motan,发现motan的序列化解析用的是hessian2,在文档里也只是简单的描述了一句hessian2对java的支持更好,我想知道motan为什么最后默认的序列化技术选型是用的hessian2?不是thrift,或者PB?能否来点儿干货,谢谢了!希望大家共同学习。

thermosym commented 7 years ago

我的理解,采用 hessian2 是因为支持 Java 序列化机制;而 thrift 和 protobuf 是需要DSL描述序列化的消息类型,不如 hessian2 的“透明”。