<div dir="ltr">Hi Gustavo,<div><br></div><div>Based on my experience connecting remote clients with Erlang servers, Protocol Buffers works quite well. Unless you need something special (e.g. extra performance or extra simplicity), I would stick with it. It is a mature and very powerful tool. Important thing -- there are a couple of stable and well-maintained implementations of Protocol Buffers for Erlang:</div>
<div><br></div><div><a href="https://github.com/tomas-abrahamsson/gpb">https://github.com/tomas-abrahamsson/gpb</a><br></div><div><a href="https://github.com/alavrik/piqi-erlang">https://github.com/alavrik/piqi-erlang</a></div>
<div><br></div><div><span style="font-family:arial,sans-serif;font-size:13px">basho/protobuff is a fork of a really old Protobuf implementation for Erlang. It has a lot of limitations and issues. I wouldn't recommend it.</span><br>
</div><div><br></div><div>I am not very knowledgeable about what people use on Android. One thing I heard that the stock Protocol Buffers for Java implementation may be a bit too heavy for mobile clients. You may want to check this alternative implementation: <a href="https://github.com/square/wire">https://github.com/square/wire</a></div>
<div><br></div><div>For transport, I'd recommend HTTP/HTTPS. Again, unless you need something special.</div><div><br></div><div>You may also want to take a look at piqi-rpc. It helps to write Erlang servers and gives clients a choice to use Protocol Buffers, JSON or XML for making RPC-style calls over plain HTTP (I am an author of this tool).</div>
<div><br></div><div>Anton</div><div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Sun, Aug 24, 2014 at 10:03 PM, Gustavo Pires <span dir="ltr"><<a href="mailto:devgutt@gmail.com" target="_blank">devgutt@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hello everyone,<div><br></div><div>What do you think I should use to transfer data between Android and an Erlang Server? I think a good approach would be Sockets + Protobuff, but I feel overwhelmed by the myriad of options out there (json, msgpack, thrift, bert, ubf, ...).</div>
<div><br></div><div>I read some old threads in the list, but they are too old. I agree with an old Joe's comment about saving as much bandwidth you can, but I'm not sure how stable are programs like basho/protobuff and msgpack for erlang. It seems they don't evolve much in the last two years.</div>
<div><br></div><div>Any though about this would be appreciated.</div><span class="HOEnZb"><font color="#888888"><div><br></div><div>Gustavo </div></font></span></div>
<br>_______________________________________________<br>
erlang-questions mailing list<br>
<a href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a><br>
<a href="http://erlang.org/mailman/listinfo/erlang-questions" target="_blank">http://erlang.org/mailman/listinfo/erlang-questions</a><br>
<br></blockquote></div><br></div>