CN109901936B - Service cooperation method and device applied to distributed system - Google Patents

Service cooperation method and device applied to distributed system Download PDF

Info

Publication number
CN109901936B
CN109901936B CN201711309643.4A CN201711309643A CN109901936B CN 109901936 B CN109901936 B CN 109901936B CN 201711309643 A CN201711309643 A CN 201711309643A CN 109901936 B CN109901936 B CN 109901936B
Authority
CN
China
Prior art keywords
service
cooperation
user
receiving
model
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
Application number
CN201711309643.4A
Other languages
Chinese (zh)
Other versions
CN109901936A (en
Inventor
张建光
代合鹏
邹继文
王立群
祝洪强
高建民
乔海东
米丽娜
李银波
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Aisino Corp
Original Assignee
Aisino Corp
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Aisino Corp filed Critical Aisino Corp
Priority to CN201711309643.4A priority Critical patent/CN109901936B/en
Publication of CN109901936A publication Critical patent/CN109901936A/en
Application granted granted Critical
Publication of CN109901936B publication Critical patent/CN109901936B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Computer And Data Communications (AREA)

Abstract

The embodiment of the invention provides a service cooperation method and a device thereof applied to a distributed system, wherein the method comprises the following steps: obtaining an application scene of the distributed system, and performing organization modeling on a service mechanism according to the application scene to obtain a service model; and selecting a service cooperation type according with the application scene according to the service model, and realizing the transmission of service information by using a cooperation service bus with a message middleware function. The embodiment of the invention has richer interaction modes and can carry out complicated protocol exchange among multiple modules.

Description

Service cooperation method and device applied to distributed system
Technical Field
The present invention relates to a distributed system, and in particular, to a service cooperation method and apparatus applied to a distributed system.
Background
At present, distributed services are mostly implemented by using RPC (remote procedure Call), which is a protocol for requesting services from remote computer programs through a network without knowing the underlying network technology. The RPC protocol assumes the existence of some transport protocol, such as TCP or UDP, for carrying information data between communication procedures. In the OSI network communication model, RPC spans the transport and application layers. RPC makes it easier to develop applications including network distributed multiprogrammers.
RPC employs a client/server model. The requesting program is a client and the service providing program is a server. First, the client calling process sends a calling message with process parameters to the service process and then waits for a response message. On the server side, the process remains in a sleep state until the call information arrives. When a calling message arrives, the server obtains the process parameters, calculates the result, sends the reply message, then waits for the next calling message, and finally, the client calls the process to receive the reply message, obtain the process result, and then calls execution to continue.
However, the mode of RPC interaction is single, and generally is a one-response mode, and complicated protocol exchange among multiple modules cannot be performed. In a cross-region distributed system, in some scenes, two systems in cooperation need not only RPC type service to complete the operation of one cooperation service, and are in a service cooperation form suitable for multiple scenes.
Disclosure of Invention
The embodiment of the invention provides a service cooperation method and a device thereof applied to a distributed system, which have richer interaction modes and can carry out complicated protocol exchange among multiple modules.
According to an aspect of an embodiment of the present invention, there is provided a service cooperation method applied in a distributed system, including:
obtaining an application scene of the distributed system, and performing organization modeling on a service mechanism according to the application scene to obtain a service model;
and selecting a service cooperation type according with the application scene according to the service model, and realizing the transmission of service information by using a cooperation service bus with a message middleware function.
In a further embodiment of the present invention, the service model is a synchronization service model, the synchronization service model comprising:
receiving and sending a cooperation request condition sent by a service user to a service provider, and enabling the service user to wait for a result message;
and receiving and returning the service result obtained by the service provider according to the request condition to the service user, and enabling the service user to complete the whole service process.
In a further embodiment of the present invention, the service model is a synchronous business change service model, and the synchronous business change service model includes:
receiving and sending a preprocessing request sent by a service user to a service provider, and enabling the service user to wait for a preprocessing result;
receiving and returning a preprocessing result provided by the service provider to the service user;
and receiving and sending a submission or rollback instruction returned by the service user according to the preprocessing result to the service provider.
In a further embodiment of the present invention, the service model is an asynchronous business service model, the asynchronous business service model comprising:
receiving and sending the collaboration data sent by the service user to the service provider;
and receiving and returning a service result obtained by the service provider according to the cooperation data to the service user, and finishing the whole service process.
In a further embodiment of the present invention, the service model is an asynchronous business change service model, and the asynchronous business change service model includes:
and receiving and sending the collaboration data sent by the service user to the service provider.
According to another aspect of the embodiments of the present application, there is also provided a service cooperation apparatus applied in a distributed system, including:
the model establishing module is used for obtaining an application scene of the distributed system and organizing and modeling a service mechanism according to the application scene to obtain a service model;
and the service realization module is used for selecting the service cooperation type according with the application scene according to the service model and realizing the transmission of service information by utilizing a cooperation service bus with a message middleware function.
In a further embodiment of the present invention, the service model is a synchronization service model, the synchronization service model comprising:
receiving and sending a cooperation request condition sent by a service user to a service provider, and enabling the service user to wait for a result message;
and receiving and returning the service result obtained by the service provider according to the request condition to the service user, and enabling the service user to complete the whole service process.
In a further embodiment of the present invention, the service model is a synchronous business change service model, and the synchronous business change service model includes:
receiving and sending a preprocessing request sent by a service user to a service provider, and enabling the service user to wait for a preprocessing result;
receiving and returning a preprocessing result provided by the service provider to the service user;
and receiving and sending a submission or rollback instruction returned by the service user according to the preprocessing result to the service provider.
In a further embodiment of the present invention, the service model is an asynchronous business service model, the asynchronous business service model comprising:
receiving and sending the collaboration data sent by the service user to the service provider;
and receiving and returning a service result obtained by the service provider according to the cooperation data to the service user, and finishing the whole service process.
In a further embodiment of the present invention, the service model is an asynchronous business change service model, and the asynchronous business change service model includes:
and receiving and sending the collaboration data sent by the service user to the service provider.
According to the technical scheme provided by the embodiment of the invention, the application scene of the distributed system is obtained, and the service mechanism is organized and modeled according to the application scene to obtain the service model. Therefore, the service cooperation type which accords with the application scene is selected according to the service model, and the transmission of the service information is realized by utilizing the cooperation service bus with the function of the message middleware. Therefore, the invention organizes and models the service mechanism according to different scenes to match the use scenes of various services, and realizes the protocol exchange among complex multiple modules in a rich and single cooperation mode.
Drawings
Some specific embodiments of the invention will be described in detail hereinafter, by way of illustration and not limitation, with reference to the accompanying drawings. The same reference numbers in the drawings identify the same or similar elements or components. Those skilled in the art will appreciate that the drawings are not necessarily drawn to scale. In the drawings:
FIG. 1 is a flow chart of a service collaboration method applied in a distributed system according to one embodiment of the invention;
FIG. 2 is a flow diagram of a synchronization service model in a service collaboration method applied in a distributed system according to one embodiment of the present invention;
FIG. 3 is a message passing diagram of a synchronization service model applied in a service cooperation method in a distributed system according to an embodiment of the present invention;
FIG. 4 is a flow diagram of a synchronized business change service model applied in a service collaboration method in a distributed system, according to an embodiment of the present invention;
FIG. 5 is a message passing diagram of a synchronous business change service model applied in a service cooperation method in a distributed system according to an embodiment of the present invention;
FIG. 6 is a flowchart of step S403 in the synchronous business change service model of the service cooperation method applied in the distributed system according to an embodiment of the present invention;
FIG. 7 is a flow diagram of an asynchronous business service model applied in a service collaboration method in a distributed system, according to one embodiment of the present invention;
FIG. 8 is a message passing diagram of an asynchronous business service model applied in a service cooperation method in a distributed system according to an embodiment of the present invention;
FIG. 9 is a flow diagram of an asynchronous business change service model applied to a service collaboration method in a distributed system, according to one embodiment of the present invention;
FIG. 10 is a message passing diagram of an asynchronous business change service model applied to a service collaboration method in a distributed system according to an embodiment of the present invention;
fig. 11 is a block diagram of a service cooperation apparatus applied to a distributed system according to an embodiment of the present invention.
Detailed Description
The following detailed description of embodiments of the present application will be made in conjunction with the accompanying drawings (like numerals indicate like elements throughout the several views) and embodiments. The following examples are intended to illustrate the present application but are not intended to limit the scope of the present application.
It will be understood by those within the art that the terms "first", "second", etc. in the embodiments of the present application are used only for distinguishing between different steps, devices or modules, etc., and do not denote any particular technical or logical order therebetween.
Example one
Referring to fig. 1, a flowchart illustrating steps of a service cooperation method applied in a distributed system according to a first embodiment of the present application is shown.
It should be noted that steps S101 to S102 described in the present application do not represent the execution sequence.
The method of the embodiment comprises the following steps:
step S101: and obtaining an application scene of the distributed system, and performing organization modeling on a service mechanism according to the application scene to obtain a service model.
In a specific implementation of the present application, the service model includes: at least one of a synchronous service model, a synchronous service change service model, an asynchronous service model, and an asynchronous service change service model.
Step S102: and selecting a service cooperation type according with the application scene according to the service model, and realizing the transmission of service information by using a cooperation service bus with a message middleware function.
In a specific implementation of the present invention, if the service model is a synchronization service model, referring to fig. 2, the synchronization service model includes:
step S201: receiving and sending a cooperation request condition sent by a service user to a service provider, and enabling the service user to wait for a result message;
step S202: and receiving and returning the service result obtained by the service provider according to the request condition to the service user, and enabling the service user to complete the whole service process.
Specifically, referring to fig. 3, the messaging of the synchronization service model includes:
and the service user sends a cooperation request condition to the cooperation service bus and waits for a result message. And after the cooperation service bus verifies the service permission, the cooperation request condition is sent to the service provider. And the service provider acquires a service result according to the cooperation request condition and returns the service result to the cooperation service bus. And the service user finishes the whole service process after waiting for a return result.
At present, the remote service used in the IT/Internet industry has more service types of synchronous query. And the controllable message of the synchronous service model ensures the network transmission to be reachable, receives a return result in a synchronous waiting mode, sets the waiting time and the message life cycle, and completes the calling of the synchronous service.
In another specific implementation of the present invention, the service model is a synchronous service change service model, referring to fig. 4, where the synchronous service change service model includes:
step S401: and receiving and sending a preprocessing request sent by a service user to a service provider, and enabling the service user to wait for a preprocessing result.
Step S402: and receiving and returning a preprocessing result provided by the service provider to the service user.
Step S403: and receiving and sending a submission or rollback instruction returned by the service user according to the preprocessing result to the service provider.
Specifically, referring to fig. 5, the message passing of the synchronous business change service model includes:
the services of the service consumer and the service provider invoke a two-stage commit distributed transaction service. The calling process of the service is completed through the cooperation service bus, and the cooperation service bus plays roles in transmitting cooperation information and verifying service permission through the bus in the calling process of the service.
And the service user sends the preprocessing request to the cooperative service bus and can synchronously receive the preprocessing result returned after submitting the preprocessing request. The service user can make a commit or rollback instruction according to the obtained result of the preprocessing (success, failure, or return failure).
And the service provider receives the preprocessing request and synchronously returns the preprocessing result to the service user. And the service provider receives a submission or rollback instruction sent by the service user and completes the processing.
The service consumer also acts as a coordinator and the service provider is a participant in the global transaction service.
The use scene is as follows: the services required by the local service system and the remote service system are completed in a global transaction. Completion of the business requires a concurrent completion or a concurrent rollback at the business system of the local and distributed services.
The flow of the synchronous business change service model is submitted in two phases.
A first stage:
and the service user preprocesses the service data, sends the preprocessing request to the cooperative service bus after the preprocessing is successful, and synchronously waits for the returning of the preprocessing result.
And after receiving the preprocessing request, the service provider performs preprocessing operation and synchronously returns a preprocessing result.
Two stages:
and after receiving the preprocessing result, the service user submits and simultaneously sends a submitting or rollback instruction to the service provider through the cooperative service bus according to the preprocessing result.
Referring to fig. 6, the step S403 includes:
step S4031: and when the preprocessing result is a preprocessing success result, receiving and sending a submission receiving instruction returned by the service user to the service provider.
Step S4032: and when the preprocessing result is a preprocessing failure result, receiving and sending a rollback instruction returned by the service user to the service provider.
When the preprocessing result is a preprocessing failure result, that is, when a result return timeout occurs, the preprocessing result may be in two different states: one is at request message timeout and one is at result message timeout. The state presented by the service provider is completely inconsistent for both cases. However, since it is not possible to determine which condition it belongs to, a rollback instruction is sent when a pre-processing failure result is returned. The rollback instruction carries the collaboration ID number of the service (e.g., the same ID number is assigned to all messages in each collaboration). And after receiving the rollback instruction, the service provider inquires whether the cooperation information of the ID number is preprocessed or not, if not, the information is deleted, and if the cooperation information is preprocessed, the service provider rolls back.
In yet another specific implementation of the present invention, the service model is an asynchronous business service model, referring to fig. 7, where the asynchronous business service model includes:
step S701: and receiving and sending the collaboration data sent by the service user to the service provider.
Step S702: and receiving and returning a service result obtained by the service provider according to the cooperation data to the service user, and finishing the whole service process.
Specifically, referring to fig. 8, the message passing of the asynchronous business service model includes:
the service user sends the cooperation data to the cooperation service bus without waiting for a feedback message. And after the cooperation service bus verifies the service permission, the cooperation information is sent to the service provider. And the service provider examines the cooperation result according to the message content and sends the cooperation result to the cooperation service bus, and the service user receives the service result and performs corresponding processing.
In another specific implementation of the present invention, the service model is an asynchronous service change service model, referring to fig. 9, where the asynchronous service change service model includes:
step S901: and receiving and sending the collaboration data sent by the service user to the service provider.
Specifically, referring to fig. 10, the message passing of the asynchronous business change service model includes:
the service user sends the cooperation data to the cooperation service bus without waiting for a feedback message. And after the cooperation service bus verifies the service permission, the cooperation message is sent to the service provider, and the service provider completes the whole service process according to the message content.
The service cooperation method applied to the distributed system of the present embodiment may be performed by any suitable cooperation service bus having a message middleware function.
According to the technical scheme provided by the embodiment of the invention, the application scene of the distributed system is obtained, and the service mechanism is organized and modeled according to the application scene to obtain the service model. Therefore, the service cooperation type which accords with the application scene is selected according to the service model, and the transmission of the service information is realized by utilizing the cooperation service bus with the function of the message middleware. Therefore, the invention organizes and models the service mechanism according to different scenes to match the use scenes of various services, and realizes the protocol exchange among complex multiple modules in a rich and single cooperation mode.
Example two
Referring to fig. 11, a block diagram of a service cooperation apparatus applied to a distributed system according to a second embodiment of the present application is shown.
The device of the embodiment comprises:
and the model establishing module 111 is configured to obtain an application scenario of the distributed system, and perform organization modeling on a service mechanism according to the application scenario to obtain a service model.
And the service implementation module 112 is configured to select a service cooperation type according to the service model, and implement transmission of service information by using a cooperation service bus with a message middleware function.
In a specific implementation of the present application, the service model includes: at least one of a synchronous service model, a synchronous service change service model, an asynchronous service model, and an asynchronous service change service model.
In a specific implementation of the present invention, if the service model is a synchronization service model, referring to fig. 2, the synchronization service model includes:
step S201: receiving and sending a cooperation request condition sent by a service user to a service provider, and enabling the service user to wait for a result message;
step S202: and receiving and returning the service result obtained by the service provider according to the request condition to the service user, and enabling the service user to complete the whole service process.
Specifically, referring to fig. 3, the messaging of the synchronization service model includes:
and the service user sends a cooperation request condition to the cooperation service bus and waits for a result message. And after the cooperation service bus verifies the service permission, the cooperation request condition is sent to the service provider. And the service provider acquires a service result according to the cooperation request condition and returns the service result to the cooperation service bus. And the service user finishes the whole service process after waiting for a return result.
At present, the remote service used in the IT/Internet industry has more service types of synchronous query. And the controllable message of the synchronous service model ensures the network transmission to be reachable, receives a return result in a synchronous waiting mode, sets the waiting time and the message life cycle, and completes the calling of the synchronous service.
In another specific implementation of the present invention, the service model is a synchronous service change service model, referring to fig. 4, where the synchronous service change service model includes:
step S401: and receiving and sending a preprocessing request sent by a service user to a service provider, and enabling the service user to wait for a preprocessing result.
Step S402: and receiving and returning a preprocessing result provided by the service provider to the service user.
Step S403: and receiving and sending a submission or rollback instruction returned by the service user according to the preprocessing result to the service provider.
Specifically, referring to fig. 5, the message passing of the synchronous business change service model includes:
the services of the service consumer and the service provider invoke a two-stage commit distributed transaction service. The calling process of the service is completed through the cooperation service bus, and the cooperation service bus plays roles in transmitting cooperation information and verifying service permission through the bus in the calling process of the service.
And the service user sends the preprocessing request to the cooperative service bus and can synchronously receive the preprocessing result returned after submitting the preprocessing request. The service user can make a commit or rollback instruction according to the obtained result of the preprocessing (success, failure, or return failure).
And the service provider receives the preprocessing request and synchronously returns the preprocessing result to the service user. And the service provider receives a submission or rollback instruction sent by the service user and completes the processing.
The service consumer also acts as a coordinator and the service provider is a participant in the global transaction service.
The use scene is as follows: the services required by the local service system and the remote service system are completed in a global transaction. Completion of the business requires a concurrent completion or a concurrent rollback at the business system of the local and distributed services.
The flow of the synchronous business change service model is submitted in two phases.
A first stage:
and the service user preprocesses the service data, sends the preprocessing request to the cooperative service bus after the preprocessing is successful, and synchronously waits for the returning of the preprocessing result.
And after receiving the preprocessing request, the service provider performs preprocessing operation and synchronously returns a preprocessing result.
Two stages:
and after receiving the preprocessing result, the service user submits and simultaneously sends a submitting or rollback instruction to the service provider through the cooperative service bus according to the preprocessing result.
Referring to fig. 6, the step S403 includes:
step S4031: and when the preprocessing result is a preprocessing success result, receiving and sending a submission receiving instruction returned by the service user to the service provider.
Step S4032: and when the preprocessing result is a preprocessing failure result, receiving and sending a rollback instruction returned by the service user to the service provider.
When the preprocessing result is a preprocessing failure result, that is, when a result return timeout occurs, the preprocessing result may be in two different states: one is at request message timeout and one is at result message timeout. The state presented by the service provider is completely inconsistent for both cases. However, since it is not possible to determine which condition it belongs to, a rollback instruction is sent when a pre-processing failure result is returned. The rollback instruction carries the collaboration ID number of the service (e.g., the same ID number is assigned to all messages in each collaboration). And after receiving the rollback instruction, the service provider inquires whether the cooperation information of the ID number is preprocessed or not, if not, the information is deleted, and if the cooperation information is preprocessed, the service provider rolls back.
In yet another specific implementation of the present invention, the service model is an asynchronous business service model, referring to fig. 7, where the asynchronous business service model includes:
step S701: and receiving and sending the collaboration data sent by the service user to the service provider.
Step S702: and receiving and returning a service result obtained by the service provider according to the cooperation data to the service user, and finishing the whole service process.
Specifically, referring to fig. 8, the message passing of the asynchronous business service model includes:
the service user sends the cooperation data to the cooperation service bus without waiting for a feedback message. And after the cooperation service bus verifies the service permission, the cooperation information is sent to the service provider. And the service provider examines the cooperation result according to the message content and sends the cooperation result to the cooperation service bus, and the service user receives the service result and performs corresponding processing.
In another specific implementation of the present invention, the service model is an asynchronous service change service model, referring to fig. 9, where the asynchronous service change service model includes:
step S901: and receiving and sending the collaboration data sent by the service user to the service provider.
Specifically, referring to fig. 10, the message passing of the asynchronous business change service model includes:
the service user sends the cooperation data to the cooperation service bus without waiting for a feedback message. And after the cooperation service bus verifies the service permission, the cooperation message is sent to the service provider, and the service provider completes the whole service process according to the message content.
The service cooperation method applied to the distributed system of the present embodiment may be performed by any suitable cooperation service bus having a message middleware function.
According to the technical scheme provided by the embodiment of the invention, the application scene of the distributed system is obtained, and the service mechanism is organized and modeled according to the application scene to obtain the service model. Therefore, the service cooperation type which accords with the application scene is selected according to the service model, and the transmission of the service information is realized by utilizing the cooperation service bus with the function of the message middleware. Therefore, the invention organizes and models the service mechanism according to different scenes to match the use scenes of various services, and realizes the protocol exchange among complex multiple modules in a rich and single cooperation mode.
It should be noted that, according to the implementation requirement, each component/step described in the embodiment of the present application may be divided into more components/steps, and two or more components/steps or partial operations of the components/steps may also be combined into a new component/step to achieve the purpose of the embodiment of the present application.
The above-described method according to the embodiments of the present application may be implemented in hardware, firmware, or may be implemented as data storable in a recording medium (such as a CD ROM, RAM, a floppy disk, a hard disk, or a magneto-optical disk)
Or computer code embodied in a network, originally stored in a remote recording medium or a non-transitory machine-readable medium, to be stored in a local recording medium, so that the methods described herein may be stored as such software processes on a recording medium using a general purpose computer, a special purpose processor, or programmable or special purpose hardware, such as an ASIC or FPGA. It will be appreciated that the computer, processor, microprocessor controller or programmable hardware includes memory components (e.g., RAM, ROM, flash memory, etc.) that can store or receive software or computer code that, when accessed and executed by the computer, processor or hardware, implements the interactive animation implementation methods described herein. Further, when a general-purpose computer accesses code for implementing the implementation methods of interactive animation shown herein, execution of the code transforms the general-purpose computer into a special-purpose computer for performing the implementation methods of interactive animation shown herein.
Those of ordinary skill in the art will appreciate that the various illustrative elements and method steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the embodiments of the present application.
The above embodiments are only used for illustrating the embodiments of the present application, and not for limiting the embodiments of the present application, and those skilled in the relevant art can make various changes and modifications without departing from the spirit and scope of the embodiments of the present application, so that all equivalent technical solutions also belong to the scope of the embodiments of the present application, and the scope of patent protection of the embodiments of the present application should be defined by the claims.

Claims (2)

1. A service cooperation method applied to a distributed system is characterized by comprising the following steps:
obtaining an application scene of the distributed system, and performing organization modeling on a service mechanism according to the application scene to obtain a service model, wherein the service model comprises: at least one of a synchronous service model, a synchronous service change service model, an asynchronous service model and an asynchronous service change service model;
the synchronization service model includes: receiving and sending a cooperation request condition sent by a service user to a service provider, enabling the service user to wait for a result message, receiving and returning a service result obtained by the service provider according to the request condition to the service user, and enabling the service user to complete an overall service process;
the synchronous business change service model comprises: receiving and sending a preprocessing request sent by a service user to a service provider, enabling the service user to wait for a preprocessing result, receiving and returning the preprocessing result provided by the service provider to the service user, and receiving and sending a submission or rollback instruction returned by the service user according to the preprocessing result to the service provider;
the asynchronous business service model comprises: receiving and sending the cooperation data sent by the service user to the service provider without waiting for a feedback message, and receiving and returning a service result obtained by the service provider according to the cooperation data to the service user to complete the whole service process;
the asynchronous business change service model comprises: receiving and sending the cooperation data sent by the service user to the service provider without waiting for the feedback message;
and selecting a service cooperation type according with the application scene according to the service model, verifying service permission by using a cooperation service bus with a message middleware function, and if the service permission passes verification, transmitting service information through the cooperation service bus.
2. A service collaboration apparatus applied in a distributed system, comprising:
the model establishing module is used for obtaining an application scene of the distributed system, organizing and modeling a service mechanism according to the application scene to obtain a service model, and the service model comprises: at least one of a synchronous service model, a synchronous service change service model, an asynchronous service model and an asynchronous service change service model; the synchronization service model includes: receiving and sending a cooperation request condition sent by a service user to a service provider, enabling the service user to wait for a result message, receiving and returning a service result obtained by the service provider according to the request condition to the service user, and enabling the service user to complete an overall service process; the synchronous business change service model comprises: receiving and sending a preprocessing request sent by a service user to a service provider, enabling the service user to wait for a preprocessing result, receiving and returning the preprocessing result provided by the service provider to the service user, and receiving and sending a submission or rollback instruction returned by the service user according to the preprocessing result to the service provider; the asynchronous business service model comprises: receiving and sending the cooperation data sent by the service user to the service provider without waiting for a feedback message, and receiving and returning a service result obtained by the service provider according to the cooperation data to the service user to complete the whole service process; the asynchronous business change service model comprises: receiving and sending the cooperation data sent by the service user to the service provider without waiting for the feedback message;
and the service realization module is used for selecting a service cooperation type according with the application scene according to the service model, verifying the service permission by using a cooperation service bus with a message middleware function, and realizing the transmission of service information through the cooperation service bus if the verification is passed.
CN201711309643.4A 2017-12-11 2017-12-11 Service cooperation method and device applied to distributed system Active CN109901936B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711309643.4A CN109901936B (en) 2017-12-11 2017-12-11 Service cooperation method and device applied to distributed system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711309643.4A CN109901936B (en) 2017-12-11 2017-12-11 Service cooperation method and device applied to distributed system

Publications (2)

Publication Number Publication Date
CN109901936A CN109901936A (en) 2019-06-18
CN109901936B true CN109901936B (en) 2021-09-10

Family

ID=66942356

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711309643.4A Active CN109901936B (en) 2017-12-11 2017-12-11 Service cooperation method and device applied to distributed system

Country Status (1)

Country Link
CN (1) CN109901936B (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105843182A (en) * 2015-09-11 2016-08-10 国家电网公司西北分部 Power dispatching accident handling scheme preparing system and power dispatching accident handling scheme preparing method based on OMS

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080306798A1 (en) * 2007-06-05 2008-12-11 Juergen Anke Deployment planning of components in heterogeneous environments
CN101388910B (en) * 2008-10-29 2012-05-30 北京中企开源信息技术有限公司 System and method for realizing combined service
CN102081605A (en) * 2009-11-30 2011-06-01 中国移动通信集团上海有限公司 Data warehouse-based data encapsulation device and service data acquisition method
CN102546736B (en) * 2010-12-08 2015-06-17 中国电信股份有限公司 Method and system for communication between pieces of widget application
WO2014183296A1 (en) * 2013-05-17 2014-11-20 华为技术有限公司 Service data scrambling method, service data descrambling method, apparatus, and system
CN104486440B (en) * 2014-12-25 2018-03-02 浪潮电子信息产业股份有限公司 Message bus-based cloud computing management software interaction method
CN106921688B (en) * 2015-12-24 2020-10-02 阿里巴巴集团控股有限公司 Service providing method for distributed system and distributed system
CN107277083B (en) * 2016-04-06 2021-03-02 创新先进技术有限公司 Data interaction processing method, device and system
CN106412009A (en) * 2016-08-29 2017-02-15 郑州悉知信息科技股份有限公司 Interface calling method and device

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105843182A (en) * 2015-09-11 2016-08-10 国家电网公司西北分部 Power dispatching accident handling scheme preparing system and power dispatching accident handling scheme preparing method based on OMS

Also Published As

Publication number Publication date
CN109901936A (en) 2019-06-18

Similar Documents

Publication Publication Date Title
CN107993149B (en) Account information management method, system and readable storage medium
CN107733922A (en) Method and apparatus for calling service
CN102404367B (en) A kind of asynchronous communication method and system
CN114172662B (en) Block chain external data acquisition method and device
CN110099461A (en) Communication means, device, system, electronic equipment and storage medium between terminal
CN104618101A (en) Data processing method, intermediate server and data processing system
CN109189502A (en) A kind of message treatment method and relevant device based on instant messaging public platform
CN105610958A (en) Method and device for selecting time synchronization server and intelligent terminal
CN108696899A (en) Sip message transmits and method of reseptance and transmission and reception device
CN102833328A (en) Unified application calling method and unified calling client
CN103297462A (en) Verification method and device of service object
CN106357654B (en) Remote procedure calling method, device and communication system
CN112200654A (en) Service method, client, system, electronic device and readable storage medium
CN109901936B (en) Service cooperation method and device applied to distributed system
CN116150540B (en) System and method for realizing one-key switching of exhibition item content based on meta universe and cloud platform
CN112925512A (en) Message sending method and device, electronic equipment and storage medium
CN110673970B (en) Cross-process calling system and method based on web application
CN114390109B (en) Service processing method, micro-service gateway and data center system
CN113553206B (en) Data event execution method and device, electronic equipment and computer readable medium
CN115330396A (en) Payment state acquisition method and device, computer equipment and storage medium
CN113726731A (en) Method and system for realizing real-time communication between terminal APP and server based on TCP
CN110958240A (en) Message subscription system and method
WO2017173967A1 (en) Redirection method, service provider, unstructured supplementary service data center, and system
CN115334135B (en) Multi-cloud api asynchronous processing method, device and equipment based on event bus
US20240152504A1 (en) Data interaction method, apparatus, and electronic device

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