Patent ID: 7519669

Claim:
A method for processing messages of an enterprise messaging system, the method comprising: executing a plurality of receiving threads in a server to receive a plurality of messages associated with a topic from a plurality of producers, the messages associated with the topic being subscribed by one or more subscribers, the plurality of receiving threads sharing a cache memory of the server, wherein each receiving thread receives messages with a message receiving rate; executing a delivery thread in the server to deliver the plurality of messages to the one or more subscribers, the delivery thread sharing the cache memory of the server, wherein the plurality of receiving threads and the delivery thread are executed in the server according to priorities of the receiving threads and the delivery thread, and wherein the delivery thread delivers the plurality of messages with a message delivery rate; maintaining statistic information regarding the message receiving rate for each of the receiving threads and the message delivery rate for the delivery thread; and configuring the priorities for the execution of the receiving threads and the delivery thread in the server such that a receiving rate of messages from the producers according to the statistic information is relatively equivalent to a delivery rate of messages delivered to the subscribers according to the statistic information.