A
A
Alexander Grishin2015-09-02 13:13:10
linux
Alexander Grishin, 2015-09-02 13:13:10

IPC - which is faster?

Yes
----------------
| requests.....|
| clients.... |
----------------
.....|......|.....|
.....V.....V....V
-------------------- .......................BASH-TERMINAL:
|WEB-SERVER...|............... .........server ~ # interpretator SCRIPT2.XXX
-------------------... ................................................. ..........|
.............|................................. ............... (running in the background)
|-----------------| (IPC interaction)..|---------------------------------------------------- ---|
| SCRIPT1.XXX | -------------------------------->|.........SCRIPT2.XXX running......... ...........|
|-----------------|............................... ......|------------------------------------------------ ---|
Question: What is the best way to organize?
1) mkfifo ?
2) UNIX socket?
What will work faster?
I dug up this Pipe vs Unix Socket Performance
Here is from this discussion http://stackoverflow.comhttp://stackoverflow.com - but English is bad ...
Who will say what?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Andrey Nikiforov, 2015-09-02
@beerdy

In the discussion you linked to, they write a very correct thing: "it looks like you're prematurely trying to optimize something that isn't yet problematic."
Is IPC currently bottleneck enough for you to optimize it? Implement what is easier to implement.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question