# US 2021/0342950 A1 · Scalable Enforcement of Aggregation Constraints Within Transactions

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

- Number: US 2021/0342950 A1
- Document ID: US20210342950A1
- Status: Published application
- Kind: A1
- Application number: 16/865,518
- Filed: 2020-05-04
- Published: 2021-11-04
- Earliest claimed: 2020-05-04
- Assignees: International Business Machines Corporation
- Applicants: International Business Machines Corporation
- Inventors: Ronald J. Barber; Vijayshankar Raman; Richard Sefton Sidle; YUANYUAN TIAN
- Web page: https://patentgrep.com/patent/US20210342950A1

## CPC

- G06Q 40/12: Accounting
- G06F 16/2365: {Ensuring data consistency and integrity}
- G06F 16/2379: {Updates performed during online database operations; commit processing}
- G06F 16/25: Integrating or interfacing systems involving database management systems
- G06F 16/9024: {Graphs; Linked lists (G06F16/9027 takes precedence)}
- G06Q 10/087: Inventory or stock management, e.g. order filling, procurement or balancing against orders
- G06Q 10/0877: {by inventory control or reporting using inventory tracking or counting}
- G06Q 20/405: {Establishing or using transaction specific rules}
- G06Q 30/04: Billing or invoicing
- 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

Embodiments relate to aggregation operations. More specifically, embodiments relate to enforcing an aggregation constraint across a distributed network of compute nodes responding asynchronously. Each compute node individually processes the local partial aggregate value in parallel and asynchronously communicates with a conflict resolution node (CRN).

## Claims

### Claim 1

A computer system comprising:
a processor operatively coupled to memory;
an aggregation constraint engine in communication with the processor and operatively coupled to one or more compute nodes, the aggregation constraint engine having one or more tools to perform enforcement of an aggregation constraint, the tools comprising:
a receiver to leverage a last committed aggregate value as a current prefix sum for an interval aggregation, and asynchronously receive one or more remotely computed preliminary interval aggregate values from the one or more compute nodes;
an assessment manager in communication with the receiver, the assessment manager to assess a preliminary interval aggregate responsive to the asynchronous receipt of the preliminary aggregate values, the assessment manager to:
send the current prefix sum to the one or more compute nodes; and
adjust the current prefix sum with the one or more received preliminary interval aggregate values, including selective application of a constraint requirement;
the rollback manager running on the one or more compute nodes in receipt of the current prefix sum to locally evaluate an aggregation constraint, including identify any local transactions violating the aggregation constraint, and selectively apply a rollback protocol to the one or more violating transactions; and
a director to replace and apply the last committed aggregate value as a refreshed current prefix sum for a subsequent interval aggregation.

### Claim 2 (depends on 1)

The computer system of claim 1, wherein the last committed aggregate value is maintained by the director by an incremental adjustment with a final interval aggregate value selectively adjusted for any rolled-back transactions provided by the one or more compute nodes.

### Claim 3 (depends on 2)

The computer system of claim 2, further comprising the receiver and assessment manager to process the current prefix sum in parallel with the final interval aggregate value, and the assessment manager to adjust the current prefix sum responsive to asynchronous communications to mitigate application of the rollback protocol for an interval batch.

### Claim 4 (depends on 1)

The computer system of claim 1, wherein the interval aggregation constraint enforcement is initiated with a broadcast signal from a coordinating node to the one or more compute nodes.

### Claim 5 (depends on 1)

The computer system of claim 1, further comprising the rollback manager to modify an order of intra-node transaction processing for the one or more compute nodes for an interval batch to mitigate application of the rollback protocol.

### Claim 6 (depends on 1)

The computer system of claim 1, further comprising the assessment manager to modify an order of processing one or more interval aggregate responses to mitigate application of the rollback protocol for an interval batch.

### Claim 7

