CN114553943B - Cloud platform business layer unified information rollback method, device, terminal and medium - Google Patents
Cloud platform business layer unified information rollback method, device, terminal and medium Download PDFInfo
- Publication number
- CN114553943B CN114553943B CN202210094593.7A CN202210094593A CN114553943B CN 114553943 B CN114553943 B CN 114553943B CN 202210094593 A CN202210094593 A CN 202210094593A CN 114553943 B CN114553943 B CN 114553943B
- Authority
- CN
- China
- Prior art keywords
- target
- service
- resource
- rollback
- interface
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 51
- 238000005096 rolling process Methods 0.000 claims abstract description 13
- 238000012545 processing Methods 0.000 claims description 11
- 238000001514 detection method Methods 0.000 claims description 3
- 238000012423 maintenance Methods 0.000 abstract description 4
- 230000008569 process Effects 0.000 description 11
- 230000003993 interaction Effects 0.000 description 4
- 230000008878 coupling Effects 0.000 description 3
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 238000004891 communication Methods 0.000 description 2
- 230000001419 dependent effect Effects 0.000 description 2
- 238000010586 diagram Methods 0.000 description 2
- 230000007246 mechanism Effects 0.000 description 2
- 208000033830 Hot Flashes Diseases 0.000 description 1
- 206010060800 Hot flush Diseases 0.000 description 1
- 238000013459 approach Methods 0.000 description 1
- 238000012217 deletion Methods 0.000 description 1
- 230000037430 deletion Effects 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/08—Configuration management of networks or network elements
- H04L41/0803—Configuration setting
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L65/00—Network arrangements, protocols or services for supporting real-time applications in data packet communication
- H04L65/1066—Session management
- H04L65/1073—Registration or de-registration
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/02—Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D10/00—Energy efficient computing, e.g. low power processors, power management or thermal management
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Business, Economics & Management (AREA)
- General Business, Economics & Management (AREA)
- Multimedia (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
- Debugging And Monitoring (AREA)
Abstract
The invention relates to a cloud platform business layer unified information rollback method, a device, a terminal and a medium. After a service calling party initiates a target service operation, calling external interfaces of micro services on which the target service operation depends layer by layer to prepare corresponding target resources; if the external interface is called to prepare the target resource successfully, archiving the resource information of the prepared target resource; if the external interface is called to prepare the target resource fails, inquiring the resource information of the corresponding target resource according to the target service operation; inquiring a rollback interface for executing rollback operation from a service registry of the micro service according to the content of the resource information; and rolling back corresponding content acquired from the corresponding resource information by using the rolling-back interface. The invention obtains the rollback interface for realizing rollback by utilizing the resource information of the archived standard business operation, unifies rollback of each micro-service depending on the target business operation through each rollback interface, and is simple in code realization and convenient for maintenance and expansion.
Description
Technical Field
The invention relates to the technical field of uniform information rollback of a micro-service business layer, in particular to a method, a device, a terminal and a medium for rolling back uniform information of a cloud platform business layer.
Background
With the development of the internet, the scale of website application is continuously enlarged, the demand is greatly increased, and the system architecture is continuously evolved, upgraded and iterated. Currently, a single architecture has been developed into a micro-service architecture, and with the rise of cloud native hot flashes, the micro-service architecture is generally used as a software architecture of cloud native applications.
Micro-service architecture is a way or approach to develop a single application using a set of servlets, each of which is built based on a single business capability, runs in its own process, communicates using a lightweight mechanism, typically an HTTP API, and can be deployed independently by an automated deployment mechanism. These services are managed and maintained by a unified service registry.
Although each service has its own single business capability, it does not mean that no business logic interactions are required between services. Once business logic interaction exists, a scene of interaction failure is necessarily existed, and after failure, in some scenes, the problem that rollback cancellation is needed for previous successful operation is faced. This scenario occurs particularly well for cloud platforms. For example, a cloud host is created in a cloud platform, and network resources and storage resources need to be prepared first and then can be created; in the cloud host management service, the network resource management service and the HTTP interface of the storage resource management service need to be called to prepare the network resource and the storage resource in advance. If the creation of the cloud host fails in the case that both the network resource and the storage resource are prepared successfully, then the network and the storage resource which are prepared successfully before need to be rollback canceled to ensure the consistency of the system information and avoid the generation of junk data in the system.
Under the condition that distributed transaction control is not adopted, the rollback design of the interaction operation among all dependent micro services is generally realized, a calling party writes a service code in a service layer of the calling party to call a resource rollback interface of the dependent micro service to perform rollback control, so that the service code is required to be independently written for additional processing at each place where an error occurs, the code redundancy and repetition are definitely caused, and the later maintenance and expansion are not facilitated.
Disclosure of Invention
In order to solve the technical problems or at least partially solve the technical problems, the invention provides a method, a device, a terminal and a medium for rolling back unified information of a cloud platform business layer.
In a first aspect, the present invention provides a method for rolling back unified information of a service layer of a cloud platform, including:
after a service calling party initiates a target service operation, calling external interfaces of micro services on which the target service operation depends layer by layer to prepare corresponding target resources;
if the external interface is called to prepare the target resource successfully, archiving the resource information of the prepared target resource, wherein the data structure of the resource information comprises: resource ID, service calling party IP, micro service IP to which the resource belongs, operation type and operation parameter;
if the external interface is called to prepare the target resource fails, inquiring the resource information of the corresponding target resource according to the target service operation; inquiring a rollback interface for executing rollback operation from a service registry of the micro service according to the content of the resource information; and rolling back corresponding content acquired from the corresponding resource information by using the rolling-back interface.
Further, when defining the interfaces of the micro services, configuring corresponding interface types for the interfaces, wherein the interface types comprise: an internal interface and an external interface; further, configuring operation types implemented by the external interface for the external interface, wherein the operation types include: create, delete, modify, and query.
Further, when the target business operation is initiated, configuring a corresponding operation ID for the target business operation; when the prepared resource information of the target resource is archived, the resource information corresponding to the target business operation is mapped to the operation ID of the target business operation.
Further, when inquiring the resource information of the corresponding target resource according to the target service operation, the operation ID of the target service operation is obtained, and the corresponding resource information is inquired according to the operation ID.
Still further, the rollback interface for querying a service registry of a micro service for performing a rollback operation according to contents of resource information includes:
analyzing the data structure of each archived resource information of the target business operation to obtain each target operation type and the corresponding micro-service IP to which the target resource belongs;
determining a corresponding target reverse operation type according to the target operation type in the resource information by utilizing a pre-configured corresponding relation table of the operation type and the reverse operation type;
and inquiring each corresponding rollback interface from the service registration center by utilizing each target reverse operation type and the corresponding micro-service IP to which the target resource belongs.
Further, when registering each micro service to the service registration center, reporting external interface information to the service registration center, wherein the external interface information includes: interface name, interface type, operation type, and operation parameters.
Further, when the rollback interface is utilized to rollback the corresponding content obtained from the corresponding resource information, the corresponding content is obtained from the resource information according to the operation type of the rollback interface.
In a second aspect, the present invention provides a device for implementing a method for rolling back unified information of a service layer of a cloud platform, including: the failure detection module detects whether the preparation of the target resource by the micro-service external interface relied by the target business operation is successful;
the resource information archiving module is used for archiving the prepared resource information of the target resource according to a preset data structure when the preparation of the target resource is successful;
the resource information matching module is used for matching and inquiring corresponding resource information according to the target service when the target resource required by the target service operation fails;
the resource information analysis module analyzes the resource information and acquires the content of the resource information;
the rollback interface matching module is used for inquiring corresponding rollback interfaces from a service registration center for configuring each micro service by utilizing the content of the resource information;
and the rollback execution module is used for rollback by utilizing the rollback interface and corresponding content in the corresponding resource information.
In a third aspect, the present invention provides a terminal for implementing a unified information rollback method of a cloud platform service layer, including: the cloud platform business layer unified information rollback method is achieved by the aid of the processing unit, the bus unit, the storage unit, the display unit and the input unit, the bus unit is connected with the processing unit, the storage unit, the display unit and the input unit, the storage unit stores at least one instruction, and the processing unit reads and executes the instruction.
In a fourth aspect, the present invention provides a storage medium for implementing a cloud platform service layer unified information rollback method, where the storage medium implementing the cloud platform service layer unified information rollback method stores at least one instruction, and reads and executes the instruction to implement the cloud platform service layer unified information rollback method.
Compared with the prior art, the technical scheme provided by the embodiment of the invention has the following advantages:
when the preparation of the target resource for the target business operation is successful, the resource information of the target resource which is successfully prepared is archived, and the resource information comprises the resource ID of the target resource, the service calling party IP, the micro service IP to which the target resource belongs, the operation type and the operation parameter. And once the situation that the preparation of the target resource fails is met, inquiring the archive of the corresponding resource information according to the target business operation, wherein the resource information archive contains the resource information of all the target resources prepared before the failure occurs, and is the object of rollback. The invention determines the corresponding reverse operation type by utilizing the operation type in the resource information, wherein the reverse operation type is the operation type of a rollback interface for realizing rollback of the resource recorded by the resource information. And inquiring a rollback interface for executing rollback from the service registration center through the micro-service IP and the reverse operation type to which the target resource in the resource information belongs, and rollback the target resource recorded in the resource information by utilizing the rollback interface. Therefore, the rollback operation of each micro service on which the target business operation depends is unified by utilizing a unified means, the realization of codes is simple, and the later maintenance and expansion are facilitated.
When the operation interface of the micro service is defined, the operation type of the external interface is configured, the operation type of the external interface is defined, interface information containing the operation type is provided when the operation interface is registered with the service registration center, a basis is provided for the follow-up operation type and the corresponding reverse operation type in the resource information, and a basis is provided for the follow-up operation type to inquire the external interface from the service registration center to obtain the corresponding rollback interface.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and together with the description, serve to explain the principles of the invention.
In order to more clearly illustrate the embodiments of the invention or the technical solutions of the prior art, the drawings which are used in the description of the embodiments or the prior art will be briefly described, and it will be obvious to a person skilled in the art that other drawings can be obtained from these drawings without inventive effort.
Fig. 1 is a flowchart of a method for rolling back unified information of a service layer of a cloud platform according to an embodiment of the present invention;
FIG. 2 is a flow chart of a rollback interface for performing rollback operations from a service registry of a micro service according to the content of resource information provided by an embodiment of the present invention;
fig. 3 is a schematic diagram of a device for implementing a unified information rollback method of a service layer of a cloud platform according to an embodiment of the present invention;
fig. 4 is a schematic diagram of a terminal for implementing a unified information rollback method of a cloud platform service layer according to an embodiment of the present invention.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present invention more apparent, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention, and it is apparent that the described embodiments are some embodiments of the present invention, but not all embodiments of the present invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
Example 1
The embodiment of the invention provides a unified information rollback method of a cloud platform business layer, which is characterized in that when defining interfaces of all micro services, corresponding interface types are configured for the interfaces, and the interface types comprise: an internal interface and an external interface; further, configuring operation types implemented by the external interface for the external interface, wherein the operation types include: create, delete, modify, and query. When registering each micro service to the service registration center, reporting external interface information to the service registration center, wherein the external interface information comprises: interface name, interface type, operation type and operation parameters; the corresponding external interface can be checked from the service registry of the micro service through the operation type of the external interface and the micro service IP.
Referring to fig. 1, the method for rolling back unified information of a service layer of a cloud platform includes:
s100, after a service calling party initiates a target service operation, calling external interfaces of micro services on which the target service operation depends layer by layer to prepare corresponding target resources; in the specific implementation process, when a service calling party initiates a target service operation, a corresponding operation ID is configured for the target service operation.
S200, detecting whether the external interface preparation target resource of the micro-service on which the target business operation depends is successful, if yes, executing S300, otherwise, executing S400.
S300, if the external interface is called to prepare the target resource successfully, archiving the resource information of the prepared target resource, wherein the data structure of the resource information comprises: resource ID, service calling party IP, micro service IP to which the resource belongs, operation type and operation parameter; in the implementation process, a unified rollback controller is built for each micro-service rollback, the rollback controller is utilized to archive the prepared resource information of the target resource, and the resource information corresponding to the target service operation is mapped to the operation ID of the target service operation when the file is stored.
S400, if the external interface is called to prepare the target resource fails, inquiring the resource information of the corresponding target resource according to the target service operation; and when inquiring the resource information of the corresponding target resource according to the target service operation, acquiring the operation ID of the target service operation, and inquiring the corresponding resource information according to the operation ID. In the specific implementation process, when the preparation of the target resource by the target service operation fails, the rollback controller is informed to rollback the target service operation, the notification contains the operation ID of the target service operation, and the rollback controller inquires the resource information of the corresponding target resource by utilizing the operation ID of the target service operation. The resource information queried by the operation ID is the resource information of all the target resources which are prepared before the error failure occurs.
S500, inquiring a rollback interface for executing rollback operation from a service registry of the micro service according to the content of the resource information; in a specific implementation process, referring to fig. 2, the rollback interface for querying and executing rollback operation from the service registry of the micro service according to the content of the resource information includes:
s501, analyzing the data structure of the archived resource information of each target business operation to obtain each target operation type and the corresponding micro-service IP to which the target resource belongs. Specifically, the rollback controller analyzes the data structure of the archived resource information of each target business operation to obtain each target operation type and the corresponding micro-service IP to which the target resource belongs.
S502, determining a corresponding target reverse operation type according to the target operation type in the resource information by utilizing a pre-configured corresponding relation table of the operation type and the reverse operation type. Specifically, the rollback controller determines a corresponding target reverse operation type according to the target operation type in the resource information by using a pre-configured correspondence table of operation types and reverse operation types.
Specifically, when the record operation type in the corresponding relation table is creation, the corresponding reverse operation type is deletion; when the operation type is modified, the corresponding reverse operation type is modified. And when the operation type is delete, if the corresponding reverse operation type is create, the resource created by the external interface by using the create type is actually a new resource compared with the deleted resource, so that the application does not roll back the delete operation, i.e. does not create the reverse operation type as delete in the corresponding relation table.
S503, each corresponding rollback interface is queried from the service registration center by utilizing each target reverse operation type and the corresponding micro service IP to which the target resource belongs. Since each micro service is registered in the service registry, external interface information is reported to the service registry, wherein the external interface information includes: interface name, interface type, operation type and operation parameters; thus, the rollback controller can check the corresponding external interface from the service registry of the micro service through the operation type of the external interface and the micro service IP.
S600, rolling back corresponding content acquired from corresponding resource information by using a rolling-back interface. In the implementation process, when the rollback controller uses the rollback interface to rollback corresponding content obtained from the corresponding resource information, the rollback controller obtains the corresponding content from the resource information according to the operation type of the rollback interface. Such as: when the operation type of the rollback interface is deleting (the operation type in the corresponding resource information is creating), the resource ID is acquired from the corresponding resource information, and the rollback cancellation of the corresponding resource in the resource information is completed by deleting the resource mapped by the resource ID. When the operation type of the rollback interface is modified (the operation type in the corresponding resource information is modified), the resource ID and the operation parameter are acquired from the corresponding resource information, and the rollback cancellation of the corresponding resource in the resource information is completed by reversely modifying the operation parameter in the resource mapped by the resource ID.
In the specific implementation process, the invention records the corresponding operation log after the target business operation is successfully rolled back.
Example 2
Referring to fig. 3, an embodiment of the present invention provides a device for implementing a unified information rollback method of a service layer of a cloud platform, including: the failure detection module detects whether the preparation of the target resource by the micro-service external interface relied by the target business operation is successful;
the resource information archiving module is used for archiving the prepared resource information of the target resource according to a preset data structure when the preparation of the target resource is successful;
the resource information matching module is used for matching and inquiring corresponding resource information according to the target service when the target resource required by the target service operation fails;
the resource information analysis module analyzes the resource information and acquires the content of the resource information;
the rollback interface matching module is used for inquiring corresponding rollback interfaces from a service registration center for configuring each micro service by utilizing the content of the resource information;
the rollback execution module is used for rollback by utilizing the rollback interface and corresponding contents in corresponding resource information;
and the log module records the rollback process log of each target business operation.
Example 3
Referring to fig. 4, an embodiment of the present invention provides a terminal for implementing a unified information rollback method of a service layer of a cloud platform, including: the cloud platform business layer unified information rollback method is achieved by the aid of the processing unit, the bus unit, the storage unit, the display unit and the input unit, the bus unit is connected with the processing unit, the storage unit, the display unit and the input unit, the storage unit stores at least one instruction, and the processing unit reads and executes the instruction.
Example 4
The embodiment of the invention provides a storage medium for realizing a cloud platform business layer unified information rollback method, wherein the storage medium for realizing the cloud platform business layer unified information rollback method stores at least one instruction, and reads and executes the instruction to realize the cloud platform business layer unified information rollback method.
When the preparation of the target resource for the target business operation is successful, the resource information of the target resource which is successfully prepared is archived, and the resource information comprises the resource ID of the target resource, the service calling party IP, the micro service IP to which the target resource belongs, the operation type and the operation parameter. And once the situation that the preparation of the target resource fails is met, inquiring the archive of the corresponding resource information according to the target business operation, wherein the resource information archive contains the resource information of all the target resources prepared before the failure occurs, and is the object of rollback. The invention determines the corresponding reverse operation type by utilizing the operation type in the resource information, wherein the reverse operation type is the operation type of a rollback interface for realizing rollback of the resource recorded by the resource information. And inquiring a rollback interface for executing rollback from the service registration center through the micro-service IP and the reverse operation type to which the target resource in the resource information belongs, and rollback the target resource recorded in the resource information by utilizing the rollback interface. Therefore, the unified rollback controller is utilized to unify rollback operation of each micro-service on which the target business operation depends, the code is simple to realize, and the later maintenance and expansion are facilitated.
When the operation interface of the micro service is defined, the operation type of the external interface is configured, the operation type of the external interface is defined, interface information containing the operation type is provided when the operation interface is registered with the service registration center, a basis is provided for the follow-up operation type and the corresponding reverse operation type in the resource information, and a basis is provided for the follow-up operation type to inquire the external interface from the service registration center to obtain the corresponding rollback interface.
In the embodiments provided in the present invention, it should be understood that the disclosed apparatus and method may be implemented in other manners. For example, the apparatus embodiments described above are merely illustrative, e.g., the division of the units is merely a logical function division, and there may be additional divisions when actually implemented, e.g., multiple units or components may be combined or integrated into another system, or some features may be omitted or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices or units, which may be in electrical, mechanical or other form.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in the embodiments of the present invention may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The foregoing is only a specific embodiment of the invention to enable those skilled in the art to understand or practice the invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
Claims (9)
1. The unified information rollback method for the cloud platform business layer is characterized by comprising the following steps of:
after a service calling party initiates a target service operation, calling external interfaces of micro services on which the target service operation depends layer by layer to prepare corresponding target resources;
if the external interface is called to prepare the target resource successfully, archiving the resource information of the prepared target resource, wherein the data structure of the resource information comprises: resource ID, service calling party IP, micro service IP to which the resource belongs, operation type and operation parameter;
if the external interface is called to prepare the target resource fails, inquiring the resource information of the corresponding target resource according to the target service operation; inquiring a rollback interface for executing rollback operation from a service registry of the micro service according to the content of the resource information: analyzing the data structure of each archived resource information of the target business operation to obtain each target operation type and the corresponding micro-service IP to which the target resource belongs, determining the corresponding target reverse operation type according to the target operation type in the resource information by utilizing a pre-configured corresponding relation table of the operation type and the reverse operation type, and inquiring each corresponding rollback interface from the service registry by utilizing each target reverse operation type and the corresponding micro-service IP to which the target resource belongs;
the rollback interface rolls back based on the resource information.
2. The method for rolling back unified information of cloud platform business layer according to claim 1, wherein when defining the interfaces of each micro service, configuring the corresponding interface type for the interface, the interface type comprises: an internal interface and an external interface; further, configuring operation types implemented by the external interface for the external interface, wherein the operation types include: create, delete, modify, and query.
3. The cloud platform business layer unified information rollback method of claim 1, wherein when a target business operation is initiated, a corresponding operation ID is configured for the target business operation; when the prepared resource information of the target resource is archived, the resource information corresponding to the target business operation is mapped to the operation ID of the target business operation.
4. The cloud platform business layer unified information rollback method of claim 3, wherein when inquiring the resource information of the corresponding target resource according to the target business operation, the operation ID of the target business operation is obtained, and the corresponding resource information is inquired according to the operation ID.
5. The cloud platform business layer unified information rollback method of claim 1, wherein when each micro service is registered in the service registry, external interface information is reported to the service registry, wherein the external interface information comprises: interface name, interface type, operation type, and operation parameters.
6. The method for rolling back unified information of a cloud platform business layer according to claim 1, wherein when the rolling back interface rolls back based on the resource information, corresponding content is obtained from the resource information according to the operation type of the rolling back interface.
7. The device for realizing the unified information rollback method of the cloud platform business layer is characterized by comprising the following steps: the failure detection module detects whether the preparation of the target resource by the micro-service external interface relied by the target business operation is successful;
the resource information archiving module is used for archiving the prepared resource information of the target resource according to a preset data structure when the preparation of the target resource is successful;
the resource information matching module is used for matching and inquiring corresponding resource information according to the target service when the preparation of the target resource required by the target service operation fails;
the resource information analysis module analyzes the resource information and acquires the content of the resource information;
the rollback interface matching module queries a corresponding rollback interface from a service registry configuring each micro service by utilizing the content of the resource information, and comprises: analyzing the data structure of each archived resource information of the target business operation to obtain each target operation type and the corresponding micro-service IP to which the target resource belongs, determining the corresponding target reverse operation type according to the target operation type in the resource information by utilizing a pre-configured corresponding relation table of the operation type and the reverse operation type, and inquiring each corresponding rollback interface from the service registry by utilizing each target reverse operation type and the corresponding micro-service IP to which the target resource belongs;
and the rollback execution module is used for rollback by utilizing the rollback interface and corresponding content in the corresponding resource information.
8. The terminal for realizing the unified information rollback method of the cloud platform business layer is characterized by comprising the following steps: the cloud platform business layer unified information rollback method comprises a processing unit, a bus unit, a storage unit, a display unit and an input unit, wherein the bus unit is connected with the processing unit, the storage unit, the display unit and the input unit, the storage unit stores at least one instruction, and the processing unit reads and executes the instruction to realize the cloud platform business layer unified information rollback method according to any one of claims 1-6.
9. A storage medium for implementing a cloud platform service layer unified information rollback method, wherein the storage medium for implementing the cloud platform service layer unified information rollback method stores at least one instruction, and a processor reads and executes the instruction to implement the cloud platform service layer unified information rollback method according to any one of claims 1 to 6.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210094593.7A CN114553943B (en) | 2022-01-26 | 2022-01-26 | Cloud platform business layer unified information rollback method, device, terminal and medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210094593.7A CN114553943B (en) | 2022-01-26 | 2022-01-26 | Cloud platform business layer unified information rollback method, device, terminal and medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN114553943A CN114553943A (en) | 2022-05-27 |
CN114553943B true CN114553943B (en) | 2023-08-08 |
Family
ID=81673942
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210094593.7A Active CN114553943B (en) | 2022-01-26 | 2022-01-26 | Cloud platform business layer unified information rollback method, device, terminal and medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114553943B (en) |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109800083A (en) * | 2018-12-18 | 2019-05-24 | 平安科技(深圳)有限公司 | A kind of method, apparatus, system and storage medium that micro services collaboration is called |
CN112269677A (en) * | 2020-10-10 | 2021-01-26 | 北京浪潮数据技术有限公司 | Rollback operation device, method, equipment and medium under heterogeneous cloud platform |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8997088B2 (en) * | 2012-11-02 | 2015-03-31 | Wipro Limited | Methods and systems for automated deployment of software applications on heterogeneous cloud environments |
US10719414B2 (en) * | 2018-05-11 | 2020-07-21 | Cisco Technology, Inc. | Rollback for cloud native workflows |
-
2022
- 2022-01-26 CN CN202210094593.7A patent/CN114553943B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109800083A (en) * | 2018-12-18 | 2019-05-24 | 平安科技(深圳)有限公司 | A kind of method, apparatus, system and storage medium that micro services collaboration is called |
CN112269677A (en) * | 2020-10-10 | 2021-01-26 | 北京浪潮数据技术有限公司 | Rollback operation device, method, equipment and medium under heterogeneous cloud platform |
Also Published As
Publication number | Publication date |
---|---|
CN114553943A (en) | 2022-05-27 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110196731B (en) | Operation and maintenance system, method and storage medium | |
US8825597B1 (en) | Network folder synchronization | |
US6557169B1 (en) | Method and system for changing the operating system of a workstation connected to a data transmission network | |
JP2017084332A (en) | Method and apparatus for creating system disk snapshot of virtual machine | |
US20030195951A1 (en) | Method and system to dynamically detect, download and install drivers from an online service | |
US8627284B2 (en) | Managed system extensibility | |
CN111464603B (en) | Server capacity expansion method and system | |
CN104272292A (en) | Network resource deployment for cloud-based services | |
CN113268308B (en) | Information processing method, device and storage medium | |
US7117505B2 (en) | Methods, systems, and apparatus to interface with storage objects | |
CN113434337B (en) | Retry strategy control method and device and electronic equipment | |
CN115150392A (en) | Remote file copying method, system, computing equipment and storage medium | |
CN114422602B (en) | Micro-service calling method and device based on K8S cluster, electronic equipment and storage medium | |
CN114553943B (en) | Cloud platform business layer unified information rollback method, device, terminal and medium | |
CN114637519A (en) | Method and device for installing infrastructure and service | |
CN114489762A (en) | Method and system for realizing multi-version application and electronic equipment | |
CN111176720B (en) | Control method and control device for realizing running of application programs in multiple systems | |
US20180004767A1 (en) | REST APIs for Data Services | |
US20030110155A1 (en) | Data management mechanism for converting and distributing data | |
CN116069859A (en) | Incremental data synchronization method of database, storage medium and computer equipment | |
CN113992750B (en) | Global transaction cooperation method, device, equipment and medium | |
CN111683022B (en) | White box switch, method for upgrading forwarding function of white box switch and readable storage medium | |
CN113672334A (en) | Container management method and device | |
JP5469834B2 (en) | Terminal management system | |
JP5022083B2 (en) | Database migration method, database system, and database migration program |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |