摘要 |
The invention discloses a method and a device for storing a message to solve the problem of single node storage in the prior art. The method comprises the following steps: receiving a message additionrequest; selecting a storage node from a preset storage node list, storing the message; and storing the mapping relationship between the message and the storage node storing the message. The scheme can solve two problems: the first one is that when one of the storage nodes goes wrong, the message can be stored into other nodes, so that a message middleware is out of order is avoided; the second one is that if the message traffic is excessive, the storage pressure can be distributed on the plurality of storage nodes. The invention also discloses a message processing system so as to solve the problem that the storage of a message by a single node to be forwarded is likely to cause system bottleneck and processing interrupt. |