CN104486440B - Message bus-based cloud computing management software interaction method - Google Patents

Message bus-based cloud computing management software interaction method Download PDF

Info

Publication number
CN104486440B
CN104486440B CN201410819145.4A CN201410819145A CN104486440B CN 104486440 B CN104486440 B CN 104486440B CN 201410819145 A CN201410819145 A CN 201410819145A CN 104486440 B CN104486440 B CN 104486440B
Authority
CN
China
Prior art keywords
message
module
rpc
cloud computing
management software
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
CN201410819145.4A
Other languages
Chinese (zh)
Other versions
CN104486440A (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.)
Inspur Electronic Information Industry Co Ltd
Original Assignee
Inspur Electronic Information Industry Co Ltd
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 Inspur Electronic Information Industry Co Ltd filed Critical Inspur Electronic Information Industry Co Ltd
Priority to CN201410819145.4A priority Critical patent/CN104486440B/en
Publication of CN104486440A publication Critical patent/CN104486440A/en
Application granted granted Critical
Publication of CN104486440B publication Critical patent/CN104486440B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/04Real-time or near real-time messaging, e.g. instant messaging [IM]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/133Protocols for remote procedure calls [RPC]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The invention discloses a message bus-based cloud computing management software interaction method, which comprises the following steps: and (3) building a cloud computing management software model, and building a shared-nothing and message-transfer-based architecture by defining an interaction mode between core function modules and modules of the cloud computing management software. The text message processing is a link for interaction by using a common text mode in the scheme and is used for realizing an event notification function. Based on the publish/subscribe mode of the message, decoupling of the message publisher and subscriber is achieved. RPC message processing is a link for interaction by using a remote interface calling mode in the scheme and is used for realizing a calling function between modules. Compared with the prior art, the message bus is used as an intermediary for interaction of all modules of the cloud computing management software, so that coupling among the modules is reduced, a synchronous and asynchronous working mechanism is realized, and the method has high efficiency, durability, scientificity and systematicness.

Description

