The invention discloses a message sending method and a message sending
system. The message sending
system comprises a
queue-entering interface module, a plurality of
queue modules and a
queue-exiting interface module, wherein the queue-entering interface module is used for receiving a to-be-sent message which is generated by a message producer and writing the to-be-sent message into the queue modules according to the
message type, each queue module comprises a memory
linked list, a reading buffer area and a
database list, and the queue-exiting interface module is used for directly reading the to-be-sent message from the memory
linked list of each queue module according to the priority strategy and sending the to-be-sent message. The message sending method and the message sending
system have the advantages that the data amount of a to-be-sent
list is reduced by adopting the multiple-queue mode, and the operation efficiency of the to-be-sent
list is improved; by adopting the multiple-queue and large-buffer mechanism, the operation of the
database is greatly reduced; different queues are used for different priorities, so the sending speeds of the messages different in priorities are controllable; and the
utilization rate of the
database resource is greatly reduced, the sending efficiency of the messages is improved, and meanwhile, the timeliness of the high-priority message is ensured.