# US 10,953,328 B1 · Dynamic batching interval adjustment for game session creation

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

- Number: US 10,953,328 B1
- Document ID: US10953328B1
- Status: Granted
- Kind: B1
- Application number: 16/430,184
- Filed: 2019-06-03
- Granted: 2021-03-23
- Earliest claimed: 2019-06-03
- Assignees: Amazon Technologies, Inc.
- Applicants: Amazon Technologies, Inc.
- Inventors: Brian J Schuster
- Web page: https://patentgrep.com/patent/US10953328B1

## CPC

- A63F 13/48: Starting a game, e.g. activating a game device or waiting for other players to join a multiplayer session
- G06F 9/45533: {Hypervisors; Virtual machine monitors}
- A63F 13/335: using Internet
- A63F 13/352: involving special game server arrangements, e.g. regional servers connected to a national server or a plurality of servers managing partitions of the game world
- A63F 13/355: Performing operations on behalf of clients with restricted processing capabilities, e.g. servers transform changing game scene into an encoded video stream for transmitting to a mobile phone or a thin client
- A63F 13/358: Adapting the game course according to the network or server load, e.g. for reducing latency due to different connection speeds between clients
- G06F 9/45558: {Hypervisor-specific management and integration aspects}
- G06F 9/4881: {Scheduling strategies for dispatcher, e.g. round robin, multi-level priority queues}
- G06F 9/5072: {Grid computing}
- A63F 2300/5513: involving billing
- A63F 2300/5546: using player registration data, e.g. identification, account, preferences, game history
- G06F 2009/45575: {Starting, stopping, suspending or resuming virtual machine instances}
- G06F 2009/45595: {Network integration; Enabling network access in virtual machine instances}
- A63F: CARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A game-hosting service of a service provider network is configured to dynamically adjust a batching interval used to assign processes to game session requests in batches of processes. The adjustment of the batching interval may be based on a level of contention resulting from operations to assign processes to game session requests. With the batching interval adjusted, the game-hosting service may queue one or more incoming game session requests received during the batching interval, query a data store for available processes after a lapse of the batching interval, assign ones of the available server processes to the game session request(s), and instruct the assigned processes to host corresponding game sessions. Dynamically adjusting the batching interval in this manner allows high volume games to benefit from added throughput, while lower volume games can benefit from quicker latency.

## Claims

### Claim 1

A computer-implemented method comprising:
executing, by one or more computing devices of a game-hosting service associated with a service provider network, multiple first server processes on a fleet of virtual machine instances, the fleet of virtual machine instances being allocated to a subscriber of the service provider network and executing on computing resources of the service provider network;
performing operations to assign the multiple first server processes to multiple first game session requests over a time period;
detecting, based on the operations, at least one of a number or a percentage of failed attempts to assign individual ones of the multiple first server processes to the multiple first game session requests, wherein the failed attempts are caused by the individual ones of the multiple first server processes having already been assigned to a game session request;
determining that the at least one of the number or the percentage of the failed attempts violates a threshold;
increasing, based on the threshold being violated, a first batching interval from a first period of time to a second period of time that is greater than the first period of time to produce a second batching interval;
queueing multiple second game session requests received during the second batching interval;
after a lapse of the second batching interval, querying a data store for a number of second server processes executing on the fleet of virtual machine instances that are idle;
assigning at least a subset of the second server processes to the multiple second game session requests as assigned server processes; and
instructing the assigned server processes to host multiple game sessions corresponding to the multiple second game session requests.

### Claim 2 (depends on 1)

The computer-implemented method of claim 1, wherein the increasing of the first batching interval comprises:
increasing the first batching interval from the first period of time to an intermediate period of time to produce an intermediate batching interval, the intermediate period of time being greater than the first period of time and being less than the second period of time;
determining that the at least one of the number or the percentage of the failed attempts still violates the threshold with the intermediate batching interval;
increasing the intermediate batching interval from the intermediate period of time to the second period of time to produce the second batching interval;
determining that the at least one of the number or the percentage of the failed attempts does not violate the threshold with the second batching interval; and
ceasing to increase the second batching interval based on the at least one of the number or the percentage of the failed attempts not violating the threshold.

