# US 10,956,399 B1 · Transaction pipelining in a journaled database

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

- Number: US 10,956,399 B1
- Document ID: US10956399B1
- Status: Granted
- Kind: B1
- Application number: 15/199,852
- Filed: 2016-06-30
- Granted: 2021-03-23
- Earliest claimed: 2016-06-30
- Assignees: Amazon Technologies, Inc.
- Applicants: Amazon Technologies, Inc.
- Inventors: Timothy Daniel Cole; John Michael Morkel; Allan Henry Vermeulen; Christopher Richard Jacques de Kadt
- Web page: https://patentgrep.com/patent/US10956399B1

## CPC

- G06F 16/2315: {Optimistic concurrency control}
- G06F 16/2365: {Ensuring data consistency and integrity}
- G06F 16/1805: {Append-only file systems, e.g. using logs or journals to store data}
- G06F 16/2379: {Updates performed during online database operations; commit processing}
- G06F 16/27: Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A journaled database may comprise a computing node that forms a local version of a global state, synchronized with respect to the high-water mark of a data node that maintains the global state. Instructions to modify the state that have been committed, subsequent to forming the local version of the state, may be represented in a merge signature. An uncommitted transaction may be checked for conflicts with respect to a last-ordered committed instruction to modify the data state. Validation with respect to earlier instructions represented by the merge signature may be skipped.

## Claims

### Claim 1

A system, comprising:
a storage device configured to store thereon a collection of data;
a first computing node in communication with the storage device; and
a second computing node that at least:
forms a first version of a state of the collection of data;
modifies the first version of the state of the collection of data, based at least in part on a first plurality of instructions to modify the state of the collection of data, the first plurality of instructions corresponding to a first plurality of sequence numbers;
stores, in a first data structure, a first data comprising information representative of the first plurality of sequence numbers, wherein the first data structure is a first merge signature stored as a compressed representation of the first plurality of sequence numbers;
receives a second instruction to modify the state of the collection of data;
sends information indicative of validating the second instruction to the first node, the information comprising the first data, wherein validating the second instruction, by the first node, comprises validating the second instruction with respect to potential conflicts with one or more other instructions and skipping validation of one or more of the first plurality of instructions corresponding to sequence numbers represented by the first data;
forms a second version of the state of the collection of data, the second version of the state associated with a second transaction, the second version of the state formed to initially correspond to the modified first version of the state; and
stores in a second data structure information representative of sequence numbers associated with the second transaction, the second data structure initially comprising information representative of a last sequence number of the first plurality of sequence numbers.

### Claim 2 (depends on 1)

The system of claim 1, wherein the first data structure comprises a list of the first plurality of sequence numbers.

### Claim 3 (depends on 1)

The system of claim 1, wherein the first plurality of sequence numbers correspond to an ordering of the first plurality of instructions.

### Claim 4 (depends on 3)

The system of claim 3, wherein validating the second instruction comprises validating the second instruction with respect to a state associated with a last-ordered sequence number of the first plurality of sequence numbers.

### Claim 5

A method comprising:
forming a first version of a state of a collection of data in response to a request to initiate a first transaction;
modifying the first version of the state based at least in part on a first plurality of instructions to modify the state of the collection of data, the first plurality of instructions corresponding to a first plurality of sequence numbers;
storing, in a first data structure, a first data to represent the first plurality of sequence numbers, wherein the first data structure is a first merge signature stored as a compressed representation of the first plurality of sequence numbers;
receiving a second instruction to modify the state of the collection of data;
sending information indicative of validating the second instruction to a first node, the information comprising the first data, wherein validating the second instruction, by the first node, comprises validating the second instruction with respect to potential conflicts with one or more other instructions and skipping validation of one or more of the first plurality of instructions corresponding to sequence numbers represented by the first data; and
forming a second version of the state of the collection of data, the second version of the state associated with a second transaction, the second version of the state formed to initially correspond to the modified first version of the state; and
storing in a second data structure information representative of sequence numbers associated with the second transaction, the second data structure initially comprising information representative of a last sequence number of the first plurality of sequence numbers.

### Claim 6 (depends on 5)

The method of claim 5, further comprising:
validating the second instruction to modify the state of the collection of data, the validating based on a last instruction, of the first plurality of instructions, corresponding to a last-ordered sequence number of the first plurality of sequence numbers.

### Claim 7 (depends on 5)

The method of claim 5, wherein the first plurality of instructions correspond to instructions to modify the state of the collection of data received subsequent to forming the first version of a state of the collection of data.

### Claim 8 (depends on 5)

The method of claim 5, wherein a sequence number of the first plurality of sequence numbers corresponds to a global ordering of an instruction to modify the state.

### Claim 9 (depends on 5)

The method of claim 5, wherein the first version of the state of the collection of data is synchronized with respect to the collection of data prior to receiving the first plurality of instructions to modify the state of the collection of data.

### Claim 10 (depends on 5)

The method of claim 5, further comprising:
reading a data value from the modified first version of the state; and
forming a request to modify the state, the request based at least in part on the data value read from the modified first version of the state.

### Claim 11 (depends on 5)

The method of claim 5, wherein the first data comprises a list of the plurality of sequence numbers.

### Claim 12

A non-transitory computer-readable storage medium comprising executable instructions that, upon execution by a first computing device, cause the first computing device at least to:
form a first version of a state of a collection of data;
modify the first version of the state of the collection of data based at least in part on a first plurality of instructions to modify the state of the collection of data, the first plurality of instructions corresponding to a first plurality of sequence numbers;
storing, in a first data structure, a first data comprising information representative of the first plurality of sequence numbers, wherein the first data structure is a first merge signature stored as a compressed representation of the first plurality of sequence numbers;
send, to a second computing device, in response to a second instruction to modify the state of the collection of data, a request to validate the second instruction, the request comprising the first data, wherein validating the second instruction, by the second computing device, comprises validating the second instruction with respect to potential conflicts with one or more other instructions and skipping validation of one or more of the first plurality of instructions corresponding to one or more sequence numbers represented by the first data;
forming a second version of the state of the collection of data, the second version of the state associated with a second transaction, the second version of the state formed to initially correspond to the modified first version of the state; and
storing in a second data structure information representative of sequence numbers associated with the second transaction, the second data structure initially comprising information representative of a last sequence number of the first plurality of sequence numbers.

### Claim 13 (depends on 12)

The non-transitory computer-readable storage medium of claim 12, comprising further instructions that, upon execution by the first computing device, cause the first computing device to at least:
validate the first plurality of instructions to modify the state of the collection of data, the validating based on the modified first version of the state.

### Claim 14 (depends on 12)

The non-transitory computer-readable storage medium of claim 12, wherein a sequence number of the first plurality of sequence numbers corresponds to a global ordering of an instruction to modify the state.

### Claim 15 (depends on 14)

The non-transitory computer-readable storage medium of claim 14, wherein the second computing device is to at least:
skip validation of the second instruction relative to instructions other than a last-ordered instruction represented by the first data.

### Claim 16 (depends on 12)

The non-transitory computer-readable storage medium of claim 12, wherein the second computing device is to at least:
validate an instruction, of the first plurality of instructions, corresponding to a last-ordered sequence number represented by the first data.

### Claim 17 (depends on 12)

The non-transitory computer-readable storage medium of claim 12, wherein the first version of the state of the collection of data corresponds to a subset of data of a collection of data maintained on a storage device by a computing node.
