CN109901936A - A kind of service collaboration method and its device applied in distributed system - Google Patents

A kind of service collaboration method and its device applied in distributed system Download PDF

Info

Publication number
CN109901936A
CN109901936A CN201711309643.4A CN201711309643A CN109901936A CN 109901936 A CN109901936 A CN 109901936A CN 201711309643 A CN201711309643 A CN 201711309643A CN 109901936 A CN109901936 A CN 109901936A
Authority
CN
China
Prior art keywords
service
model
user
receives
collaboration
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.)
Granted
Application number
CN201711309643.4A
Other languages
Chinese (zh)
Other versions
CN109901936B (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

Landscapes

  • Computer And Data Communications (AREA)

Abstract

The embodiment of the invention provides a kind of service collaboration method and its device applied in distributed system, the methods, comprising: the application scenarios for obtaining the distributed system carry out organization modeling to service mechanism according to the application scenarios and obtain service model;The service collaboration type for meeting the application scenarios according to service model selection, the transmission of information on services is realized using the collaboration services bus for having message-oriented middleware function.The more interactive mode of the embodiment of the present invention is more abundant, can carry out the agreement exchange between complicated multimode.

Description

A kind of service collaboration method and its device applied in distributed system
Technical field
The present invention relates to distributed system, more particularly to a kind of service collaboration method applied in distributed system and Its device.
Background technique
Distributed Services mostly use RPC (remote procedure call) to realize at this stage, it is that one kind is counted by network from long-range Service is requested in calculation machine program, the agreement without understanding underlying network technology.RPC agreement assumes depositing for certain transport protocols Such as TCP or UDP, information data is being carried between signal procedure.In OSI network communication models, RPC spans transport layer And application layer.RPC is more easier the application program developed including network distribution type multiprogram.
RPC uses Client/Server pattern.Requestor is exactly a client computer, and service providing program is exactly one A server.There is the recalls information of process parameter to service processes firstly, client calls process sends one, then waits and answering Answer information.In server end, process keeps sleep state until recalls information reaches.When a recalls information arrival, clothes Business device obtains process parameter, and calculated result sends reply message, next recalls information then waited, finally, client call Process receives reply message, obtains proceeding results, then execution is called to continue.
But the mode of RPC interaction is relatively simple, generally one answers a mode answered, not can be carried out complicated multimode it Between agreement exchange.In cross-region distributed system, the two systems of cooperation complete a collaboration service in certain scenes Operation need be not only RPC formula service, for the business collaboration form for adapting to more scenes.
Summary of the invention
The embodiment of the invention provides a kind of service collaboration methods and its device applied in distributed system, more Interactive mode is more abundant, can carry out the agreement exchange between complicated multimode.
According to an aspect of an embodiment of the present invention, a kind of service collaboration method applied in distributed system is provided, Include:
The application scenarios for obtaining the distributed system carry out organization modeling to service mechanism according to the application scenarios and obtain To service model;
Meet the service collaboration types of the application scenarios according to service model selection, using having message-oriented middleware The collaboration services bus of function realizes the transmission of information on services.
In further embodiment of the present invention, the service model is synchronous service model, the synchronous service model Include:
It receives and is sent to service provider for the cooperation request condition that user sends is serviced, enable the service user Wait results messages;
It receives and service provider is back to the service user according to the service result that the request condition obtains, The service user is enabled to complete integrity service process.
In further embodiment of the present invention, the service model is that synchronous service changes service model, the synchronization Business changes service model
It receives and is sent to service provider for the pretreatment request that user sends is serviced, enable described service user etc. To the pretreated result;
It receives and the pre-processed results that the service provider provides is back to the service user;
It receives and is sent to the submission or rollback instruction that the service user returns according to the pre-processed results The service provider.
In further embodiment of the present invention, the service model is asynchronous service service model, the asynchronous service Service model includes:
It receives and is sent to service provider for the collaboration data that user sends is serviced;
It receives and service provider is back to the service user according to the service result that the collaboration data obtains, Complete integrity service process.
In further embodiment of the present invention, the service model is that asynchronous service changes service model, described asynchronous Business changes service model
It receives and is sent to service provider for the collaboration data that user sends is serviced.
According to the other side of the embodiment of the present application, a kind of service collaboration dress applied in distributed system is also provided It sets, comprising:
Model building module, for obtaining the application scenarios of the distributed system, according to the application scenarios to service Mechanism carries out organization modeling and obtains service model;
Service implementation, for meeting the service collaboration type of the application scenarios according to service model selection, The transmission of information on services is realized using the collaboration services bus for having message-oriented middleware function.
In further embodiment of the present invention, the service model is synchronous service model, the synchronous service model Include:
It receives and is sent to service provider for the cooperation request condition that user sends is serviced, enable the service user Wait results messages;
It receives and service provider is back to the service user according to the service result that the request condition obtains, The service user is enabled to complete integrity service process.
In further embodiment of the present invention, the service model is that synchronous service changes service model, the synchronization Business changes service model
It receives and is sent to service provider for the pretreatment request that user sends is serviced, enable described service user etc. To the pretreated result;
It receives and the pre-processed results that the service provider provides is back to the service user;
It receives and is sent to the submission or rollback instruction that the service user returns according to the pre-processed results The service provider.
In further embodiment of the present invention, the service model is asynchronous service service model, the asynchronous service Service model includes:
It receives and is sent to service provider for the collaboration data that user sends is serviced;
It receives and service provider is back to the service user according to the service result that the collaboration data obtains, Complete integrity service process.
In further embodiment of the present invention, the service model is that asynchronous service changes service model, described asynchronous Business changes service model
It receives and is sent to service provider for the collaboration data that user sends is serviced.
The technical solution provided according to embodiments of the present invention, the present invention obtain the application scenarios of the distributed system, root Organization modeling is carried out to service mechanism according to the application scenarios and obtains service model.To according to the service model selector The service collaboration type for closing the application scenarios realizes information on services using the collaboration services bus for having message-oriented middleware function Transmission.Therefore, service mechanism is carried out organization modeling according to different scenes by the present invention, to match the use field of all kinds of services Scape realizes the agreement exchange between complicated multimode to enrich relatively simple cooperation mode.
Detailed description of the invention
Some specific embodiments of the present invention is described in detail by way of example and not limitation with reference to the accompanying drawings hereinafter. Identical appended drawing reference denotes same or similar part or part in attached drawing.It should be appreciated by those skilled in the art that these What attached drawing was not necessarily drawn to scale.In attached drawing:
Fig. 1 is a kind of process applied to the service collaboration method in distributed system according to an embodiment of the invention Figure;
Fig. 2 is synchronous in a kind of service collaboration method applied in distributed system according to an embodiment of the invention The flow chart of service model;
Fig. 3 is synchronous in a kind of service collaboration method applied in distributed system according to an embodiment of the invention The message transmission schematic diagram of service model;
Fig. 4 is synchronous in a kind of service collaboration method applied in distributed system according to an embodiment of the invention The flow chart of business variation service model;
Fig. 5 is synchronous in a kind of service collaboration method applied in distributed system according to an embodiment of the invention The message transmission schematic diagram of business variation service model;
Fig. 6 is synchronous in a kind of service collaboration method applied in distributed system according to an embodiment of the invention Business changes the flow chart of step S403 in service model;
Fig. 7 is asynchronous in a kind of service collaboration method applied in distributed system according to an embodiment of the invention The flow chart of business service model;
Fig. 8 is asynchronous in a kind of service collaboration method applied in distributed system according to an embodiment of the invention The message transmission schematic diagram of business service model;
Fig. 9 is asynchronous in a kind of service collaboration method applied in distributed system according to an embodiment of the invention The flow chart of business variation service model;
Figure 10 is different in a kind of service collaboration method applied in distributed system according to an embodiment of the invention The message transmission schematic diagram of step business variation service model;
Figure 11 is a kind of knot applied to the service collaboration device in distributed system according to an embodiment of the invention Composition.
Specific embodiment
(identical label indicates identical element in several attached drawings) and embodiment with reference to the accompanying drawing, implement the application The specific embodiment of example is described in further detail.Following embodiment is not limited to the application for illustrating the application Range.
It will be understood by those skilled in the art that the terms such as " first ", " second " in the embodiment of the present application are only used for distinguishing Different step, equipment or module etc., neither represent any particular technology meaning, also do not indicate that the inevitable logic between them is suitable Sequence.
Embodiment one
Referring to Fig.1, a kind of service collaboration side applied in distributed system according to the embodiment of the present application one is shown The step flow chart of method.
It is worth noting that herein described step S101 to S102 does not represent the sequencing of its execution.
The method of the present embodiment the following steps are included:
Step S101: obtaining the application scenarios of the distributed system, is carried out according to the application scenarios to service mechanism Organization modeling obtains service model.
In the application one in the specific implementation, the service model includes: synchronous service model, synchronous service variation service mould Type, asynchronous service service model, asynchronous service change at least one in service model.
Step S102: meeting the service collaboration types of the application scenarios according to service model selection, using having The collaboration services bus of message-oriented middleware function realizes the transmission of information on services.
In the present invention one in the specific implementation, if the service model is synchronous service model, referring to fig. 2, the synchronization Service model includes:
Step S201:, which receiving, and will service the cooperation request condition that user sends is sent to service provider, described in order It services user and waits results messages;
Step S202: it receives and service provider is back to the clothes according to the service result that the request condition obtains Be engaged in user, and the service user is enabled to complete integrity service process.
Specifically, referring to Fig. 3, the message transmission of the synchronous service model includes:
The service user sends cooperation request condition to the collaboration services bus, waits results messages.The association Make that the cooperation request condition is sent to the service provider after the service bus service for checking credentials is permitted.The service provider Service result is obtained according to the cooperation request condition, and returns to the service result to the collaboration services bus.The clothes Business user's waiting completes integrity service process after returning the result.
The service type of the remote service used in IT/ internet industry at present, synchronous query class is more.Synchronous service The controllable message of model network transmitting is ensured it is reachable, when being received and returned the result by the way of synchronous wait, and setting waiting Between and message lifecycle, complete the calling of synchronous service.
Of the invention another in the specific implementation, the service model is that synchronous service changes service model, referring to fig. 4, institute Stating synchronous service variation service model includes:
Step S401: receiving and is sent to service provider for the pretreatment request that user sends is serviced, and enables the clothes Business user waits the pretreated result.
Step S402: it receives and the pre-processed results that the service provider provides is back to the service user.
Step S403: receiving and refers to the submission or rollback that the service user returns according to the pre-processed results Order is sent to the service provider.
Specifically, referring to Fig. 5, the message transmission that the synchronous service changes service model includes:
A kind of Distributed transaction server that two ranks are submitted of the service call of the service user and service provider.Such The calling process of service is completed by the collaboration services bus, and the collaboration services bus rises in the calling process of service To the transmission of message that cooperates, the effect of bus verification serving grant.
The service user sends the pretreatment request to the collaboration services bus, and the reception that can be synchronized mentions Hand over the pretreated result returned after pretreatment request.The service user can be according to the described pretreated of acquisition As a result (success, failure or returning to failure) makes submission or rollback instruction.
The service provider receives the pretreatment request, and synchronizes and return to the pretreated result to the service User.The service provider receives the submission that the service user sends or rollback instructs and completes to handle.
The service user also acts as coordinator, and the service provider is the participant of global transaction service.
Its usage scenario are as follows: the business that local service system and teleaction service system need is completed in a global transaction In.The completion of business needs to complete together in the operation system of local and Distributed Services or rollback together.
The process that the synchronous service changes service model is divided into two stages submissions.
One stage:
The service user pre-processes business datum, sends after pre-processing successfully to the collaboration services bus The pretreatment request, and the synchronous pretreated result of waiting returns.
The service provider is received to progress pretreatment operation after the pretreatment is requested, and synchronous return pre-processes As a result.
Two-stage:
After the service user receives the pre-processed results, is submitted according to the pre-processed results and passed through simultaneously The collaboration services bus sends submission or rollback is instructed to the service provider.
Referring to Fig. 6, the step S403 includes:
Step S4031: it when the pre-processed results are pretreatment successful result, receive and returns the service user The receiving returned submits instruction to be sent to the service provider.
Step S4032: it when the pre-processed results are pretreatment failure result, receive and returns the service user The rollback instruction returned is sent to the service provider.
When the pre-processed results are pretreatment failure result, i.e., when the situation that result return time-out occurs is likely to be at two The different state of kind: one is in request message time-out, one is results messages time-out.Two kinds of situations are in the service provider The state presented is completely inconsistent.But because that can not determine which kind of situation belonged to, so when returning to pretreatment failure result, Send rollback instruction.The rollback instruction carries the cooperation ID number of the secondary service (for example, for all message in cooperation each time Distribute the same ID number).When the service provider receive the rollback instruction after inquire the ID number cooperative information whether It has been be pretreated that, if it is nothing, which is deleted, if pre-processed, rollback.
It is described different referring to Fig. 7 of the invention another in the specific implementation, the service model is asynchronous service service model Walking business service model includes:
Step S701: receiving and is sent to service provider for the collaboration data that user sends is serviced.
Step S702: it receives and service provider is back to the clothes according to the service result that the collaboration data obtains Be engaged in user, completes integrity service process.
Specifically, referring to Fig. 8, the message transmission of the asynchronous service service model includes:
The service user sends collaboration data to the collaboration services bus, without waiting for feedback message.The association Make that cooperation message is sent to the service provider after the service bus service for checking credentials is permitted.The service provider is according to message Content Advisor collaboration results are simultaneously sent to the collaboration services bus, and the service user receives the service result and carries out Respective handling.
Of the invention another in the specific implementation, the service model is that asynchronous service changes service model, referring to Fig. 9, institute Stating asynchronous service variation service model includes:
Step S901: receiving and is sent to service provider for the collaboration data that user sends is serviced.
Specifically, referring to Figure 10, the message transmission that the asynchronous service changes service model includes:
The service user sends collaboration data to the collaboration services bus, without waiting for feedback message.The association Make that cooperation message is sent to the service provider after the service bus service for checking credentials is permitted, the service provider is according to message Content completes integrity service process.
The service collaboration method being applied in distributed system of the present embodiment can be had in message by any suitable Between part function collaboration services bus execute.
The technical solution provided according to embodiments of the present invention, the present invention obtain the application scenarios of the distributed system, root Organization modeling is carried out to service mechanism according to the application scenarios and obtains service model.To according to the service model selector The service collaboration type for closing the application scenarios realizes information on services using the collaboration services bus for having message-oriented middleware function Transmission.Therefore, service mechanism is carried out organization modeling according to different scenes by the present invention, to match the use field of all kinds of services Scape realizes the agreement exchange between complicated multimode to enrich relatively simple cooperation mode.
Embodiment two
Referring to Fig.1 1, show a kind of service collaboration dress applied in distributed system according to the embodiment of the present application two The structure chart set.
The device of the present embodiment includes:
Model building module 111, for obtaining the application scenarios of the distributed system, according to the application scenarios to clothes Business mechanism carries out organization modeling and obtains service model.
Service implementation 112, for meeting the service collaboration class of the application scenarios according to service model selection Type realizes the transmission of information on services using the collaboration services bus for having message-oriented middleware function.
In the application one in the specific implementation, the service model includes: synchronous service model, synchronous service variation service mould Type, asynchronous service service model, asynchronous service change at least one in service model.
In the present invention one in the specific implementation, if the service model is synchronous service model, referring to fig. 2, the synchronization Service model includes:
Step S201:, which receiving, and will service the cooperation request condition that user sends is sent to service provider, described in order It services user and waits results messages;
Step S202: it receives and service provider is back to the clothes according to the service result that the request condition obtains Be engaged in user, and the service user is enabled to complete integrity service process.
Specifically, referring to Fig. 3, the message transmission of the synchronous service model includes:
The service user sends cooperation request condition to the collaboration services bus, waits results messages.The association Make that the cooperation request condition is sent to the service provider after the service bus service for checking credentials is permitted.The service provider Service result is obtained according to the cooperation request condition, and returns to the service result to the collaboration services bus.The clothes Business user's waiting completes integrity service process after returning the result.
The service type of the remote service used in IT/ internet industry at present, synchronous query class is more.Synchronous service The controllable message of model network transmitting is ensured it is reachable, when being received and returned the result by the way of synchronous wait, and setting waiting Between and message lifecycle, complete the calling of synchronous service.
Of the invention another in the specific implementation, the service model is that synchronous service changes service model, referring to fig. 4, institute Stating synchronous service variation service model includes:
Step S401: receiving and is sent to service provider for the pretreatment request that user sends is serviced, and enables the clothes Business user waits the pretreated result.
Step S402: it receives and the pre-processed results that the service provider provides is back to the service user.
Step S403: receiving and refers to the submission or rollback that the service user returns according to the pre-processed results Order is sent to the service provider.
Specifically, referring to Fig. 5, the message transmission that the synchronous service changes service model includes:
A kind of Distributed transaction server that two ranks are submitted of the service call of the service user and service provider.Such The calling process of service is completed by the collaboration services bus, and the collaboration services bus rises in the calling process of service To the transmission of message that cooperates, the effect of bus verification serving grant.
The service user sends the pretreatment request to the collaboration services bus, and the reception that can be synchronized mentions Hand over the pretreated result returned after pretreatment request.The service user can be according to the described pretreated of acquisition As a result (success, failure or returning to failure) makes submission or rollback instruction.
The service provider receives the pretreatment request, and synchronizes and return to the pretreated result to the service User.The service provider receives the submission that the service user sends or rollback instructs and completes to handle.
The service user also acts as coordinator, and the service provider is the participant of global transaction service.
Its usage scenario are as follows: the business that local service system and teleaction service system need is completed in a global transaction In.The completion of business needs to complete together in the operation system of local and Distributed Services or rollback together.
The process that the synchronous service changes service model is divided into two stages submissions.
One stage:
The service user pre-processes business datum, sends after pre-processing successfully to the collaboration services bus The pretreatment request, and the synchronous pretreated result of waiting returns.
The service provider is received to progress pretreatment operation after the pretreatment is requested, and synchronous return pre-processes As a result.
Two-stage:
After the service user receives the pre-processed results, is submitted according to the pre-processed results and passed through simultaneously The collaboration services bus sends submission or rollback is instructed to the service provider.
Referring to Fig. 6, the step S403 includes:
Step S4031: it when the pre-processed results are pretreatment successful result, receive and returns the service user The receiving returned submits instruction to be sent to the service provider.
Step S4032: it when the pre-processed results are pretreatment failure result, receive and returns the service user The rollback instruction returned is sent to the service provider.
When the pre-processed results are pretreatment failure result, i.e., when the situation that result return time-out occurs is likely to be at two The different state of kind: one is in request message time-out, one is results messages time-out.Two kinds of situations are in the service provider The state presented is completely inconsistent.But because that can not determine which kind of situation belonged to, so when returning to pretreatment failure result, Send rollback instruction.The rollback instruction carries the cooperation ID number of the secondary service (for example, for all message in cooperation each time Distribute the same ID number).When the service provider receive the rollback instruction after inquire the ID number cooperative information whether It has been be pretreated that, if it is nothing, which is deleted, if pre-processed, rollback.
It is described different referring to Fig. 7 of the invention another in the specific implementation, the service model is asynchronous service service model Walking business service model includes:
Step S701: receiving and is sent to service provider for the collaboration data that user sends is serviced.
Step S702: it receives and service provider is back to the clothes according to the service result that the collaboration data obtains Be engaged in user, completes integrity service process.
Specifically, referring to Fig. 8, the message transmission of the asynchronous service service model includes:
The service user sends collaboration data to the collaboration services bus, without waiting for feedback message.The association Make that cooperation message is sent to the service provider after the service bus service for checking credentials is permitted.The service provider is according to message Content Advisor collaboration results are simultaneously sent to the collaboration services bus, and the service user receives the service result and carries out Respective handling.
Of the invention another in the specific implementation, the service model is that asynchronous service changes service model, referring to Fig. 9, institute Stating asynchronous service variation service model includes:
Step S901: receiving and is sent to service provider for the collaboration data that user sends is serviced.
Specifically, referring to Figure 10, the message transmission that the asynchronous service changes service model includes:
The service user sends collaboration data to the collaboration services bus, without waiting for feedback message.The association Make that cooperation message is sent to the service provider after the service bus service for checking credentials is permitted, the service provider is according to message Content completes integrity service process.
The service collaboration method being applied in distributed system of the present embodiment can be had in message by any suitable Between part function collaboration services bus execute.
The technical solution provided according to embodiments of the present invention, the present invention obtain the application scenarios of the distributed system, root Organization modeling is carried out to service mechanism according to the application scenarios and obtains service model.To according to the service model selector The service collaboration type for closing the application scenarios realizes information on services using the collaboration services bus for having message-oriented middleware function Transmission.Therefore, service mechanism is carried out organization modeling according to different scenes by the present invention, to match the use field of all kinds of services Scape realizes the agreement exchange between complicated multimode to enrich relatively simple cooperation mode.
It may be noted that all parts/step described in the embodiment of the present application can be split as more according to the needs of implementation The part operation of two or more components/steps or components/steps can also be combined into new component/step by multi-part/step Suddenly, to realize the purpose of the embodiment of the present application.
The above-mentioned method according to the embodiment of the present application can be realized in hardware, firmware, or be implemented as being storable in note Recording medium (such as CD ROM, RAM, floppy disk, hard disk or magneto-optic disk)
In software or computer code, or be implemented through the original storage of network downloading in long-range recording medium or In nonvolatile machine readable media and the computer code that will be stored in local recording medium, thus method described herein It can be stored in using general purpose computer, application specific processor or programmable or specialized hardware (such as ASIC or FPGA) record Such software processing on medium.It is appreciated that computer, processor, microprocessor controller or programmable hardware include The storage assembly (for example, RAM, ROM, flash memory etc.) that can store or receive software or computer code, when the software or calculating Machine code realizes the implementation method of interactive animation described herein by computer, processor or hardware access and when executing.This Outside, when general purpose computer accesses the code for realizing the implementation method for the interactive animation being shown here, the execution of code General purpose computer is converted to the special purpose computer for being used to execute the implementation method for the interactive animation being shown here.
Those of ordinary skill in the art may be aware that list described in conjunction with the examples disclosed in the embodiments of the present disclosure Member and method and step can be realized with the combination of electronic hardware or computer software and electronic hardware.These functions are actually It is implemented in hardware or software, the specific application and design constraint depending on technical solution.Professional technician Each specific application can be used different methods to achieve the described function, but this realization is it is not considered that exceed The range of the embodiment of the present application.
Embodiment of above is merely to illustrate the embodiment of the present application, and is not the limitation to the embodiment of the present application, related skill The those of ordinary skill in art field can also make various in the case where not departing from the spirit and scope of the embodiment of the present application Variation and modification, therefore all equivalent technical solutions also belong to the scope of the embodiment of the present application, the patent of the embodiment of the present application Protection scope should be defined by the claims.

Claims (10)

1. a kind of service collaboration method applied in distributed system characterized by comprising
The application scenarios for obtaining the distributed system carry out organization modeling to service mechanism according to the application scenarios and are taken Business model;
Meet the service collaboration types of the application scenarios according to service model selection, using having message-oriented middleware function Collaboration services bus realize information on services transmission.
2. the method according to claim 1, wherein the service model is synchronous service model, the synchronization Service model includes:
It receives and is sent to service provider for the cooperation request condition that user sends is serviced, the service user is enabled to wait Results messages;
It receives and service provider is back to the service user according to the service result that the request condition obtains, enable institute It states service user and completes integrity service process.
3. the method according to claim 1, wherein the service model be synchronous service change service model, The synchronous service changes service model
It receives and is sent to service provider for the pretreatment request that user sends is serviced, the service user is enabled to wait institute State pretreated result;
It receives and the pre-processed results that the service provider provides is back to the service user;
It receives and is sent to submission or rollback instruction that the service user returns according to the pre-processed results described Service provider.
4. the method according to claim 1, wherein the service model be asynchronous service service model, it is described Asynchronous service service model includes:
It receives and is sent to service provider for the collaboration data that user sends is serviced;
It receives and service provider is back to the service user according to the service result that the collaboration data obtains, complete Integrity service process.
5. the method according to claim 1, wherein the service model be asynchronous service change service model, The asynchronous service changes service model
It receives and is sent to service provider for the collaboration data that user sends is serviced.
6. a kind of service collaboration device applied in distributed system characterized by comprising
Model building module, for obtaining the application scenarios of the distributed system, according to the application scenarios to service mechanism It carries out organization modeling and obtains service model;
Service implementation is utilized for meeting the service collaboration type of the application scenarios according to service model selection The collaboration services bus for having message-oriented middleware function realizes the transmission of information on services.
7. device according to claim 6, which is characterized in that the service model is synchronous service model, the synchronization Service model includes:
It receives and is sent to service provider for the cooperation request condition that user sends is serviced, the service user is enabled to wait Results messages;
It receives and service provider is back to the service user according to the service result that the request condition obtains, enable institute It states service user and completes integrity service process.
8. device according to claim 6, which is characterized in that the service model is that synchronous service changes service model, The synchronous service changes service model
It receives and is sent to service provider for the pretreatment request that user sends is serviced, the service user is enabled to wait institute State pretreated result;
It receives and the pre-processed results that the service provider provides is back to the service user;
It receives and is sent to submission or rollback instruction that the service user returns according to the pre-processed results described Service provider.
9. device according to claim 6, which is characterized in that the service model is asynchronous service service model, described Asynchronous service service model includes:
It receives and is sent to service provider for the collaboration data that user sends is serviced;
It receives and service provider is back to the service user according to the service result that the collaboration data obtains, complete Integrity service process.
10. device according to claim 6, which is characterized in that the service model is that asynchronous service changes service model, The asynchronous service changes service model
It receives and is sent to service provider for the collaboration data that user sends is serviced.
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 true CN109901936A (en) 2019-06-18
CN109901936B 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 (10)

* 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
CN101388910A (en) * 2008-10-29 2009-03-18 北京中企开源信息技术有限公司 System and method implementing combined service
CN102081605A (en) * 2009-11-30 2011-06-01 中国移动通信集团上海有限公司 Data warehouse-based data encapsulation device and service data acquisition method
CN102546736A (en) * 2010-12-08 2012-07-04 中国电信股份有限公司 Method and system for communication between pieces of widget application
CN104486440A (en) * 2014-12-25 2015-04-01 浪潮电子信息产业股份有限公司 Message bus-based cloud computing management software interaction method
US20160081094A1 (en) * 2013-05-17 2016-03-17 Huawei Technologies Co., Ltd. Service data scrambling method, service data descrambling method, apparatus and system
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
CN106412009A (en) * 2016-08-29 2017-02-15 郑州悉知信息科技股份有限公司 Interface calling method and device
CN106921688A (en) * 2015-12-24 2017-07-04 阿里巴巴集团控股有限公司 The service providing method and distributed system of distributed system
CN107277083A (en) * 2016-04-06 2017-10-20 阿里巴巴集团控股有限公司 A kind of processing method of data interaction, apparatus and system

Patent Citations (10)

* 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
CN101388910A (en) * 2008-10-29 2009-03-18 北京中企开源信息技术有限公司 System and method implementing combined service
CN102081605A (en) * 2009-11-30 2011-06-01 中国移动通信集团上海有限公司 Data warehouse-based data encapsulation device and service data acquisition method
CN102546736A (en) * 2010-12-08 2012-07-04 中国电信股份有限公司 Method and system for communication between pieces of widget application
US20160081094A1 (en) * 2013-05-17 2016-03-17 Huawei Technologies Co., Ltd. Service data scrambling method, service data descrambling method, apparatus and system
CN104486440A (en) * 2014-12-25 2015-04-01 浪潮电子信息产业股份有限公司 Message bus-based cloud computing management software interaction method
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
CN106921688A (en) * 2015-12-24 2017-07-04 阿里巴巴集团控股有限公司 The service providing method and distributed system of distributed system
CN107277083A (en) * 2016-04-06 2017-10-20 阿里巴巴集团控股有限公司 A kind of processing method of data interaction, apparatus and system
CN106412009A (en) * 2016-08-29 2017-02-15 郑州悉知信息科技股份有限公司 Interface calling method and device

Also Published As

Publication number Publication date
CN109901936B (en) 2021-09-10

Similar Documents

Publication Publication Date Title
CN108510389B (en) Intelligent contract calling method and device based on block chain and readable storage medium
CN103038788B (en) Providing multiple network resources
US8589885B2 (en) Debugger launch and attach on compute clusters
US7904567B2 (en) Method, apparatus and computer program product for integrating heterogeneous systems
CN110658794B (en) Manufacturing execution system
CN102591726B (en) Multiprocess communication method
KR20140047580A (en) Method and system for synchronization mechanism on multi-server reservation system
CN111212085B (en) Method for synchronously calling Internet of things platform, internet of things system and network equipment
JP2021504813A (en) Blockchain network transaction processing methods, devices, equipment and storage media
CN110413418B (en) Cache synchronization device and method, cache synchronization system and electronic equipment
CN107770269A (en) A kind of service response method and its terminal
CN103679401A (en) Flow control method, server, client side and system
CN108141707A (en) A kind of method, relevant device and trunked communication system for obtaining location information
CN109189502A (en) A kind of message treatment method and relevant device based on instant messaging public platform
CN103685535A (en) Interface design of cloud database system for large-scale distributed heterogeneous data treatment
CN109819023A (en) Distributed transaction processing method and Related product
CN110417876A (en) Node server and main control device in session method, distributed system
EP2368193A2 (en) Online service syndication
CN105427149A (en) Cross-border e-commerce BPO service method and device based on SOA expansion framework
JP2009157786A (en) Message transmission control method, message transmission control device, and message transmission control program
CN109901936A (en) A kind of service collaboration method and its device applied in distributed system
CN113553206B (en) Data event execution method and device, electronic equipment and computer readable medium
CN112395104B (en) Method and device for realizing distributed transaction context transfer in routing layer
JP2024506093A (en) Cross-chain transaction processing methods and devices, electronic equipment and computer programs
CN114390097A (en) Block chain operation method and system based on message queue and application thereof

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