# US 2018/0025049 A1 · Server and Data Processing Method

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

- Number: US 2018/0025049 A1
- Document ID: US20180025049A1
- Status: Published application
- Kind: A1
- Application number: 15/719,768
- Filed: 2017-09-29
- Published: 2018-01-25
- Earliest claimed: 2015-03-31
- Assignees: Huawei Technologies Co., Ltd.
- Applicants: Huawei Technologies Co., Ltd.
- Inventors: Jianguo Zeng; Yi Qin
- Web page: https://patentgrep.com/patent/US20180025049A1

## CPC

- G06F 16/2379: {Updates performed during online database operations; commit processing}
- G06F 9/547: {Remote procedure calls [RPC]; Web services}
- G06F 11/1469: {Backup restoration techniques}
- G06F 16/00: Information retrieval; Database structures therefor; File system structures therefor
- G06F 16/2308: {Concurrency control (transaction processing G06F9/466)}
- G06F 16/2365: {Ensuring data consistency and integrity}
- H04L 41/0686: Additional information in the notification, e.g. enhancement of specific meta-data
- H04L 67/51: Discovery or management thereof, e.g. service location protocol [SLP] or web services
- G06F 2201/84: Using snapshots, i.e. a logical point-in-time copy of the data
- 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

A system and method for data processing transaction management in a cloud service scenario. A data server system is configured to be connected to an application server and a cloud first data server, and receives a first operation request that is used to request a first persistence layer service provided by the first data server and that is sent by the application server, where the request includes at least one operation that belongs to a same transaction. A persistence layer service that has a transaction management function is provided between an application service and a cloud service.

## Claims

### Claim 1

A data processing method, comprising:
receiving, by a second data server in communication connection with a first data server and one or more application servers, a first operation request sent by the one or more application servers, wherein the application server is configured to provide an application service, wherein the first data server is configured to provide a first persistence layer service, wherein the first data server comprises first data, wherein the second data server is configured to provide a second persistence layer service, wherein the second data server comprises second data, wherein the second data comprises data the same as the first data, wherein the second data server provides a second application programming interface (API) to the one or more application servers, wherein the one or more application servers are each configured to request the first persistence layer service from the first data server by invoking the second API, wherein the first data server provides a first API to the second data server, wherein the second data server is configured to request the first persistence layer service by invoking the first API, wherein the first operation request is sent by the one or more application servers by invoking the second API and requests performance of at least one operation, and wherein the at least one operation belongs to a same transaction;
performing, by the second data server, the at least one operation on the second data after determining that the first operation request requests the first persistence layer service to perform the at least one operation; and
generating, by the second data server, a second operation request if each operation is performed successfully, and sending the second operation request to the first data server by invoking the first API, wherein the second operation request requests performance of the at least one operation on the first data.

### Claim 2 (depends on 1)

The method according to claim 1, wherein the determining, by the second data server, that the first operation request requests the first persistence layer service to perform the at least one operation comprises:
determining, by the second data server, according to at least one of identity information of the first persistence layer service or user protocol information that indicates that the application service requests the first persistence layer service, that the first operation request is used to request the first persistence layer service, wherein the identity information and the user protocol information are in the first operation request.

### Claim 3 (depends on 1)

The method according to claim 1, wherein the method further comprises:
rolling back, by the second data server, in response to the at least one operation being unsuccessfully performed, the second data to a status existing before the at least one operation is performed.

### Claim 4 (depends on 3)

The method according to claim 3, wherein the performing, by the second data server, each operation of the at least one operation on the second data comprises:
performing, by the second data server, decomposing processing on the at least one operation, wherein the decomposing processing comprises:
breaking an operation, targeting multiple resource objects, of the at least one operation, into multiple atomic operations each targeting a single resource object, wherein the resource object is a resource object managed by the first persistence layer service, and wherein the atomic operation is an operation that cannot be further broken down with respect to the resource object managed by the first persistence layer service; and
performing, by the second data server, transaction management on the atomic operations obtained after the decomposing processing, wherein the transaction management comprises recording, for each atomic operation obtained after the decomposing processing, a correspondence among a type of the atomic operation, an identity of a resource object targeted by the atomic operation, and a transaction identity of the same transaction, and performing each atomic operation obtained after the decomposing processing.

### Claim 5 (depends on 4)

The method according to claim 4, wherein the rolling back the second data to a status existing before each operation of the at least one operation is performed comprises:
rolling back, by the second data server according to the correspondence recorded during the transaction management, the second data to the status existing before each operation of the at least one operation is performed.

### Claim 6 (depends on 1)

The method according to claim 1, wherein the first operation request comprises the transaction identity of the same transaction; and
wherein the generating, by the second data server, the second operation request comprises removing, by the second data server, the transaction identity of the same transaction from the first operation request, to generate the second operation request.

### Claim 7 (depends on 1)

The method according to claim 1, wherein the method further comprises, sending, by the second data server to the one or more application servers, if the at least one operation is performed unsuccessfully, a failure response to the first operation request, wherein the failure response is indicates that the at least one operation is performed unsuccessfully.

### Claim 8 (depends on 7)

The method according to claim 7, wherein the failure response comprises at least one type of information about an unsuccessfully performed operation of the at least one operation, the type of information selected from an operation type, a resource object, targeted by the operation, of the first persistence layer service, or a failure reason of the operation.

### Claim 9