A computer program product to perform enforcement of an aggregation constraint, the computer program product comprising a computer readable storage medium having program code embodied therewith, the program code executable by a processor to:
leverage a last committed aggregate value as a current prefix sum for an interval aggregation;
asynchronously receive one or more remotely computed preliminary interval aggregate values from one or more operatively coupled compute nodes;
assess a preliminary interval aggregate responsive to the asynchronous receipt of the preliminary aggregate values, the assessment including:
sending the current prefix sum to the one or more compute nodes; and
adjusting the current prefix sum with the one or more received preliminary interval aggregate values, including selectively applying a constraint requirement;
delegate responsibility of rolling back any violating transactions to the one or more compute nodes in receipt of the current prefix sum to locally evaluate an aggregation constraint, including identify any local transactions in violation of the aggregation constraint, and selectively apply a rollback protocol to the one or more violating transactions; and
replace and apply the last committed aggregate value as a refreshed current prefix sum for a subsequent interval aggregation.

### Claim 8 (depends on 7)

The computer program product of claim 7, wherein the last committed aggregate value is maintained by an incremental adjustment with a final interval aggregate value selectively adjusted for any rolled-back transactions provided by the one or more compute nodes.

### Claim 9 (depends on 8)

The computer program product of claim 8, further comprising program code to process the current prefix sum in parallel with the final interval aggregate value, and adjust the current prefix sum responsive to asynchronous communications to mitigate application of the rollback protocol for an interval batch.

### Claim 10 (depends on 7)

The computer program product of claim 7, wherein the rollback protocol is performed locally for one or more failed transactions and excludes the one or more violating transactions.

### Claim 11 (depends on 7)

The computer program product of claim 7, wherein the interval aggregation constraint enforcement is initiated with a broadcast signal from a coordinating node to the one or more compute nodes.

### Claim 12 (depends on 7)

The computer program product of claim 7, further comprising program code to modify an order of intra-node transaction processing for the one or more compute nodes for an interval batch to mitigate application of the rollback protocol.

### Claim 13 (depends on 7)

The computer program product of claim 7, further comprising program code to modify an order of processing of one or more interval aggregate responses to mitigate application of the rollback protocol for an interval batch.

### Claim 14

A computer implemented method to perform enforcement of an aggregation constraint, the method comprising:
leveraging a last committed aggregate value as a current prefix sum for an interval aggregation;
asynchronously receiving one or more remotely computed preliminary interval aggregate values from one or more operatively coupled compute nodes;
assessing a preliminary interval aggregate responsive to the asynchronous receipt of the preliminary aggregate values, the assessment including:
sending the current prefix sum to the one or more compute nodes; and
adjusting the current prefix sum with the one or more received preliminary interval aggregate values, including selectively applying a constraint requirement;
delegating responsibility of rolling back any violating transactions to the one or more compute nodes in receipt of the current prefix sum to locally evaluate an aggregation constraint, including identifying any local transactions in violation of the aggregation constraint, and selectively applying a rollback protocol to the one or more violating transactions; and
replacing and applying the last committed aggregate value as a refreshed current prefix sum for a subsequent interval aggregation.

### Claim 15 (depends on 14)

The method of claim 14, wherein the last committed aggregate value is maintained by an incremental adjustment with a final interval aggregate value selectively adjusted for any rolled-back transactions provided by the one or more compute nodes.

### Claim 16 (depends on 15)

The method of claim 15, further comprising processing the current prefix sum in parallel with the final interval aggregate value, and adjusting the current prefix sum responsive to asynchronous communications to mitigate application of the rollback protocol for an interval batch.

### Claim 17 (depends on 14)

The method of claim 14, wherein the rollback protocol is performed locally for one or more failed transactions and excludes the one or more violating transactions.

### Claim 18 (depends on 14)

The method of claim 14, wherein the interval aggregation constraint enforcement is initiated with a broadcast signal from a coordinating node to the one or more compute nodes.

### Claim 19 (depends on 14)

The method of claim 14, further comprising modifying an order of intra-node transaction processing for the one or more compute nodes for an interval batch to mitigate application of the rollback protocol.

### Claim 20 (depends on 14)

The method of claim 14, further comprising modifying an order of processing one or more interval aggregate responses to mitigate application of the rollback protocol for an interval batch.
