×

SYSTEM AND METHOD FOR DEQUEUE OPTIMIZATION USING CONDITIONAL ITERATION

  • US 20180324129A1
  • Filed: 05/05/2017
  • Published: 11/08/2018
  • Est. Priority Date: 05/05/2017
  • Status: Active Grant
First Claim
Patent Images

1. A system for dequeuing messages in a queue that is temporally ordered, the system comprising:

  • at least one non-volatile storage device configured to store;

    queue logic for providing and managing the queue, the queue being configured to include at least one data page; and

    at least one processor configured to perform operations on the queue based on the queue logic, the queue logic comprising;

    enqueue logic configured to enqueue at least one valid message, each having an expiry time, in a tail data page of the least one data page that includes a tail of the queue;

    aggregator logic configured to;

    for each of the at least one data page;

    aggregate expired messages to determine an expiration time of the expired messages of the at least one data page; and

    store a latest expiration time, the latest expiration time representing a latest value of the aggregated expired messages of its associated data page, with its associated data page;

    dequeue logic configured to receive a request to dequeue a valid message of the at least one valid message; and

    iterator logic configured to;

    determine a queue location in one of the at least one data page for a next valid message based on a comparison of a current time and the latest expiration time for one or more of the at least one data page; and

    bypass one or more of the at least one data page to dequeue the valid message from a data page that includes the queue location of the at least one data page.

View all claims
  • 2 Assignments
Timeline View
Assignment View
    ×
    ×