Page 1 of 1

How to use RCF to establish long TCP connection for binary data transmission?

Posted: Mon Oct 21, 2019 3:00 am
by wulixue
HI.


For performance, throughput, and latency reasons, I want to do pure binary transmission, but not RPC based. Can it be implemented with RCF? If possible, what to do?

Re: How to use RCF to establish long TCP connection for binary data transmission?

Posted: Tue Nov 26, 2019 11:06 pm
by jarl
You can pass binary blobs back and forth on a RCF connection, using RCF::ByteBuffer:

http://www.deltavsoft.com/doc/_performance.html

ByteBuffer's are never copied, they are only reference counted, so you can move a lot of data around without incurring significant overhead. If you have a method like this:

Code: Select all

RCF_METHOD_R1(RCF::ByteBuffer, myFunc, RCF::ByteBuffer)
, then there will be no serialization overhead at all, which can make a big difference. You would just have to parse the ByteBuffer's yourself.