Proposed is a method for constructing a message bus. The message bus is based on a peer-to-peer network structure. Each node is required to deploy a message node, the message node being responsible for subscription and publishing of a message. Among various message nodes, a message can be published and a message can also be subscribed. The message nodes are self-organized, can automatically construct a message bus, and guarantee that the message bus has a relatively high reliability in terms of the bus structure