### Claim 3 (depends on 1)

The computer-implemented method of claim 1, wherein the second period of time represents a highest value of a range of values over which one or more batching intervals are adjustable, the computer-implemented method further comprising:
ceasing to increase the second batching interval based on the second period of time representing the highest value of the range.

### Claim 4 (depends on 1)

The computer-implemented method of claim 1, further comprising:
receiving, via a user interface presented on a computing device of the subscriber, user input to adjust a parameter to a value, the value of the parameter indicative of at least one of:
an allowed level of contention allowed during game session placements; or
an amount of delay allowed during the game session placements, and
setting, based on the value of the parameter, one or more values corresponding to at least one of:
a first rate at which one or more batching intervals are increased based on an increase in a level of contention;
a second rate at which the one or more batching intervals are decreased based on a decrease in the level of contention;
a threshold level of contention that triggers adjustment of the one or more batching intervals; or
a range over which the one or more batching intervals are adjustable.

### Claim 5

A computer-implemented method comprising:
determining, by one or more computing devices of a game-hosting service associated with a service provider network, a level of contention resulting from operations to assign processes to game session requests;
adjusting, based at least in part on the level of contention, a first batching interval from a first period of time to a second period of time to produce a second batching interval;
queueing one or more game session requests received during the second batching interval, the one or more game session requests including at least a first game session request; and
after a lapse of the second period of time of the second batching interval, assigning, from available processes that are idle, a first process to the first game session request.

### Claim 6 (depends on 5)

The computer-implemented method of claim 5, wherein the determining the level of contention comprises detecting, based at least in part the operations to assign the processes to the game session requests, a number of failed attempts to assign individual ones of the processes to the game session requests over a time period, wherein the failed attempts are caused by the individual ones of the processes already having been assigned to a game session request.

### Claim 7 (depends on 5)

The computer-implemented method of claim 5, wherein the determining the level of contention comprises detecting, based at least in part on the operations to assign the processes to the game session requests, a percentage of total attempts to assign individual ones of the processes to the game session requests over a time period that corresponds to failed attempts, wherein the failed attempts are caused by the individual ones of the processes already having been assigned to a game session request.

### Claim 8 (depends on 5)

The computer-implemented method of claim 5, further comprising determining that the level of contention violates a threshold level of contention, wherein the adjusting the first batching interval is based at least in part on the level of contention violating the threshold level of contention.

### Claim 9 (depends on 8)

The computer-implemented method of claim 8, wherein the adjusting the first batching interval comprises:
increasing the first batching interval from the first period of time to an intermediate period of time to produce an intermediate batching interval, the intermediate period of time being greater than the first period of time and being less than the second period of time;
determining that the level of contention still violates the threshold level of contention with the intermediate batching interval;
increasing the intermediate batching interval from the intermediate period of time to the second period of time to produce the second batching interval;
determining that the level of contention does not violate the threshold level of contention with the second batching interval; and
ceasing to increase the second batching interval based at least in part on the level of contention not violating the threshold level of contention.

### Claim 10 (depends on 5)

The computer-implemented method of claim 5, wherein the adjusting the first batching interval comprises decreasing the first batching interval incrementally over a time period to the second period of time to produce the second batching interval, the second period of time being less than the first period of time.

### Claim 11 (depends on 10)

The computer-implemented method of claim 10, wherein the second period of time represents a lowest value of a range of values over which one or more batching intervals are adjustable.

### Claim 12 (depends on 5)

The computer-implemented method of claim 5, wherein the available processes are, prior to the assigning, executing in an idle mode on a fleet of virtual machine instances that are allocated to a subscriber of the service provider network and that are usable to host game sessions for clients of the subscriber.

### Claim 13 (depends on 12)

The computer-implemented method of claim 12, further comprising:
receiving, via a user interface presented on a computing device of the subscriber, user input to adjust a parameter to a value, the value of the parameter indicative of at least one of:
an allowed level of contention allowed during game session placements; or
an amount of delay allowed during the game session placements, and
setting, based at least in part on the value of the parameter, one or more values corresponding to at least one of:
a first rate at which one or more batching intervals are increased based on an increase in the level of contention;
a second rate at which the one or more batching intervals are decreased based on a decrease in the level of contention;
a threshold level of contention that triggers adjustment of the one or more batching intervals; or
a range over which the one or more batching intervals are adjustable.

