# US 10,956,985 B1 · Scalable, service-based architecture for efficiently processing accrual-basis, out-of-order events

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

- Number: US 10,956,985 B1
- Document ID: US10956985B1
- Status: Granted
- Kind: B1
- Application number: 15/274,194
- Filed: 2016-09-23
- Granted: 2021-03-23
- Earliest claimed: 2016-09-23
- Assignees: Amazon Technologies, Inc.
- Applicants: Amazon Technologies, Inc.
- Inventors: Joerg Germann; Jie Gao; Galen Gong; Kyle Malong; Bal Jayme Martin Nodora; Anand Rathi; Pascal Schoenhardt; Ryan Schwartz; Dale Thoma; Victoria Wong; Yu Yi; Desmond Zhou
- Web page: https://patentgrep.com/patent/US10956985B1

## CPC

- G06Q 40/12: Accounting
- G06F 16/2365: {Ensuring data consistency and integrity}
- G06Q: INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Deferred revenue calculations can be necessary in an accrual-basis accounting model where a subscription or other type of sale is conducted that requires deferred revenue recognition. A snapshot state corresponding to the current state of a particular deferral can be generated. Out of order deferred events can also occur. The current state of the deferral can also be published in a downstream system.

## Claims

### Claim 1

A method, comprising:
obtaining, via at least one computing device, a transaction record corresponding to a transaction;
identifying, via the at least one computing device, a deferral record in a data store that corresponds to the transaction record, the deferral record being associated with a plurality of snapshot states, wherein each of the snapshot states expresses a plurality of deferred events associated with the deferral record at a respective point in time;
generating, via the at least one computing device, at least one deferred event corresponding to the transaction record;
generating, via the at least one computing device, a new snapshot state corresponding to the deferral record, the new snapshot state including the at least one deferred event and a plurality of deferred events from a most recent snapshot state;
determining, via the at least one computing device, whether the at least one deferred event predates at least one of the deferred events from the most recent snapshot state;
assigning a bucket identifier to the new snapshot state, the bucket identifier comprising a timestamp that identifies a randomly chosen time prior to a deferral due date by when deferral calculations associated with the new snapshot state should be completed;
recalculating, via the at least one computing device, a respective revenue figure for the at least one deferred event and the deferred events from the most recent snapshot state, the recalculating performed at the randomly chosen time; and
generating, via the at least one computing device, a state of the deferral record based upon the new snapshot state, wherein generating the state of the deferral record is performed at the randomly chosen time that is between when the transaction record is obtained and a calculation deadline.

### Claim 2 (depends on 1)

The method of claim 1, further comprising determining, via the at least one computing device, the calculation deadline associated with the at least one deferred event based upon a deferral date.

### Claim 3 (depends on 1)

The method of claim 1, further comprising generating an identifier for the new snapshot state based upon the randomly chosen time.

### Claim 4 (depends on 1)

The method of claim 1, further comprising generating a state of a plurality of deferral records having a snapshot state with an identifier based upon the randomly chosen time and skipping generation of a state of other ones of the plurality of deferral records without a snapshot state with the identifier based upon the randomly chosen time.

### Claim 5 (depends on 1)

The method of claim 1, wherein the plurality of snapshot states associated with the deferral record are arranged in a linked list and ordered according to timestamp.

### Claim 6 (depends on 1)

The method of claim 1, further comprising publishing the state of the new snapshot state to a downstream general ledger via an application programming interface (API) associated with the general ledger.

### Claim 7 (depends on 1)

The method of claim 1, wherein generating the state of the deferral record based upon the new snapshot state further comprises designating the new snapshot state as the current state of the deferral record.

### Claim 8 (depends on 1)

The method of claim 1, further comprising executing at least one test scenario based upon the deferral record, wherein the at least one test scenario comprises a pointer to the current state of the deferral record.

### Claim 9 (depends on 8)

The method of claim 8, wherein executing the at least one test scenario further comprises generating a copy of the new snapshot state when the at least one test scenario calls for a modification to the current state of the deferral record.

### Claim 10

