Erlang serialization library

2019-05-01 05:33发布

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条回答
萌系小妹纸
2楼-- · 2019-05-01 06:11

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/

查看更多
登录 后发表回答