dangdangdotcom / dubbox

Dubbox now means Dubbo eXtensions, and it adds features like RESTful remoting, Kyro/FST serialization, etc to the Dubbo service framework.
http://dangdangdotcom.github.io/dubbox
Apache License 2.0
4.9k stars 2.06k forks source link

dubbox 2.8.4版本fst序列化,provider端新增字段,consumer端报错 #379

Open runformydream opened 6 years ago

runformydream commented 6 years ago

dubbox 2.8.4版本,使用fst序列化,provider端返回对象新增字段时,consumer端代码不变,consumer端反序列化报错。现在只能用version来解决,这种解决方式不优雅,有更好的方式吗?

eoc2015 commented 6 years ago

可否换成hession序列化呢,这个字段不一致自动忽略不就行了

runformydream commented 6 years ago

fst的性能比hessian好,所以用fst,fst的这个问题有办法解决吗?

eoc2015 commented 6 years ago

这个不清楚FST可以不。我们用的hessian,权衡了下,没那么大的量,就忽略序列化时间了

runformydream commented 6 years ago

恩,用hessian,确实没这个问题

runformydream commented 6 years ago

谁有解决办法吗?

Lihuanghe commented 6 years ago

这个问题要问fst ,答案是没有办法. 可以使用protobuf