主权项 |
1. A method comprising:
creating, by a processing device executing a virtual machine (VM), a first channel for a first application executed by the virtual machine, wherein the first channel is identified by a name of a group to which the first application is a member, the first channel providing communications for the first application to all members of the group; creating, by the processing device, a second channel for a second application executed by the virtual machine, wherein the second channel is identified by a name of another group to which the second application is a member, the second channel providing communications for the second application to all members of the another group; when a protocol of a transport layer of a protocol stack of each of the first channel and the second channel is the same, sharing, by the processing device, resources to implement a shared transport layer between the first channel and the second channel, wherein the shared resources comprise a default thread pool, an out of bound thread pool, and a timer thread pool, and wherein other protocol layers of the first and second channels operate independently of each other except for the shared transport layer; receiving, by the processing device, a message from a member application through a network interface device connected to a network; and multiplexing, by the processing device, the received message over the shared transport layer to the first application or the second application via the first or second channel in view of a group name identifier located in the received message corresponding to the name of one of the groups to which the first or the second application belongs. |