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

RCF support and general discussion.
Post Reply
wulixue
Posts: 8
Joined: Sun Dec 20, 2015 6:26 pm

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

Post 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?

jarl
Posts: 238
Joined: Mon Oct 03, 2011 4:53 am
Contact:

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

Post 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.
Kind Regards

Jarl Lindrud
Delta V Software
http://www.deltavsoft.com

Post Reply