# US 2021/0342311 A1 · Hybrid client transaction mode for key value store

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

- Number: US 2021/0342311 A1
- Document ID: US20210342311A1
- Status: Published application
- Kind: A1
- Application number: 17/146,351
- Filed: 2021-01-11
- Published: 2021-11-04
- Earliest claimed: 2020-04-29
- Assignees: Oracle International Corporation
- Applicants: Oracle International Corporation
- Inventors: Ming Fan; Daniel Ricketts; Benjamin Tobler
- Web page: https://patentgrep.com/patent/US20210342311A1

## CPC

- G06F 16/214: {Database migration support}
- G06F 16/2308: {Concurrency control (transaction processing G06F9/466)}
- G06F 16/1767: {Concurrency control, e.g. optimistic or pessimistic approaches}
- G06F 16/182: Distributed file systems
- G06F 16/1865: {Transactional file systems}
- G06F 16/2282: {Tablespace storage structures; Management thereof}
- G06F 16/2379: {Updates performed during online database operations; commit processing}
- H04L 67/125: involving control of end-device applications over a network
- H04L 67/568: Storing data temporarily at an intermediate stage, e.g. caching
- H04L 67/5682: Policies or rules for updating, deleting or replacing the stored data
- H04L 67/02: based on web technology, e.g. hypertext transfer protocol [HTTP]
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)

## Abstract

The present disclosure relates to a system and techniques for enabling data to be updated within a data store through concurrent operations. Embodiments of the system enables multiple client applications (e.g., implemented on a cloud platform) to update data concurrently. In some embodiments, operations may be determined to be either client-managed operations or service-managed operations. Client-managed operations may be performed by a client application, whereas the client application may pass service-managed operations to a service application. The service application may put each of the service-managed operations into a commit queue wherein each service-managed operation is committed only after the one put into the queue before it has been committed.

## Claims

### Claim 1

A method comprising:
determining, by a computing instance, a transaction to be completed, the transaction comprising a set of operations;
identifying, from the set of operations, a subset of client-managed operations and a subset of service-managed operations;
performing each of the operations in the subset of client-managed operations;
providing each of the operations in the subset of service-managed operations to a service application, wherein the service application performs each of the service-managed operations; and
determining whether to commit the operations in the set of operations upon determining that all of the operations in the set of operations have been performed.

### Claim 2 (depends on 1)

The method of claim 1, further comprising committing all of the operations of the set of operations in a single commit.

### Claim 3 (depends on 1)

The method of claim 1, further comprising providing one or more conditions to the service application, wherein the operations in the set of operations are committed upon determining that each of the at least one of the one or more conditions have been met.

### Claim 4 (depends on 1)

The method of claim 1, wherein each of the subset of service-managed operations are placed into a queue by the service application, the queue including service-managed operations received from a number of different computing instances.

### Claim 5 (depends on 4)

The method of claim 4, wherein the service-managed operations in the queue are processed by the service application in an order in which the service-managed operations in the queue were received by the service application.

### Claim 6 (depends on 4)

The method of claim 4, wherein the queue includes service-managed operations which impact a particular row of a data store.

### Claim 7 (depends on 1)

The method of claim 1, wherein performing each of the operations in the subset of client-managed operations comprises updating at least one value in a data store.

### Claim 8 (depends on 7)

The method of claim 7, wherein updating at least one value in the data store comprises:
retrieving the at least one value from the data store;
generating an updated value from the at least one value based on the operation in the subset of client-managed operations; and
writing the updated value back to the data store.

### Claim 9

A computing device comprising:
a processor; and
a memory including instructions that, when executed with the processor, cause the computing device to, at least:
determine a transaction to be completed, the transaction comprising a set of operations;
identify, from the set of operations, a subset of client-managed operations and a subset of service-managed operations;
perform each of the operations in the subset of client-managed operations;
provide each of the operations in the subset of service-managed operations to a service application, wherein the service application performs each of the service-managed operations; and
determine whether to commit the operations in the set of operations upon determining that all of the operations in the set of operations have been performed.

### Claim 10 (depends on 9)

The computing device of claim 9, wherein the computing device is one of a number of distributed computing devices in a cloud platform.

### Claim 11 (depends on 10)

The computing device of claim 10, wherein the instructions are implemented as a cloud instance.

### Claim 12 (depends on 11)

The computing device of claim 11, wherein the cloud instance includes a client application.

### Claim 13 (depends on 9)

The computing device of claim 9, wherein the instructions further cause the computing device to, upon determining to commit the operations in the set of operations, commit all of the operations in the set of operations in a single commit.

### Claim 14 (depends on 9)

The computing device of claim 9, wherein providing each of the operations in the subset of service-managed operations to the service application comprises providing a reference to a data value in a data store and an indication of one or more actions to be performed with respect to the data value.

### Claim 15 (depends on 14)

The computing device of claim 14, wherein the data store is a key value store and the reference to the data value comprises a key identifier.

### Claim 16 (depends on 14)

The computing device of claim 14, wherein the data value in the data store is not visible to the computing device.

### Claim 17 (depends on 9)

The computing device of claim 9, wherein the service application retrieves and updates at least one uncommitted value when performing each of the service-managed operations.

### Claim 18

A method comprising:
receiving, at a service application, a service-managed operation and at least one condition, the service-managed operation comprising one of a number of operations for a transaction;
retrieving, by the service application, a data value associated with the service-managed operation from a data store;
manipulating, by the service application, the data value based on the service-managed operation;
determining, by the service application, whether the manipulated data value meets the at least one condition; and
upon determining that the manipulated data value meets the at least one condition, writing the manipulated data value back to the data store, wherein the service-managed operation is not committed until all of the number of operations for the transaction are committed.

### Claim 19 (depends on 18)

The method of claim 18, wherein the number of operations for the transaction also include at least one client-managed operation.

### Claim 20 (depends on 18)

The method of claim 18, wherein the at least one condition includes a maximum or minimum value for the data value.
