Currently, in Process, the IPC socket is declared with: socket: Arc<Mutex<SocketHandler>>
The downside to this is in order to read or write, you need to access the mutex. They cannot be done concurrently.
However, I don't think there is a benefit to single duplex communication.
In the future, especially if this becomes a performance bottleneck, it may make sense to instead have mutexes on the relevant read and write components within the SocketHandler.
Currently, in Process, the IPC socket is declared with:
socket: Arc<Mutex<SocketHandler>>The downside to this is in order to read or write, you need to access the mutex. They cannot be done concurrently.
However, I don't think there is a benefit to single duplex communication.
In the future, especially if this becomes a performance bottleneck, it may make sense to instead have mutexes on the relevant read and write components within the SocketHandler.