# US 2021/0286560 A1 · Dynamic queue management

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2021/0286560 A1
- Document ID: US20210286560A1
- Status: Published application
- Kind: A1
- Application number: 17/335,410
- Filed: 2021-06-01
- Published: 2021-09-16
- Earliest claimed: 2019-11-15
- Assignees: Rapid7, Inc.
- Applicants: Rapid7, Inc.
- Inventors: Austin Formosa Lee
- Web page: https://patentgrep.com/patent/US20210286560A1

## CPC

- G06F 3/0659: {Command handling arrangements, e.g. command buffers, queues, command scheduling}
- G06F 3/0604: {Improving or facilitating administration, e.g. storage management}
- G06F 3/0673: {Single storage device}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Methods and systems for managing queues. The disclosed methods involve receiving, at an interface, a request to store a message in a queue, storing the message as a row in a key-value store database, extracting at least one attribute from the message; and selecting the message for processing based on the at least one extracted attribute.

## Claims

### Claim 1

A method comprising:
performing, by a queue management system implemented by one or more computers:
receiving, at an interface, a request to create a queue, wherein messages in the queue are to be stored in a sort order;
creating the queue in a data store, wherein the data store stores a plurality of queues managed by the queue management system, and the data store includes a plurality of partitions each associated with one of the queues;
monitoring one or more statistics of the queue in the data store;
determining, based on the one or more statistics, that the queue is to be processed next among the plurality of queues; and
selecting a message from the queue for processing based on the sort order of the queue.

### Claim 2 (depends on 1)

The method of claim 1, further comprising performing, by the queue management system:
elevating the queue for processing based on the one or more statistics; and
deprioritizing the queue for processing based on the one or more statistics.

### Claim 3 (depends on 1)

The method of claim 1, wherein the one or more statistics include one or more of:
a size of the queue;
an age of the queue; and
a last update time of the queue.

### Claim 4 (depends on 1)

The method of claim 1, further comprising providing, by the queue management system, values of the one or more statistics via an API of the queue management system.

### Claim 5 (depends on 1)

The method of claim 1, further comprising storing, by the queue management system, a message in the queue, wherein the message is stored as a row in the data store including a partition key indicating a partition associated with the queue and a sort key indicating a sort value of the message.

### Claim 6 (depends on 5)

The method of claim 5, wherein the partition key uniquely identifies the queue and includes a name of an organization associated with the queue.

### Claim 7 (depends on 1)

The method of claim 1, further comprising performing, by the queue management system:
storing a first queue with messages stored in a first-in-first-out (FIFO) order; and
storing a second queue with messages stored in a last-in-first-out (LIFO) order.

### Claim 8 (depends on 1)

The method of claim 1, further comprising storing, by the queue management system, the one or more statistics in one or more reserved partitions of the data store.

### Claim 9 (depends on 1)

The method of claim 1, wherein the message is selected from the queue based on one or more attributes extracted from the message.

### Claim 10 (depends on 9)

The method of claim 9, wherein the one or more attributes include one or more of:
a size of the message;
an age of the message;
a priority of the message; and
a sensitivity of the message.

### Claim 11

A system comprising:
one or more computers systems that a queue management system, configured to:
receive, at an interface, a request to create a queue, wherein messages in the queue are to be stored in a sort order;
create the queue in a data store, wherein the data store stores a plurality of queues managed by the queue management system, and the data store includes a plurality of partitions each associated with one of the queues;
monitor one or more statistics of the queue in the data store;
determine, based on the one or more statistics, that the queue is to be processed next among the plurality of queues; and
select a message from the queue for processing based on the sort order of the queue.

### Claim 12 (depends on 11)

The system of claim 11, wherein the queue management system is configured to:
elevate the queue for processing based on the one or more statistics; and
deprioritize the queue for processing based on the one or more statistics.

### Claim 13 (depends on 11)

The system of claim 11, wherein the one or more statistics include one or more of:
a size of the queue;
an age of the queue; and
a last update time of the queue.

### Claim 14 (depends on 11)

The system of claim 11, wherein the queue management system is configured to store the one or more statistics in one or more reserved partitions of the data store.

### Claim 15 (depends on 11)

The system of claim 11, wherein to select the message from the queue, the queue management system is configured to:
extract one or more attributes from the message; and
select the message from the queue based on the one or more attributes.

### Claim 16 (depends on 15)

The system of claim 15, wherein the one or more attributes include one or more of:
a size of the message;
an age of the message;
a priority of the message; and
a sensitivity of the message.

### Claim 17 (depends on 11)

The system of claim 11, wherein the queue management system is configured to store a message in the queue, wherein the message is stored as a row that includes a partition key indicating a partition associated with the queue and a sort key indicating a sort value of the message.

### Claim 18 (depends on 11)

The system of claim 11, wherein the sort key uniquely identifies the message.

### Claim 19

One or more non-transitory computer-readable media storing program instructions that when executed on or across one or more processors implement a queue management system and cause the queue management system to:
receive, at an interface, a request to create a queue, wherein messages in the queue are to be stored in a sort order;
create the queue in a data store, wherein the data store stores a plurality of queues managed by the queue management system, and the data store includes a plurality of partitions each associated with one of the queues;
monitor one or more statistics of the queue in the data store;
determine, based on the one or more statistics, that the queue is to be processed next among the plurality of queues; and
select a message from the queue for processing based on the sort order of the queue.

### Claim 20 (depends on 19)

The one or more non-transitory computer-readable media of claim 19, wherein the program instructions when executed on or across the one or more processors cause the queue management system to:
store a first queue with messages stored in a first-in-first-out (FIFO) order; and
store a second queue with messages stored in a last-in-first-out (LIFO) order.
