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

Active Publication Date: 2022-05-24
ROOTCLOUD TECH CO LTD
View PDF4 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

The synergy and consistency of business services in existing distributed systems are relatively poor, and business services cannot be completed in collaboration

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Service state synchronization method, device and server
  • Service state synchronization method, device and server
  • Service state synchronization method, device and server

Examples

Experimental program
Comparison scheme
Effect test

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.

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The embodiment of the present application provides a service state synchronization method, device and server, wherein the method includes: intercepting the collaborative service request from multiple service requests through the master node according to the preset interception rules; when the master node executes the coordinated service request successfully , convert the service call parameters of the collaborative service request into an abstract request description, upload the abstract request description to the message middleware; read the target abstract request description from the node and parse it, get the target service call interface parameters, according to the target service Call the interface parameters to execute the collaborative service request; when the slave node fails to execute, send the request processing status of the slave node to the message middleware; re-execute the collaborative service request according to the target service call interface parameters until the collaborative service request succeeds. In this way, the final consistency of the business status between the master and slave nodes is guaranteed by ordering the abstract description of the node's request, and the business collaboration is completed.

Description

technical field [0001] The present application relates to the field of computer technologies, and in particular, to a method, device and server for synchronizing service status. Background technique [0002] With the continuous development of digital technology, various group companies and factories are facing the challenge of digital transformation. In particular, a large number of group-type industrial enterprises have very urgent digital transformation needs. Due to the complex data of group-type industrial enterprises, the digital transformation of group-type industrial enterprises is more complicated than that of a single factory. In the actual transaction processing process, The needs of business interaction among the group headquarters, business divisions, and multi-regional parks make the industrial Internet platform must have a corresponding flexible distributed deployment architecture and collaborative solutions. The business services of the existing distributed s...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Patents(China)
IPC IPC(8): H04L41/5041H04L67/1095
CPCH04L41/5041H04L67/1095
Inventor 徐晓旻陈垚亮黄胜
Owner ROOTCLOUD TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products