I have an application in which we can open multiple instances. For some real time communication between the instances I want to use named pipes.
The communication will not be frequent but whenever it is done it needs to be almost realtime. So I am contemplating whether I should open a named pipe whenever a need to transmit such messages arises OR keep the pipe open from the start of application and use it whenever needed.
Is keeping named pipes open for entire duration ok?