Worker
Worker

Reputation: 2409

Erlang serialization library

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?

Upvotes: 5

Views: 2213

Answers (1)

ZeissS
ZeissS

Reputation: 12135

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/

Upvotes: 3

Related Questions