thrift-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jean Rodier <>
Subject Is the Thrift serialization compatible both directions?
Date Thu, 18 Jan 2018 15:59:15 GMT

Is this statement true, especially the last part?

Any new fields that you add should be optional. This means that any messages serialized by
code using your "old" message format can be parsed by your new generated code, as they won’t
be missing any required elements. Similarly, messages created by your new code can be parsed
by your old code: old binaries simply ignore the new field when parsing. However, the unknown
fields are not discarded, and if the message is later serialized, the unknown fields are serialized
along with it — so if the message is passed on to new code, the new fields are still

View raw message