[erlang-questions] Sending 2.5 MB message with com.ericsson.otp.erlang
Thu Oct 27 16:07:37 CEST 2011
Perhaps you can use a similar approach that, for example, the OMG used
in the File Transfer spec (see also
http://www.erlang.org/doc/apps/cosFileTransfer/ch_system.html). I.e. the
client and server decides how a transfer can be done via your own
Jinterface-based "protocol" (e.g. stream, ftp etc), transfer the data
and then come to terms if the transfer were successful or not.
On 10/27/2011 03:41 PM, Martin Dimitrov wrote:
> Thanks for the suggestion but how do I send chucked Erlang tuple? The
> OtpMbox.send() method doesn't send bytes.
> On 10/27/2011 12:03 PM, CGS wrote:
>> Hi Martin,
>> I suppose you can quantify your data in smaller chunks optimized for
>> transfer speed. That's one idea, but I am sure there are other ideas
>> which may be even better.
>> On 10/27/2011 10:46 AM, Martin Dimitrov wrote:
>>> In out app, the Java node sends messages to Erlang through
>>> com.ericsson.otp.erlang package. In Java we create an OtpNode as:
>>> OtpNode oNode = new OtpNode(NODE);
>>> OtpMbox mbox = oNode.createMbox(MBOX);
>>> and then send using
>>> mbox.send(OtpErlangPid, OtpErlangTuple);
>>> All is well when sending small in size messages (several KB). But when
>>> sending a relatively large message (2.5MB) it takes 8-10 seconds. The
>>> interesting thing is that the time it takes does not linearly progress
>>> with the size of the message: 250KB message took around 100
>>> Does anyone know ways to optimize the transfer?
>>> erlang-questions mailing list
>> erlang-questions mailing list
> erlang-questions mailing list
More information about the erlang-questions