### Claim 14 (depends on 5)

The computer-implemented method of claim 5, further comprising, after the lapse of the second period of time of the second batching interval:
prior to the assigning the first process to the first game session request, determining a first number of the available processes that is greater than or equal to a second number of the one or more game session requests; and
after the assigning the first process to the first game session request, instructing the first process to host a first game session corresponding to the first game session request.

### Claim 15

A system comprising:
one or more processors; and
non-transitory computer-readable media storing computer-executable instructions that, when executed by the one or more processors, cause the system to:
determine a level of contention resulting from operations to assign processes to game session requests;
adjust, based at least in part on the level of contention, a first batching interval from a first period of time to a second period of time to produce a second batching interval;
queue one or more game session requests received during the second batching interval, the one or more game session requests including at least a first game session request; and
after a lapse of the second period of time of the second batching interval, assign, from available processes that are idle, a first process to the first game session request.

### Claim 16 (depends on 15)

The system of claim 15, wherein determining the level of contention comprises detecting, based at least in part on the operations to assign the processes to the game session requests, at least one of:
a number of failed attempts to assign individual ones of the processes to the game session requests over a time period; or
a percentage of total attempts that are the failed attempts to assign the individual ones of the processes to the game session requests over the time period, or a different time period;
wherein the failed attempts are caused by the individual ones of the processes already having been assigned to a game session request.

### Claim 17 (depends on 15)

The system of claim 15, wherein the computer-executable instructions, when executed by the one or more processors, further cause the system to:
determine that the level of contention violates a threshold level of contention, and wherein adjusting the first batching interval comprises:
increasing the first batching interval from the first period of time to an intermediate period of time to produce an intermediate batching interval, the intermediate period of time being greater than the first period of time and being less than the second period of time;
determining that the level of contention still violates the threshold level of contention with the intermediate batching interval;
increasing the intermediate batching interval from the intermediate period of time to the second period of time to produce the second batching interval;
determining that the level of contention does not violate the threshold level of contention with the second batching interval; and
ceasing to increase the second batching interval based at least in part on the level of contention not violating the threshold level of contention.

### Claim 18 (depends on 15)

The system of claim 15, wherein the computer-executable instructions, when executed by the one or more processors, further cause the system to:
determine that the level of contention violates a threshold level of contention, and wherein adjusting the first batching interval comprises:
increasing the first batching interval from the first period of time to the second period of time to produce the second batching interval, the second period of time being greater than the first period of time, and the second period of time representing a highest value of a range of values over which one or more batching intervals are adjustable; and
ceasing to increase the second batching interval based at least in part on the second period of time representing the highest value of the range.

### Claim 19 (depends on 15)

The system of claim 15, wherein the computer-executable instructions, when executed by the one or more processors, further cause the system to determine that the level of contention violates a threshold level of contention, and wherein adjusting the first batching interval comprises decreasing the first batching interval incrementally over a time period from the first period of time to the second period of time to produce the second batching interval, the second period of time being less than the first period of time.

### Claim 20 (depends on 15)

The system of claim 15, wherein the available processes are, prior to assigning the first process to the first game session request, executing in an idle mode on a fleet of virtual machine instances that are allocated to a subscriber of a service provider network and that are usable to host game sessions for clients of the subscriber.

### Claim 21 (depends on 20)

The system of claim 20, wherein the computer-executable instructions, when executed by the one or more processors, further cause the system to:
receive, via a user interface presented on a computing device of the subscriber, user input to adjust a parameter to a value, the value of the parameter indicative of at least one of:
an allowed level of contention allowed during game session placements; or
an amount of delay allowed during the game session placements, and
set, based at least in part on the value of the parameter, one or more values corresponding to at least one of:
a first rate at which one or more batching intervals are increased based on an increase in the level of contention;
a second rate at which the one or more batching intervals are decreased based on a decrease in the level of contention;
a threshold level of contention that triggers adjustment of the one or more batching intervals; or
a range over which the one or more batching intervals are adjustable.