A system, comprising:
at least one computing device; and
an application executable by the at least one computing device, wherein the application, when executed, causes the at least one computing device to at least:
obtain a transaction record corresponding to a transaction;
identify a deferral record in a data store that corresponds to the transaction record, the deferral record being associated with a plurality of snapshot states, wherein each of the snapshot states expresses a plurality of deferred events associated with the deferral record at a respective point in time;
generate at least one deferred event corresponding to the transaction record;
generate a new snapshot state corresponding to the deferral record, the new snapshot state including the at least one deferred event and a plurality of deferred events from a most recent snapshot state;
determine whether the at least one deferred event predates at least one of the deferred events from the most recent snapshot state;
assign a bucket identifier to the new snapshot state, the bucket identifier comprising a timestamp that identifies a randomly chosen time prior to a deferral due date by when deferral calculations associated with the new snapshot state should be completed;
recalculate a respective revenue figure for the at least one deferred event and the deferred events from the most recent snapshot state, the recalculating performed at the randomly chosen time; and
generate a state of the deferral record based upon the new snapshot state, wherein generating the state of the deferral record is performed at the randomly chosen time that is between when the transaction record is obtained and a calculation deadline.

### Claim 11 (depends on 10)

The system of claim 10, wherein the application further causes the at least one computing device to at least:
determine the calculation deadline associated with the at least one deferred event based upon a deferral date, and wherein generating the state of the deferral record is performed prior to the calculation deadline.

### Claim 12 (depends on 10)

The system of claim 10, wherein the application further causes the at least one computing device to at least:
generate an identifier for the new snapshot state based upon the randomly chosen time.

### Claim 13 (depends on 10)

The system of claim 10, wherein the application further causes the at least one computing device to at least:
generate a state of a plurality of deferral records having a snapshot state with an identifier based upon the randomly chosen time and skipping generation of a state of other ones of the plurality of deferral records without a snapshot state with the identifier based upon the randomly chosen time.

### Claim 14 (depends on 10)

The system of claim 10, wherein the plurality of snapshot states associated with the deferral record are arranged in a linked list and ordered according to timestamp.

### Claim 15 (depends on 10)

The system of claim 10, wherein the application further causes the at least one computing device to at least:
publish the state of the new snapshot state to a downstream general ledger via an application programming interface (API) associated with the general ledger.

### Claim 16 (depends on 10)

The system of claim 10, wherein generating the state of the deferral record based upon the new snapshot state further comprises designating the new snapshot state as the current state of the deferral record.

### Claim 17 (depends on 10)

The system of claim 10, wherein the application further causes the at least one computing device to at least:
execute at least one test scenario based upon the deferral record, wherein the at least one test scenario comprises a pointer to the current state of the deferral record.

### Claim 18 (depends on 17)

The system of claim 17, wherein executing the at least one test scenario further comprises the application further causes the at least one computing device to generate a copy of the new snapshot state when the at least one test scenario calls for a modification to the current state of the deferral record.

### Claim 19

A non-transitory computer-readable medium stored in a memory embodying instructions executable by a processor, the instructions, when executed, causing the processor to at least:
obtain a transaction record corresponding to a transaction;
identify a deferral record in a data store that corresponds to the transaction record, the deferral record being associated with a plurality of snapshot states, wherein each of the snapshot states expresses a plurality of deferred events associated with the deferral record at a respective point in time;
generate at least one deferred event corresponding to the transaction record;
generate a new snapshot state corresponding to the deferral record, the new snapshot state including the at least one deferred event and a plurality of deferred events from a most recent snapshot state;
determine whether the at least one deferred event predates at least one of the deferred events from the most recent snapshot state;
assign a bucket identifier to the new snapshot state, the bucket identifier comprising a timestamp that identifies a randomly chosen time prior to a deferral due date by when deferral calculations associated with the new snapshot state should be completed;
recalculate a respective revenue figure for the at least one deferred event and the deferred events from the most recent snapshot state, the recalculating performed at the randomly chosen time; and
generate a state of the deferral record based upon the new snapshot state, wherein generating the state of the deferral record is performed at the randomly chosen time that is between when the transaction record is obtained and a calculation deadline.

### Claim 20 (depends on 19)

The non-transitory computer-readable medium of claim 19, wherein the instructions further causing the processor to at least:
generate a state of a plurality of deferral records having a snapshot state with an identifier based upon the randomly chosen time and skipping generation of a state of other ones of the plurality of deferral records without a snapshot state with the identifier based upon the randomly chosen time.
