On 2022-12-27 at 20:06:34 UTC-0500 (Wed, 28 Dec 2022 14:06:34 +1300)
Peter <[email protected]>
is rumored to have said:

On 24/12/22 16:38, raf wrote:
I wouldn't be too keen to do that. UNIX domain sockets
are faster than TCP.

This is the first time I've ever heard that. Can you back this up with a link or something, I'd like to find out more.

Google is your friend...

The first non-StackOverflow link I get is https://blog.myhro.info/2017/01/how-fast-are-unix-domain-sockets which is a reasonable explanation with demo code.

The simplest explanation is that TCP/IP's encapsulation of data, the whole acknowledgment, re-transmittal, and out-of-order handling functionality of TCP, and the mandatory division of data into small chunks all add overhead which you do not have with a Unix-domain socket.



--
Bill Cole
[email protected] or [email protected]
(AKA @grumpybozo and many *@billmail.scconsult.com addresses)
Not Currently Available For Hire

Reply via email to