Service state synchronization method, device and server
A service status and collaborative service technology, applied in the computer field, can solve problems such as poor synergy and consistency of business services, and inability to complete business services through collaboration, achieving the effect of ensuring autonomy and final consistency
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0036] An embodiment of the present disclosure provides a method for synchronizing service status.
[0037] Specifically, see Figure 4 , the synchronization method of the service state includes the following steps:
[0038] Step S401 , determining a collaborative service request from a plurality of service requests through a request interceptor of the master node according to a preset interception rule, and intercepting the collaborative service request.
[0039] The method for synchronizing service states in this embodiment can be applied to a master-slave multi-service node system. The master-slave multi-service node system includes two mutually exclusive roles, and each node has an independent and unique data center ID. There is 1 primary data center and multiple secondary data centers.
[0040] In one embodiment, the preset interception rule includes a whitelist, a target service type, a request service interface path, an exception path, and a service interface request ...
Embodiment 2
[0123] In addition, an embodiment of the present disclosure provides an apparatus for synchronizing service status.
[0124] Specifically, see Figure 7 , the service state synchronization apparatus 700 includes:
[0125] An interception module 701, configured to determine a collaborative service request from a plurality of service requests through a request interceptor of the master node according to a preset interception rule, and intercept the collaborative service request;
[0126] The conversion module 702 is configured to convert the service invocation parameters of the cooperative service request into an abstract request description through the request interceptor when the master node successfully executes the cooperative service request, and upload the abstract request description to In the request success topic of the message middleware;
[0127] A parsing module 703, configured to read the target abstract request description from the request success topic through the...
Embodiment 3
[0151] In addition, an embodiment of the present disclosure provides a server, including a memory and a processor, wherein the memory stores a computer program, and when the computer program runs on the processor, the computer program executes the service state provided by the foregoing method embodiment 1. synchronization method.
[0152] The server provided in this embodiment can implement the steps of the method for synchronizing the service state provided in Embodiment 1, which is not repeated here in order to avoid repetition.
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com