Say we have a named pipe:
mkfifo my_named_pipe
say there are multiple writers writing to this named pipe:
node x.js > ${my_named_pipe} &
node y.js > ${my_named_pipe} &
node z.js > ${my_named_pipe} &
something like that - is there a reliable way to multiplex it, so that one whole message gets through each time, or can a named pipe reliable read from only one writer?
It leads me to wonder how we multiplex ports/sockets etc, I don't know how it's done.