Erlang serialization library

。_饼干妹妹 提交于 2019-12-07 06:19:22

问题


Does anybody know good and production ready serialization library for Erlang?

I have tried erlang_protobuffs - but it fails on its tests. I don't need to expose methods or anything like this, all I need is to encode/decode messages.

Is there anything else worth trying?


回答1:


As @Alexey Romanov said, try term_to_binary and binary_to_term. If you are talking between Erlang nodes, you don't even need this, because the Erlang runtime can do this for you transparently.

There are also libraries for (un)serializing these values in other languages. The keyword for this is BERT (binary erlang terms). The homepage contains some links to libraries: http://bert-rpc.org/



来源:https://stackoverflow.com/questions/7817213/erlang-serialization-library

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!