Reply queue management
AssigneeSprint Communications Company L.P.
InventorMark D. Leonard
Life of this patent
Estimating the term…
Abstract
A method, system, and medium are provided for optimizing assignment of threads to queues within a messaging-middleware environment. Embodiments of the present invention evaluate the number of threads assigned to each individual queue and then assign a new thread to an appropriate queue based on current thread assignments. Different rules may be used to assign threads depending on the number of threads assigned to each queue. For example, initially any queue with less than a low threshold amount of active threads may be assigned threads until the low threshold is met. A different assignment methodology may be used once the low threshold is met. For example, once the low threshold is met, active queues having more than the low threshold, but less than a high threshold, may be assigned threads in a round robin fashion.
Claims6
One or more non-transitory computer-readable media having computer-executable instructions embodied thereon for performing a method of optimizing an allocation of threads to messaging-middleware queues, the method comprising:
- receiving a request to assign an input thread to a queue, wherein the input thread helps communicate a message from an application to the queue;
- retrieving a list of active queues that are designated to receive messages from the application;
- determining an active thread number for each active queue on the list;
- executing an assignment rule to select a specific queue from all of the active queues, the assignment rule being based on the active thread number for each active queue, wherein the assignment rule requires that all queues with below a low threshold of active threads be filled before threads are assigned to a queue having more than the low threshold of active threads;
- and
- assigning the input thread to the specific queue.
Dependencies are inferred from the claim text.