[erlang-questions] Compressing messages sent between Erlang nodes

bbethke bbethke@REDACTED
Mon Apr 25 18:09:11 CEST 2011


Hello,

I am writing a distributed Erlang application where several nodes are
connected via a network with limited bandwidth. Thus, I would like to be
able to minimize the size of the packets sent across the network when
processes on different nodes send each other messages.

>From http://www.erlang.org/doc/apps/erts/erl_ext_dist.html, I understand
that the Erlang distribution mechanism uses erlang:term_to_binary/1,2
internally to convert Erlang messages to the external binary format that is
sent over the network. Now, term_to_binary/2 supports several options that
are useful for reducing the size of the binaries
(http://www.erlang.org/doc/man/erlang.html#term_to_binary-1), including a
compression option as well as the ability to choose a minor version with
more efficient encoding of floats.

I would like to be able to tell the distribution mechanism to use both of
these options every time it sends a message over the network. In other
words, I would like to be able to specify the Options list that the
distribution mechanism calls term_to_binary with. However, I have not been
able to find any documentation on this subject. Is this possible to do?

Thanks for your help! :)


--
View this message in context: http://erlang.2086793.n4.nabble.com/Compressing-messages-sent-between-Erlang-nodes-tp3473464p3473464.html
Sent from the Erlang Questions mailing list archive at Nabble.com.



More information about the erlang-questions mailing list