A kind of cloud computing management software exchange method based on messaging bus
Technical field
The present invention relates to field of cloud computer technology, specifically a kind of practical, based on messaging bus cloud computing Management software exchange method.
Background technology
With the development of Information technology, cloud computing progressively turns into the Hot spots for development of industry, the cloud meter of domestic and international all big enterprises Management software is calculated to also begin to put into science, education, culture, health, government, high-performance calculation, ecommerce, Internet of Things one after another Used etc. multiple fields.
In order to realize the unified management control to cloud data center, cloud computing management software must include multiple modules.It is right In the software of multimode, efficient, science module interaction is not only bottle that is required, and having turned into restriction management software quality Neck.Module interaction time-out or appearance in cloud computing management software is abnormal, the operation of whole software will be had undesirable effect, very Enormous impact is produced to the business activities to whole company and enterprise.
Traditional intermodule interaction typically uses API Calls mode, on the one hand, API Calls process is very cumbersome, completes one Subfunction needs to send multiple HTTP request, so as to cause serious hydraulic performance decline and network overload;On the other hand, API Calls Lack persistence mechanism, once the service stopping of some module, the API request that other modules are sent loses effectiveness, even if weight The service of opening, the API request sent before have not existed, it is necessary to re-call yet.
During in order to effectively improve the interactive efficiency of each intermodule of cloud computing management software, reduce abnormal interaction, reduction interaction Network bandwidth take, realize interaction persistence mechanism, we have proposed a kind of easy exploiting, easy care cloud computing management it is soft Part exchange method.
The content of the invention
The technical assignment of the present invention is to be directed to above weak point, there is provided a kind of practical, based on messaging bus cloud Management of computing software interactive method.
A kind of cloud computing management software exchange method based on messaging bus, its specific implementation process are:
Cloud computing management software model is built, the cloud computing management software model includes the core for defining cloud computing management software The interactive mode of heart function module and intermodule, establish without the shared, architecture based on message transmission, wherein above-mentioned core work( Energy module includes cloud resource management, basic management, metering and billing, business approval, system administration, six big module of comprehensively monitoring, often Individual module can dispose one or more services simultaneously, and each independent operating that services is on one or more server;
Text message processing is carried out, i.e., message based issue, subscribing mode, realizes the solution of message issuer and subscriber Coupling, realize event informing function;
RPC Message Processings are carried out, the RPC message is divided into synchronization message and asynchronous message, and synchronization message realizes intermodule Synchronization call, asynchronous message realize the asynchronous call of intermodule, so as to realize the calling function of intermodule.
Communicated in the cloud computing management software model between modules and messaging bus by AMQP agreements, During communication, each module sends message as the independent producer to the message queue of other modules;Each module operation consumption Person is serviced, and as independent consumer, the message read in itself message queue is handled;Modules share same number According to storehouse, and externally unify to provide Rest interfaces.
The detailed process of text message processing is:
S1, be cloud computing management software model in one exchanger of each module definition:Cloud resource management exchanger, base This management exchanger, system administration exchanger, comprehensively monitoring exchanger, metering and billing exchanger, business approval exchanger;
S2, when a module send notify when, specify the transmission message corresponding to exchanger, and then send text message to The exchanger;When there are other modules to be concerned about the text message that this is received, then own queue is registered to above-mentioned reception text envelope The exchanger of breath, and message is received, carry out following processing;
S3, the form for defining text message;
Using issue, subscribing mode between S4, message sender and recipient;The sender of message only sends message, orders Reader only receives the message of needs, realizes the decoupling of publisher and subscriber.
The form of the text message includes module I D, action type and message body, wherein, each field is specifically defined It is as follows:Module I D, it is each for identifying cloud resource management, basic management, system administration, comprehensively monitoring, metering and billing, business approval Individual module;Action type is corresponding with the function title of Message Opcode;Message body is HashMap<String, String>Type Supplemental characteristic.
The RPC message is divided into synchronous RPC and the asynchronous major classes of RPC two, and its specific processing procedure is:
When module calls the RPC interfaces of another module, interface and parameter are subjected to coded combination into RPC message, And it is sent in message server;Wherein for synchronous RPC, calling module just returns after waiting called module real-time response; For asynchronous RPC, calling module returns after sending, it is not necessary to waits;
After called module receives RPC message, decoded, analyzed;For synchronous RPC, the module that is called performs Corresponding service logic, and calling module is returned to during by Message Processing fructufy;For asynchronous RPC, the module that is called performs After corresponding service logic, then the callback interface of calling module is called in a manner of RPC, realize notice feedback.
A kind of cloud computing management software exchange method based on messaging bus of the present invention, has advantages below:
A kind of cloud computing management software exchange method based on messaging bus of the invention is by the decoupling of intermodule, often Individual module need not be concerned about the position of other modules, only need to send message to messaging bus;Client and service end it is asynchronous Mechanism, client are not required for the real-time response of service end, therefore can realize that asynchronous task is handled by message mechanism, mitigate System pressure;The far call of stochastic equilibrium, when a module has multiple service ends operationally, general one is called only friendship Pay most available service end recently, balance network load;Persistence mechanism, messaging bus realize persistence mechanism, even if Power off or delay machine, and the message sent before can re-start processing after server resets, practical, easy to spread.
Brief description of the drawings
Accompanying drawing 1 is cloud computing management software model system Organization Chart.
Accompanying drawing 2 is that text message handles schematic diagram.
Accompanying drawing 3 is text message format figure.
Accompanying drawing 4 is RPC Message Processing schematic diagrames.
Embodiment
The invention will be further described with specific embodiment below in conjunction with the accompanying drawings.
The present invention proposes a kind of cloud computing management software exchange method based on messaging bus, and as shown in Figure 1, its is specific Implementation process is:
Cloud computing management software model is built, the cloud computing management software model includes the core for defining cloud computing management software The interactive mode of heart function module and intermodule, establish without the shared, architecture based on message transmission, wherein above-mentioned core work( Energy module includes cloud resource management, basic management, metering and billing, business approval, system administration, six big module of comprehensively monitoring, often Individual module can dispose one or more services simultaneously, and each independent operating that services is on one or more server;
Text message processing is carried out, i.e., message based issue, subscribing mode, realizes the solution of message issuer and subscriber Coupling, realize event informing function;
RPC Message Processings are carried out, the RPC message is divided into synchronization message and asynchronous message, and synchronization message realizes intermodule Synchronization call, asynchronous message realize the asynchronous call of intermodule, so as to realize the calling function of intermodule.
In above-mentioned steps, described cloud computing management software model is by investigation extensively and summarized, the cloud meter of definition Management software model is calculated, is the management software unified definition corn module and interworking architecture of each cloud computing manufacturer, is had wide General property and uniformity.
Described text message processing, the event informing function of intermodule, letter are realized using the text message of specific format Just, flexibly, be easy to extend.
Described RPC Message Processings, on the one hand, realize the long-range of intermodule using the RPC message based on interface and parameter Interface interchange, it is ingenious in design, it is easy to call;On the other hand, by the class RPC message of synchronous versus asynchronous two, synchronous versus asynchronous is realized Working mechanism, meet the various application demands of cloud computing management software.
With reference to accompanying drawing, the exchange method of the present invention is described in detail below.
Wherein, the basis that cloud computing management software model is whole scheme is built.Such as accompanying drawing 1, whole system is established in nothing On the shared, architecture based on message transmission.By investigation extensively and summarize, cloud computing management software can be divided into cloud resource Management(Manage virtualization software), basic management(Organizing user management), system administration(System is set), comprehensively monitoring(Resource Monitoring), metering and billing(Resource service condition metering and billing), business approval(Order application approval)Etc. several big Core Feature moulds Block.Each module can dispose one or more services simultaneously, each service can independent operating in one or more server On.
Modules are communicated with messaging bus by AMQP agreements, and in communication, each module is as independent life Production person, message is sent to the message queue of other modules;Each module operation customer service, as independent consumer, reads The message being derived from body message queue is handled.Modules share same database, and externally unify offer Rest and connect Mouthful.
Text message processing is the link that the model is interacted using plain text mode.For disappearing for text type Breath, the producer need to only send message, it is not necessary to be concerned about the concrete condition of consumer and queue.Text message is used to realize that event is led to Know function.
S1, it is each one exchanger of module definition:Cloud resource manages exchanger, basic management exchanger, system administration Exchanger, comprehensively monitoring exchanger, metering and billing exchanger, business approval exchanger.
S2, such as accompanying drawing 2, modules A is when sending notice, it is only necessary to specifies exchanger corresponding to message, and then sends text and disappear Cease the exchanger.If module B, C, D are concerned about text message, the exchanger of registration own queue to modules A, and receive Message, handled.
S3, the form such as accompanying drawing 3 for defining text message, wherein, each field is defined as follows:
Module I D(appId), for identify cloud resource management, basic management, system administration, comprehensively monitoring, metering and billing, The modules such as business approval;
Message Opcode type(type), it is corresponding with the function title of Message Opcode, such as delete, add;
Message body, it is HashMap<String, String>The supplemental characteristic of type, such as:{delId=***, operId =***, recordTime=***}。
Publish/subscribe pattern is used between S4, message sender and recipient.The sender of message(Publisher)Only send Message, it is not necessary to know the message of transmission by what Subscriber subscriptions.Subscriber only receives the message of needs, it is not required that knows Which type of publisher is message come from.In this way, the decoupling of publisher and subscriber are realized.
RPC Message Processings are the links that the model is interacted using remote interface method of calling.For " RPC " type Message, the producer send the interface of RPC message far call consumers, and performing corresponding business after consumer's reception message patrols Volume.It is synchronous RPC and the asynchronous major classes of RPC two that message RPC, which is divided to, to realize synchronous and asynchronous working mechanism.
Such as accompanying drawing 4, when modules A calling module B RPC interfaces, interface is subjected to coded combination with parameter and disappeared into RPC Breath, and be sent in message server.
For synchronous RPC, modules A just returns after waiting module B real-time responses;
For asynchronous RPC, modules A returns after sending, it is not necessary to waits.
After module B receives RPC message, decoded, analyzed.
For synchronous RPC, module B performs corresponding service logic, and returns to modules A during by Message Processing fructufy;
For asynchronous RPC, after module B performs corresponding service logic, then the readjustment of the calling module A in a manner of RPC connects Mouthful, realize notice feedback.
Above-mentioned embodiment is only the specific case of the present invention, and scope of patent protection of the invention includes but is not limited to Above-mentioned embodiment, a kind of power of any cloud computing management software exchange method based on messaging bus for meeting the present invention The appropriate change or replacement that the those of ordinary skill of sharp claim and any technical field is done to it, it should all fall into this The scope of patent protection of invention.

Claims (1)

1. a kind of cloud computing management software exchange method based on messaging bus, it is characterised in that its specific implementation process is:
Cloud computing management software model is built, the cloud computing management software model includes the core work(for defining cloud computing management software The interactive mode of energy module and intermodule, establish without the shared, architecture based on message transmission, wherein above-mentioned Core Feature mould Block includes cloud resource management, basic management, metering and billing, business approval, system administration, six big module of comprehensively monitoring, Mei Gemo Block can dispose one or more services simultaneously, and each independent operating that services is on one or more server;
Text message processing is carried out, i.e., message based issue, subscribing mode, realizes the decoupling of message issuer and subscriber, Realize event informing function;
RPC Message Processings are carried out, the RPC message is divided into synchronization message and asynchronous message, and synchronization message realizes the synchronization of intermodule Call, asynchronous message realizes the asynchronous call of intermodule, so as to realize the calling function of intermodule;
Communicated, communicated by AMQP agreements between modules and messaging bus in the cloud computing management software model When, each module sends message as the independent producer to the message queue of other modules;Each module operation consumer's clothes Business, as independent consumer, the message read in itself message queue is handled;Modules share same data Storehouse, and externally unify to provide Rest interfaces;
The detailed process of text message processing is:
S1, be cloud computing management software model in one exchanger of each module definition:Cloud resource management exchanger, basic pipe Manage exchanger, system administration exchanger, comprehensively monitoring exchanger, metering and billing exchanger, business approval exchanger;
S2, when a module send notify when, specify exchanger corresponding to the message of the transmission, and then send text message to the friendship Parallel operation;When there are other modules to be concerned about the text message that this is received, then own queue is registered to above-mentioned reception text message Exchanger, and message is received, carry out following processing;
S3, the form for defining text message;
Using issue, subscribing mode between S4, message sender and recipient;The sender of message only sends message, subscriber The message needed is only received, realizes the decoupling of publisher and subscriber;
The form of the text message includes module I D, action type and message body, wherein, each field be specifically defined as Under:Module I D, it is each for identifying cloud resource management, basic management, system administration, comprehensively monitoring, metering and billing, business approval Module;Action type is corresponding with the function title of Message Opcode;Message body is HashMap<String, String>The ginseng of type Number data;
The RPC message is divided into synchronous RPC and the asynchronous major classes of RPC two, and its specific processing procedure is:
When module calls the RPC interfaces of another module, interface and parameter are subjected to coded combination into RPC message, concurrently It is sent in message server;Wherein for synchronous RPC, calling module just returns after waiting called module real-time response;For Asynchronous RPC, calling module return after sending, it is not necessary to wait;
After called module receives RPC message, decoded, analyzed;For synchronous RPC, the module that is called performs corresponding Service logic, and return to calling module during by Message Processing fructufy;For asynchronous RPC, the module that is called performs corresponding Service logic after, then call in a manner of RPC the callback interface of calling module, realize notice feedback.
CN201410819145.4A 2014-12-25 2014-12-25 Message bus-based cloud computing management software interaction method Active CN104486440B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410819145.4A CN104486440B (en) 2014-12-25 2014-12-25 Message bus-based cloud computing management software interaction method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410819145.4A CN104486440B (en) 2014-12-25 2014-12-25 Message bus-based cloud computing management software interaction method

Publications (2)

Publication Number Publication Date
CN104486440A CN104486440A (en) 2015-04-01
CN104486440B true CN104486440B (en) 2018-03-02

Family

ID=52760944

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410819145.4A Active CN104486440B (en) 2014-12-25 2014-12-25 Message bus-based cloud computing management software interaction method

Country Status (1)

Country Link
CN (1) CN104486440B (en)

Families Citing this family (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105184501A (en) * 2015-09-22 2015-12-23 浪潮集团有限公司 Efficient asynchronous order processing method
CN105591969A (en) * 2015-11-23 2016-05-18 江苏瑞中数据股份有限公司 Message bus usage method in state grid environment
CN105577508A (en) * 2015-11-24 2016-05-11 上海赞越软件服务中心 Information pool mechanism about new-construction-type information pool and receiver-type information pool
CN106411919B (en) * 2016-10-31 2019-12-20 用友网络科技股份有限公司 Web pushing method based on event bus
CN108282499B (en) * 2017-01-03 2021-03-12 南京易安联网络技术有限公司 Novel networking method for industrial cloud of Internet of things
CN107395909A (en) * 2017-07-20 2017-11-24 郑州云海信息技术有限公司 A kind of far management system and method based on cloud computing management platform
CN107402769A (en) * 2017-08-09 2017-11-28 郑州云海信息技术有限公司 A kind of method and system of module information interaction
CN109901936B (en) * 2017-12-11 2021-09-10 航天信息股份有限公司 Service cooperation method and device applied to distributed system
CN109995841B (en) * 2018-01-02 2022-05-27 航天信息股份有限公司 Grain supervisory system
CN108259500A (en) * 2018-01-26 2018-07-06 郑州云海信息技术有限公司 A kind of RPC means of communication, system and device
CN110417913A (en) * 2019-08-09 2019-11-05 浪潮云信息技术有限公司 A kind of asynchronous creation method of Cloud Server based on Rabbit MQ
CN111158877A (en) * 2019-12-28 2020-05-15 山东爱德邦智能科技有限公司 Event management method and device for big data platform and computer readable storage medium
CN112835836B (en) * 2021-01-29 2022-04-08 郑州信大捷安信息技术股份有限公司 Method and device for information interaction between host and smart card
CN113641139B (en) * 2021-08-05 2022-11-25 珠海格力电器股份有限公司 System, controller, control system and storage medium capable of realizing asynchronous programming
CN114579493A (en) * 2022-03-03 2022-06-03 夏春萌 Mechanism for reducing software coupling degree through software type data interaction bus

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103442049A (en) * 2013-08-22 2013-12-11 浪潮电子信息产业股份有限公司 Component-oriented mixed type cloud operating system structure and communication method thereof

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050080930A1 (en) * 2003-10-14 2005-04-14 International Business Machines Corporation Method and apparatus for processing service requests in a service-oriented architecture

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103442049A (en) * 2013-08-22 2013-12-11 浪潮电子信息产业股份有限公司 Component-oriented mixed type cloud operating system structure and communication method thereof

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
云计算运维平台服务控制子系统的设计与实现;韩博闻;《中国优秀硕士学位论文全文数据库信息科技辑》;20140331;正文3.1-3.2节,图3-1 *

Also Published As

Publication number Publication date
CN104486440A (en) 2015-04-01

Similar Documents

Publication Publication Date Title
CN104486440B (en) Message bus-based cloud computing management software interaction method
CN109451072A (en) A kind of message caching system and method based on Kafka
CN101022431B (en) Interface gateway and interface gateway data processing method
CN107659549A (en) A kind of flow path processing method and device and server based on event
CN103297395B (en) The implementation method of a kind of Internet service, system and device
CN104579905B (en) Message delivery method and system and MOM servers, receiving terminal
CN105959395A (en) Cluster self-feedback type load balancing scheduling system and method
CN102469033A (en) Message subscription system and message sending method
CN102340495A (en) Event center supporting cross-system service linkage and event processing method of event center
CN108769099A (en) A kind of implementation method of the message duplicate removal of message-oriented middleware
CN103957188B (en) A kind of enterprises service of symmetrical two-way decoupling describes method and service dispatch system
CA2979824C (en) Method and system for transferring messages between messaging systems
US20170255173A1 (en) System for propagating messages for purposes of demand response
CN102467411A (en) Workflow processing and workflow agent method, device and system
CN108446335A (en) Heterogeneous system data pick-up based on database and unified outbound data exchange method
CN103199968A (en) Sending method of messages and system
CN106411919B (en) Web pushing method based on event bus
WO2010043642A1 (en) A method of handling a message
CN101339520B (en) Method for accessing EJB into enterprise service bus
CN105094990A (en) System and method for efficiently achieving large-scale data exchange
CN104240049A (en) Comprehensive order handling platform
CN103731342A (en) Instant message based workflow management system and management method
CN109683875A (en) The application framework and its method of MVC pattern under distributed environment
CN103150171A (en) Product combination engine device and system and service method
Ding et al. The case study on service encapsulation for web-based application system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant