# US 2023/0266995 A1 · Methods and systems for processing requests using load-dependent throttling

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

- Number: US 2023/0266995 A1
- Document ID: US20230266995A1
- Status: Published application
- Kind: A1
- Application number: 17/675,093
- Filed: 2022-02-18
- Published: 2023-08-24
- Earliest claimed: 2022-02-18
- Assignees: Shopify Inc.
- Applicants: Shopify Inc.
- Inventors: Robert MIC; Aline Fatima Manera; Timothy Willard; Nicole Simone; Scott Weber
- Web page: https://patentgrep.com/patent/US20230266995A1

## CPC

- G06F 9/4881: {Scheduling strategies for dispatcher, e.g. round robin, multi-level priority queues}
- G06F 1/08: Clock generators with changeable or programmable clock frequency
- G06F 9/5005: {to service a request}
- G06F 9/54: Interprogram communication
- G06F 2209/483: Multiproc
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Methods and systems for processing requests with load-dependent throttling. The system compares a count of active job requests being currently processed for a user associated with a new job request with an active job cap number for that user. When the count of active job requests being currently processed for that user does not exceed the active job cap number specific to that user, the job request is added to an active job queue for processing. However, when the count of active job requests being currently processed for that user exceeds the active job cap number, the job request is placed on a throttled queue to await later processing when an updated count of active job requests being currently processed for that user is below the active job cap number. Once the count is below the cap, the throttle request is moved to the active job queue for processing.

## Claims

### Claim 1

A computing device, comprising:
one or more processors;
one or more data storage units; and
an application stored in the one or more data storage units and having processor-readable instructions that, when executed by the one or more processors, are to cause the one or more processors to:
receive a job request to implement an action from a feature set having one or more configurable actions, the job request associated with a particular user of the feature set;
compare a count of active job requests being currently processed for the particular user with an active job cap number for that user; and
selectively process the job request based on the comparison of the count of active job requests currently processed for the particular user with the active job cap number for that user,
wherein when the count of active job requests being currently processed for the particular one of the users does not exceed the active job cap number, the job request is added to an active job queue for processing, and
wherein when the count of active job requests being currently processed for the particular user exceeds the active job cap number, the job request is placed on a throttled queue to await later processing when an updated count of active job requests being currently processed for the particular user is below the active job cap number for that user.

### Claim 2 (depends on 1)

The computing device of claim 1, wherein the instructions, when executed by the one or more processors, are to cause the one or more processors to later process the job request added to the throttled queue by transferring the job request from the throttled queue to the active job queue.

### Claim 3 (depends on 2)

The computing device of claim 2, wherein the instructions, when executed by the one or more processors, are to further cause the processors to determine the updated count of active job requests being currently processed for the particular user in response to detecting an unthrottling trigger event.

### Claim 4 (depends on 1)

The computing device of claim 1, wherein the active job cap number for the particular user is associated with the feature set corresponding to the job request.

### Claim 5 (depends on 1)

The computing device of claim 1, wherein the active job queue includes, for each job request in the active job queue, a user identifier identifying a user associated with that job request.

### Claim 6 (depends on 5)

The computing device of claim 5, wherein the instructions, when executed by the one or more processors, are to further cause the one or more processors to determine the count of active job requests being currently processed for the particular user by counting a number of user identifiers in the active job queue identifying that user.

### Claim 7 (depends on 1)

The computing device of claim 1, wherein the instructions, when executed by the one or more processors, are to cause the one or more processors to place the job request on the throttled queue on condition that the one or more processing units determine that the job request is not a high priority job request.

### Claim 8 (depends on 1)

The computing device of claim 1, wherein the instructions, when executed by the one or more processors, are to further cause the one or more processors to:
receive a second job request to implement a second action associated with the particular user;
determine that a current count of active job requests being processed for the particular user exceeds the active job cap number for that user;
determine that the second job request is a high priority job request; and
in response, add the second job request to the active job queue instead of the throttled queue.

### Claim 9 (depends on 1)

The computing device of claim 1, wherein the job request is generated responsive to detecting a trigger condition associated with the action.

### Claim 10

A computer-implemented method comprising:
receiving a job request to implement an action from a feature set having one or more configurable actions, the job request associated with a particular user of the feature set;
comparing a count of active job requests being currently processed for the particular user with an active job cap number for that user; and
selectively processing the job request based on the comparison of the count of active job requests currently processed for the particular user with the active job cap number for that user,
wherein when the count of active job requests being currently processed for the particular user does not exceed the active job cap number, the job request is added to an active job queue for processing, and
wherein when the count of active job requests being currently processed for the particular user exceeds the active job cap number, the job request is placed on a throttled queue to await later processing when an updated count of active job requests being currently processed for the particular user is below the active job cap number for that user.

### Claim 11 (depends on 10)

The method of claim 10, wherein the later processing of the job request added to the throttled queue includes transferring the job request from the throttled queue to the active job queue.

### Claim 12 (depends on 11)

The method of claim 11, wherein determining the updated count of active job requests being currently processed for the particular user occurs in response to detecting an unthrottling trigger event.

### Claim 13 (depends on 10)

The method of claim 10, wherein the active job cap number for the particular user is associated with the feature set corresponding to the job request.

### Claim 14 (depends on 10)

The method of claim 10, wherein the active job queue includes, for each job request in the active job queue, a user identifier identifying a user associated with that job request.

### Claim 15 (depends on 14)

The method of claim 14, further comprising determining the count of active job requests being currently processed for the particular user by counting a number of user identifiers in the active job queue identifying that user.

### Claim 16 (depends on 10)

The method of claim 10, wherein placing the job request on the throttled queue requires, as a precondition, determining that the job request is not a high priority job request.

### Claim 17 (depends on 10)

The method of claim 10, further comprising:
receiving a second job request to implement a second action associated with the particular user;
determining that a current count of active job requests being processed for the particular user exceeds the active job cap number for that user;
determining that the second job request is a high priority job request; and
in response, adding the second job request to the active job queue instead of the throttled queue.

### Claim 18 (depends on 10)

The method of claim 10, wherein the job request is generated responsive to detecting a trigger condition associated with the action.

### Claim 19

A non-transitory, computer-readable medium storing computer-executable instructions that, when executed by one or more processors, are to cause the one or more processors to:
receive a job request to implement an action from a feature set having one or more configurable actions, the job request associated with a particular user of the feature set;
compare a count of active job requests being currently processed for the particular user with an active job cap number for that user; and
selectively process the job request based on the comparison of the count of active job requests currently processed for the particular user with the active job cap number for that user,
wherein when the count of active job requests being currently processed for the particular user does not exceed the active job cap number, the job request is added to an active job queue for processing, and
wherein when the count of active job requests being currently processed for the particular user exceeds the active job cap number, the job request is placed on a throttled queue to await later processing when an updated count of active job requests being currently processed for the particular user is below the active job cap number for that user.

### Claim 20 (depends on 19)

The non-transitory, computer-readable medium of claim 19, wherein the instructions, when executed by the one or more processors, are to cause the one or more processors to later process the job request added to the throttled queue by transferring the job request from the throttled queue to the active job queue.
