Server and Data Processing Method
AssigneeHuawei Technologies Co., Ltd.
InventorsJianguo Zeng, Yi Qin
Life of this patent
Estimating the term…
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.
Claims20
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.
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.
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.
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.
Dependencies are inferred from the claim text.