# US 2023/0066540 A1 · Hybrid data processing system and method

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

- Number: US 2023/0066540 A1
- Document ID: US20230066540A1
- Status: Published application
- Kind: A1
- Application number: 17/462,998
- Filed: 2021-08-31
- Published: 2023-03-02
- Earliest claimed: 2021-08-31
- Assignees: Lemon Inc.
- Applicants: Lemon Inc.
- Inventors: Jianjun Chen; Yonghua Ding; Ye Liu; Fangshi Li; Lixun Cao; Yang Liu; Li Zhang; Mingyi Zhang; Lei Zhang; Rui Shi
- Web page: https://patentgrep.com/patent/US20230066540A1

## CPC

- G06F 16/24575: {using context}
- G06F 16/283: {Multi-dimensional databases or data warehouses, e.g. MOLAP or ROLAP}
- G06F 16/1794: {Details of file format conversion}
- G06F 16/2433: {Query languages}
- G06F 16/258: {Data format conversion from or to a database}
- G06F 16/27: Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
- G06F 16/278: {Data partitioning, e.g. horizontal or vertical partitioning}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

The present disclosure describes hybrid transactional and analytical processing (HTAP) techniques. A HTAP system comprises a first processing engine configured to perform online transactional processing, a second processing engine configured to perform online analytical processing, and a storage in communication with the first processing engine and the second processing engine. The first processing engine, the second processing engine, and the storage may be modularized and configured to be decoupled from each other. The system may be configured to capture data by the first processing engine in real time, organize the data in a first format in a first part of the storage for use by the first processing engine, propagate the data to a second part of the storage subsystem, and organize the data in a second format in the second part of the storage for use by the second processing engine.

## Claims

### Claim 1

A system, comprising:
at least one processor; and
at least one memory communicatively coupled to the at least one processor and comprising instructions that upon execution by the at least one processor cause the system to perform operations comprising:
capturing data by a first processing engine in real time, the first processing engine configured to perform online transactional processing;
organizing the data in a first format in a first part of a storage for use by the first processing engine;
propagating the data to a second part of the storage; and
organizing the data in a second format in the second part of the storage for use by the second processing engine, the second processing engine configured to perform online analytical processing, wherein the first processing engine, the second processing engine, and the storage are modularized and configured to be decoupled from each other.

### Claim 2 (depends on 1)

The system of claim 1, further comprising:
a centralized metadata service configured to align metadata for integrating the first processing engine and the second processing engine.

### Claim 3 (depends on 2)

The system of claim 2, the operations further comprising:
extracting, by the centralized metadata service, metadata from the data;
generating, by the centralized metadata service, metadata versions based on the extracted metadata; and
aligning, by the centralized metadata service, the metadata versions with an order of data manipulation languages.

### Claim 4 (depends on 1)

The system of claim 1, further comprising:
a common proxy layer configured to connect a plurality of client computing devices to the first processing engine and the second processing engine.

### Claim 5 (depends on 4)

The system of claim 4, the operations further comprising:
dispatching, by the common proxy layer, queries received from the plurality of computing devices to the first processing engine or the second processing engine based on types of the queries.

### Claim 6 (depends on 1)

The system of claim 1, the operations further comprising:
processing at least one portion of the data in the first format by the first processing engine in response to receiving a query for online transactional processing.

### Claim 7 (depends on 1)

The system of claim 1, the operations further comprising:
performing analysis on at least one portion of the data in the second format by the second processing engine in response to receiving a query online analytical processing.

### Claim 8 (depends on 1)

The system of claim 1, the operations further comprising:
generating physical logs and logical logs based on the data;
replicating the physical logs or the logical logs for construction of data pages; and
organizing data in the data pages in the first format for use by the first processing engine.

### Claim 9 (depends on 8)

The system of claim 8, the operations further comprising:
replicating the logical logs and distributing to the second part of the storage; and
sorting replications of the logical logs to a plurality of partitions based on a predetermined partitioning scheme.

### Claim 10 (depends on 9)

The system of claim 9, the operations further comprising:
applying at least one portion of the replications of the logical logs in order into a Delta Store of a corresponding partition among the plurality of partitions, wherein data in the Delta Store are stored in a row format and ordered based on log serial numbers associated with the at least one portion of the replications of the logical logs; and
flushing data from the Delta Store to a Base Store based on one or more predetermined rules, wherein data in the Base Store are organized in a columnar format for use by the second processing engine.

### Claim 11

A method comprising:
capturing data by a first processing engine in real time, the first processing engine configured to perform online transactional processing;
organizing the data in a first format in a first part of a storage for use by the first processing engine;
propagating the data to a second part of the storage; and
organizing the data in a second format in the second part of the storage for use by a second processing engine, the second processing engine configured to perform online analytical processing, wherein the first processing engine, the second processing engine, and the storage are modularized and configured to be decoupled from each other.

### Claim 12 (depends on 11)

The method of claim 11, further comprising:
aligning, by a centralized metadata service, metadata for integrating the first processing engine and the second processing engine.

### Claim 13 (depends on 12)

The method of claim 12, further comprising:
extracting, by the centralized metadata service, metadata from the data;
generating, by the centralized metadata service, metadata versions based on the extracted metadata; and
aligning, by the centralized metadata service, the metadata versions with an order of data manipulation languages.

### Claim 14 (depends on 11)

The method of claim 11, further comprising:
connecting, by a common proxy layer, a plurality of client computing devices to the first processing engine and the second processing engine.

### Claim 15 (depends on 14)

The method of claim 14, further comprising:
dispatching, by the common proxy layer, queries received from the plurality of computing devices to the first processing engine or the second processing engine based on types of the queries.

### Claim 16 (depends on 11)

The method of claim 11, further comprising:
generating physical logs and logical logs based on the data;
replicating the physical logs or logical logs for construction of data pages; and
organizing data in the data pages in the first format for use by the first processing engine.

### Claim 17 (depends on 16)

The method of claim 16, further comprising:
replicating the logical logs and distributing to the second part of the storage; and
sorting replications of the logical logs to a plurality of partitions based on a predetermined partitioning scheme.

### Claim 18 (depends on 17)

The method of claim 17, further comprising:
applying at least one portion of the replications of the logical logs in order into an Delta Store of a corresponding partition among the plurality of partitions, wherein data in the Delta Store are stored in a row format and ordered based on log serial numbers (LSN) associated with the at least one portion of the replications of the logical logs; and
flushing data from the Delta Store to a Base Store based on one or more predetermined rules, wherein data in the Base Store are organized in a columnar format for use by the second processing engine.

### Claim 19

A non-transitory computer-readable storage medium, comprising computer-readable instructions that upon execution by a system cause the system to implement operations comprising:
capturing data by a first processing engine in real time, the first processing engine configured to perform online transactional processing;
organizing the data in a first format in a first part of a storage for use by the first processing engine;
propagating the data to a second part of the storage;
organizing the data in a second format in the second part of the storage for use by a second processing engine, the second processing engine configured to perform online analytical processing, wherein the first processing engine, the second processing engine, and the storage are modularized and configured to be decoupled from each other.

### Claim 20 (depends on 19)

The non-transitory computer-readable storage medium of claim 19, the operations further comprising:
connecting, by a common proxy layer, a plurality of client computing devices to the first processing engine and the second processing engine; and
dispatching, by the common proxy layer, queries received from the plurality of computing devices to the first processing engine or the second processing engine based on types of the queries.
