# US 2019/0377822 A1 · Multiple cache processing of streaming data

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

- Number: US 2019/0377822 A1
- Document ID: US20190377822A1
- Status: Published application
- Kind: A1
- Application number: 16/004,020
- Filed: 2018-06-08
- Published: 2019-12-12
- Earliest claimed: 2018-06-08
- Assignees: International Business Machines Corporation
- Applicants: International Business Machines Corporation
- Inventors: Motohiro Kawahito
- Web page: https://patentgrep.com/patent/US20190377822A1

## CPC

- G06F 16/275: {Synchronous replication}
- G06F 12/0868: Data transfer between cache memory and other subsystems, e.g. storage devices or host systems
- G06F 12/0871: Allocation or management of cache space
- G06F 16/24552: {Database cache management}
- G06F 16/24568: {Data stream processing; Continuous queries}
- G06F 2212/1016: Performance improvement
- G06F 2212/163: Server or database system
- G06F 2212/282: Partitioned cache
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A computer provides a first cache area and a second cache area on a cache memory in a data processing system comprising a database repository and the cache memory for the database repository. The computer receives, in a first time window, streaming data and writing the streaming data on the first cache area. The computer prohibits, in the first time window, carrying out synchronization between the first cache area and the database repository. The computer enables, in at least part of the first time window, synchronization between the database repository and the second cache area. The computer enables, upon elapse of the first time window, synchronization between the first cache area and the database repository.

## Claims

### Claim 1

A computer-implemented method for processing streaming data, comprising:
providing a first cache area and a second cache area on a cache memory in a data processing system comprising a database repository and the cache memory for the database repository;
receiving, in a first time window, streaming data and writing the streaming data on the first cache area;
prohibiting, in the first time window, carrying out synchronization between the first cache area and the database repository;
enabling, in at least part of the first time window, synchronization between the database repository and the second cache area; and
enabling, upon elapse of the first time window, synchronization between the first cache area and the database repository.

### Claim 2 (depends on 1)

The method according to claim 1, wherein the data processing system further comprises an interface with an application and further comprising:
enabling the application to access the cache memory for real-time processing of incoming streaming data.

### Claim 3 (depends on 1)

The method according to claim 1, the method further comprising:
inhibiting, upon the elapse of the first time window, synchronization between the database repository and the second cache area.

### Claim 4 (depends on 3)

The method according to claim 3, the method further comprising:
writing, upon the elapse of the first time window, newly incoming streaming data on the second cache area.

### Claim 5 (depends on 1)

The method according to claim 1, the method further comprising,
swapping, upon the elapse of the first time window, a role of the first cache area with a role of the second cache area; and
carrying out synchronization, in a second time window, between the first cache area after the swapping and the database repository;
writing, in the second time window, newly incoming streaming data on the second cache area; and
prohibiting, in the second time window, synchronization between the second cache area and the database repository.

### Claim 6 (depends on 5)

The method according to claim 5, the method further comprising:
re-swapping, upon elapse of the second time window, a role of the first cache area after the swapping with a role of the second cache area after the swapping; and
in a third time window, repeating the receiving, the writing, and the enabling.

### Claim 7 (depends on 1)

The method according to claim 1, the method further comprising:
locking, in the first time window, on an access to the first cache area on the whole of the first cache area; and
locking, in the first time window, on an access to the second cache area on the whole of the second cache area.

### Claim 8 (depends on 1)

The method according to claim 1, the method further comprising:
locking, in the first time window, on an access to the first cache area on a hash index basis; and
locking, in the first time window, on an access to the second cache area on the whole of the second cache area.

### Claim 9 (depends on 8)

The method according to claim 8, the method further comprising:
swapping, upon the elapse of the first time window, a role of the first cache area with a role of the second cache area; and
locking, in a second time window, on an access to the first cache area on the whole of the first cache area; and
locking, in a second time window, on an access to the second cache area on the whole of the second cache area.

### Claim 10 (depends on 1)

The method according to claim 1, wherein the providing a first cache area and a second cache area on the cache memory comprises providing plural pairs of first cache areas and second cache areas on the cache memory.

### Claim 11 (depends on 10)

The method according to claim 10, wherein the plural pairs are used simultaneously in the same time windows or used in each of the different time windows.

### Claim 12 (depends on 5)

The method according to claim 5, wherein a length of a respective time window is updated by the application for processing the streaming data; and wherein the updated length is used for a subsequent time window.

### Claim 13 (depends on 5)

The method according to claim 5, wherein length of a respective time window is defined depending on the amount of the received streaming data, the processing time of the streaming data, time required for synchronizing with the database repository, or a combination thereof.

### Claim 14

A data processing system comprising:
one or more processors;
a memory storing a program which, when executed on the processor, performs an operation for processing streaming data;
a database repository; and
a cache memory for the database repository,
wherein the cache memory comprises:
a first cache area used for carrying out, in a first time window, a role of receiving streaming data and writing the streaming data thereon without carrying out synchronization between the first cache area and the database repository; and
a second cache area used for carrying out, in at least part of the first time window, a role of synchronization with the database repository; and
wherein the data processing system carries out synchronization between the first cache area and the database repository upon elapse of the first time window.

### Claim 15 (depends on 14)

The data processing system according to claim 14, wherein the data processing system inhibits synchronization between the database repository and the second cache area upon the elapse of the first time window.

### Claim 16 (depends on 14)

The data processing system according to claim 14, wherein the data processing system writing newly incoming streaming data on the second cache area upon the elapse of the first time window.

### Claim 17 (depends on 14)

The data processing system according to claim 14, wherein the data processing system swaps the role of the first cache area with the role of the second cache area upon the elapse of the first time window; and
in a second time window, occurring after the swapping, carries out synchronization between the database repository and the first cache area and writes newly incoming streaming data on the second cache area without carrying out synchronization between the second cache area and the database repository.

### Claim 18

A computer program product for processing streaming data, the computer program product comprising a computer readable storage medium having program instructions embodied therewith, wherein the computer readable storage medium is not a transitory signal per se, the program instructions executable by a computer to cause the computer to perform a method comprising:
providing a first cache area and a second cache area on a cache memory in a data processing system comprising a database repository and the cache memory for the database repository;
receiving, in a first time window, streaming data and writing the streaming data on the first cache area;
prohibiting, in the first time window, carrying out synchronization between the first cache area and the database repository;
enabling, in at least part of the first time window, synchronization between the database repository and the second cache area; and
enabling, upon elapse of the first time window, synchronization between the first cache area and the database repository.

### Claim 19 (depends on 18)

The computer program product according to claim 18, the method further comprising:
inhibiting, upon the elapse of the first time window, synchronization between the database repository and the second cache area.

### Claim 20 (depends on 19)

The computer program product according to claim 19, the method further comprising:
writing, upon the elapse of the first time window, newly incoming streaming data on the second cache area.
