1. A method comprising: determining whether a network connection is between software entities residing in a same operating system; and in response to a determination that the network connection is between software entities residing in the same operating system, replacing the network connection with an interprocess communication connection.