A data processing method, comprising:
generating, by one or more application servers configured to provide an application service, a first operation request, wherein the first operation request requests a first persistence layer service provided by a first data server that comprises first data to perform at least one operation, wherein the at least one operation belongs to a same transaction, wherein the first operation request comprises indication information that indicates that the first operation request requests the first persistence layer service, wherein a second data server is in communication connection with the first data server and the one or more application servers;
wherein the first data server provides a first application programming interface (API) to the second data server, wherein the second data server provides a second API to the one or more application servers, wherein the one or more application servers request the first persistence layer service from the first data server by invoking the second API, and wherein the second data server requests the first persistence layer service by invoking the first API; and
sending, by the one or more application servers, the first operation request to the second data server by invoking the second API, so as to instruct the second data server to:
perform the at least one operation on the second data;
generate a second operation request if each operation is performed successfully; and
send the second operation request to the first data server by invoking the first API, wherein the second operation request is used to request to perform the at least one operation on the first data.

### Claim 10 (depends on 9)

The method according to claim 9, wherein the indication information indicating that the first operation request requests the first persistence layer service comprises at least one of identity information of the first persistence layer service, or user protocol information that indicates that the application service requests the first persistence layer service.

### Claim 11

A first data server, comprising:
a processor; and
a non-transitory computer-readable storage medium storing a program to be executed by the processor, the program including instructions to:
provide communication connection with a second data server and one or more application servers configured to provide an application service, wherein the second data server is configured to provide a second persistence layer service, and the second data server comprises second data,
provide a first persistence layer service, wherein the first data server comprises first data, and the first data comprises data the same as the second data;
provide the first API to the one or more application servers, wherein the one or more application servers request the second persistence layer service from the second data server by invoking the first API, wherein the second data server provides a second API to the first data server, and wherein the first data server requests the second persistence layer service by invoking the first API;
receive a first operation request that is sent by the one or more application servers by invoking the first API, wherein the first operation request requests to perform at least one operation and the at least one operation belongs to a same transaction;
perform the at least one operation on the first data after determining that the first operation request requests the second persistence layer service to perform the at least one operation;
generate a second operation request if each operation is performed successfully, wherein the second operation request is used to request to perform the at least one operation on the second data; and
invoke the second API to send the second operation request to the second data server.

### Claim 12 (depends on 11)

The first data server according to claim 11, wherein the program further includes instructions to, when determining that the first operation request requests the second persistence layer service to perform the at least one operation:
determine, according to at least one of identity information of the second persistence layer service or user protocol information that indicates that the application service requests the second persistence layer service, that the first operation request requests the second persistence layer service to perform the at least one operation, wherein the identity information and the user protocol information are in the first operation request.

### Claim 13 (depends on 11)

The first data server according to claim 11, wherein the program further includes instructions to:
roll back the first data to a status existing before the at least one operation is performed if the at least one operation is performed unsuccessfully.

### Claim 14 (depends on 13)

The first data server according to claim 13, wherein the program further includes instructions to, when performing each operation of the at least one operation on the first data:
perform decomposing processing on the at least one operation, wherein the decomposing processing comprises breaking an operation, targeting multiple resource objects, of the at least one operation, into multiple atomic operations targeting a single resource object each, wherein the resource object is a resource object managed by the second persistence layer service, and wherein the atomic operation is an operation that cannot be further broken down with respect to the resource object managed by the second persistence layer service; and
perform transaction management on the atomic operations obtained after the decomposing processing, wherein the transaction management comprises:
recording, for each atomic operation obtained after the decomposing processing, a correspondence among a type of the atomic operation, an identity of a resource object targeted by the atomic operation, and a transaction identity of the same transaction; and
performing each atomic operation obtained after the decomposing processing.

### Claim 15 (depends on 14)

The first data server according to claim 14, wherein the program further includes instructions to, when rolling back the first data to the status existing before each operation of the at least one operation is performed:
roll back, according to the correspondence recorded during the transaction management, the first data to the status existing before each operation of the at least one operation is performed.

### Claim 16 (depends on 11)

The first data server according to claim 11, wherein the first operation request comprises the transaction identity of the same transaction; and
wherein the program further includes instructions to, when generating the second operation request, remove the transaction identity of the same transaction from the first operation request, to generate the second operation request.

### Claim 17 (depends on 11)

The first data server according to claim 11, wherein the program further includes instructions to:
generate a failure response to the first operation request if the at least one operation is performed unsuccessfully, wherein the failure response is used to indicate that the at least one operation is performed unsuccessfully; and
send the failure response to the one or more application servers.

### Claim 18 (depends on 17)

The first data server according to claim 17, wherein the failure response comprises at least one type information about an unsuccessfully performed operation of the at least one operation, wherein the type of information is selected from an operation type, a resource object, targeted by the operation, of the second persistence layer service, or a failure reason of the operation.

### Claim 19

An application server, the application server comprises
a processor; and
a non-transitory computer-readable storage medium storing a program to be executed by the processor, the program including instructions to:
provide an application service;
generate a first operation request, and indicate that the first operation request requests a first persistence layer service provided by a first data server comprising first data to perform at least one operation, wherein the at least one operation belongs to a same transaction, and the first operation request comprises indication information used to indicate that the first operation request is used to request the first persistence layer service, wherein the first data server provides a first application programming interface (API) to a second data server in communication connection with a first data server and the application server, and wherein the second data server requests the first persistence layer service by invoking the first API; and
invoke the second API to send the first operation request to the second data server, the invoking the second API causing the second data server to:
perform the at least one operation on the second data; and
generate a second operation request if each operation is performed successfully; and
send the second operation request to the first data server by invoking the first API, wherein the second operation request is used to request to perform the at least one operation on the first data.

### Claim 20 (depends on 19)

The application server according to claim 19, wherein the first operation request comprises at least one of:
identity information of the first persistence layer service; or
user protocol information indicates that the application service requests the first persistence layer service.
