tonic icon indicating copy to clipboard operation
tonic copied to clipboard

Mechanism of RPC when server and client on same machine

Open chengchen666 opened this issue 1 year ago • 2 comments

I'm new to tonic, and I've successfully built my client & server by using tonic. For my project, most of cases, server and client are on same machine, so I wonder if there's any optimization in tonic for this? Does tonic use shared memory or any optmization strategies in this case? Also, I wonder if anyone has any experience on this kind of optmization? What can I do or optimize if server & client are on same machine? (there are a lot rpc communications, few of them contains large chunk of data, so I want to reduce the overhead introduced by rpc)

chengchen666 avatar Mar 11 '25 20:03 chengchen666

I think you can checkout the uds example

kakalos12 avatar Mar 12 '25 09:03 kakalos12

Thanks!

chengchen666 avatar Mar 13 '25 21:03 chengchen666