I am looking for some data to help me decide which one will be better / faster for communication between two independent processes in Linux:
What's worse: system overhead for pipes or tcp overhead?
Updated exact requirements:
. , TCP/IP . , / .
, , TCP/IP.
, ( ). , TCP?
, , , .
. , . , (, 2 , ... , ). . , .
Edit , . (, ). "" "" 100 . 10 000 . , , , . , , - :
.067 ms
.042 ms
.033 ms
.011 ms
TCP , , , . .
, :
TCP:
(1) - 3- , () .
(2) - IP ( ..), TCP ( , , ..), , , (, ).
- TCP , (.. ) - (: ), (: , ).
: - , - , named/domain pipes, , , .
, , IPC ( ) Linux - . ( , ).
- , , , , .
, , , , Windows, / .
unix - goog. tcp, , . , , - , .
I think the pipes will be a little easier, but I just guess.
But since the pipes are local, much less complex code is probably involved.
Other people can tell you to try and measure both to find out. It is hard to make a mistake with this answer, but you may not want to invest time. This would leave you hoping that my guess is correct;)
Source: https://habr.com/ru/post/1727765/More articles:simultaneous processing java.nio.channels.Selector - javaSharePoint and MVC - asp.net-mvcHow to draw text in iPhone OpenGL ES - iphoneConditional attribute - debuggingA question with a newbie that I have to ask, a beginner of network programming for games? - boostSimple SQL vs. Dialects - genericsспособ реализации МПК - c++What is the advantage of ASP.NET precompilation? - asp.netRequest for Sql Joins - sqlПроверка типов файлов при загрузке и проблемы с зависимостью браузера - mime-typesAll Articles