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

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

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

Postby wulixue » Mon Oct 21, 2019 3:00 am

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: 236
Joined: Mon Oct 03, 2011 4:53 am
Contact:

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

Postby jarl » Tue Nov 26, 2019 11:06 pm

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


Return to “Support - RCF”

Who is online

Users browsing this forum: No registered users and 1 guest

cron