Methods and apparatuses for prioritizing producers and consumers in an
enterprise messaging system are described herein. In one embodiment, an
exemplary process is provided to receive multiple messages associated
with a topic from multiple producers via multiple receiving threads,
where the messages associated with the topic are subscribed to by one or
more subscribers. The messages are delivered to the subscribers via a
delivery thread. The priorities of the receiving threads and the delivery
thread are configured such that a receiving rate of messages from the
producers is substantially equivalent to a delivery rate of messages
delivered to the subscribers. Other methods and apparatuses are also
described.