CN105681463A - Distributed service framework and distributed service calling system - Google Patents

Distributed service framework and distributed service calling system Download PDF

Info

Publication number
CN105681463A
CN105681463A CN201610143837.0A CN201610143837A CN105681463A CN 105681463 A CN105681463 A CN 105681463A CN 201610143837 A CN201610143837 A CN 201610143837A CN 105681463 A CN105681463 A CN 105681463A
Authority
CN
China
Prior art keywords
service
address
destination address
scheduling engine
engine module
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.)
Pending
Application number
CN201610143837.0A
Other languages
Chinese (zh)
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 Software Co Ltd
Original Assignee
Inspur Software 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 Software Co Ltd filed Critical Inspur Software Co Ltd
Priority to CN201610143837.0A priority Critical patent/CN105681463A/en
Publication of CN105681463A publication Critical patent/CN105681463A/en
Pending legal-status Critical Current

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/50Network services
    • H04L67/60Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0631Management of faults, events, alarms or notifications using root cause analysis; using analysis of correlation between notifications, alarms or events based on decision criteria, e.g. hierarchy, tree or time analysis
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/50Network service management, e.g. ensuring proper service fulfilment according to agreements
    • 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
    • H04L67/1001Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers
    • H04L67/1004Server selection for load balancing
    • 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]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/60Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources
    • H04L67/63Routing a service request depending on the request content or context

Landscapes

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

Abstract

The invention provides a distributed service framework and a distributed service calling system. The distributed service framework comprise a scheduling engine module and a service management module, wherein the scheduling engine module is used for receiving an identifier and an address corresponding to each service issued by an external issuing party, receiving a subscribe message for any service sent by an external calling party, and feeding back the corresponding address to the external calling party, thereby the external calling party can establish connection communication with the corresponding external issuing party through the address, and the service calling process is completed; and the service management module is used for demonstrating and managing each address stored in the scheduling engine module, as well as the corresponding identifiers and state information, thereby completing the management of service. By separating a service operating period from a service management period, loose coupling of the service calling and service management can be achieved, thus the distributed service framework and the distributed service calling system can improve the stability of service calling.

Description

A kind of distributed service framework and Distributed Services calling system
Technical field
The present invention relates to field of computer technology, particularly a kind of distributed service framework and distributedService calling system.
Background technology
Along with the high speed development of IT application in enterprises, internet, enterprise's application is no longer only positioned corporate intranetSystem, but more and more there is opening, to provide service to the public.
At present, service-oriented distributed service framework is based on WebService technology and ESB(EnterpriseServiceBus, ESB) is achieved. The registration center of this service frameworkBe responsible for management and the scheduling of service, to set up the connection communication of serving between publisher and service called side,Therefore can be for enterprises, even the internet public provides service.
But in the face of the Internet, applications of mass data and high Concurrency Access, the performance of registration center is subject toImpact, therefore the stability of the service call of existing distributed service framework is not high.
Summary of the invention
The invention provides a kind of distributed service framework and Distributed Services calling system, can improveThe stability of service call.
In order to achieve the above object, the present invention is achieved through the following technical solutions:
On the one hand, the invention provides a kind of distributed service framework, comprising: scheduling engine module kimonosBusiness administration module, wherein,
Described scheduling engine module, for receive and store sent by outside publisher with each serviceCorresponding mark and address; Receive the subscribe message of carrying target identification being sent by external call side,And find out the destination address corresponding with described target identification in stored whole addresses, and willDescribed destination address sends to described external call side;
Described service management module, for each address of showing that described scheduling engine module is stored,And displaying mark and the current state corresponding with described each address; In described scheduling engine moduleWhen described destination address is sent to described external call side, by corresponding with described destination address currentStatus modifier is for calling state.
Further, this distributed service framework also comprises: monitoring analysis module, and for monitoring described tuneEach address that degree is stored in engine modules, and each corresponding with described each address of recordIndividual running log.
Further, described monitoring analysis module, also for the basis fortune corresponding with described destination addressRow daily record, carries out statistical analysis to the recalls information of described destination address, and by corresponding statistical analysis knotFruit sends to described service management module, wherein,
The recalls information of described destination address, comprising: the called side corresponding with described destination address, withThe corresponding publisher of described destination address, call described destination address beginning and ending time point, call described inConsuming time, the described destination address of destination address in whether calling successfully any one or multiple.
Further, described service management module, also for obtain user input for the first addressStatus modifier instruction, and carry the first state in described status modifier instruction; Will with described the first address phaseCorresponding current state changes to described the first state, and sends to described scheduling to draw described the first stateHold up module.
Further, described service management module, also for obtaining mark and the address of user's input, andMark and the address of described user's input are sent to described scheduling engine module;
Described scheduling engine module, also for receive and store sent by described service management module described inMark and the address of user's input.
Further, for each address of storing in described scheduling engine module, with described eachCorresponding each service of individual address, includes: the application of answering with this service relative, with this service phaseAny one in corresponding internal services and the open service of answering with this service relative or multiple.
Further, described scheduling engine module, also for according to described destination address, determine with described inThe second address that destination address is associated, and described the second address is pushed to described external call side.
On the other hand, the invention provides a kind of Distributed Services calling system, comprising: above-mentioned arbitrary instituteDistributed service framework, at least one publisher and at least one called side stated, wherein,
Described publisher, for sending to described distribution by mark and the address of answering with each service relativeScheduling engine module in formula service framework;
Described called side, for sending to the subscribe message of carrying target identification described scheduling engine module;Receive the destination address corresponding with described target identification by described scheduling engine module feedback; By instituteState destination address, be connected with the first publisher corresponding with described destination address.
Further, described called side, specifically for utilizing long connection, Binary Serialization and unblockAny one in IO or various ways, by described destination address, with corresponding with described destination addressThe first publisher be connected.
Further, described called side, specifically for receive by described scheduling engine module feedback with instituteState corresponding whole the 3rd address and the load balancings of target identification; According to described load balancing,Determine a four-address in described whole the 3rd address; By the described four-address, and with describedThe second corresponding publisher of the four-address is connected.
Further, described publisher, specifically for utilizing socket communication mode, and utilizes unifiedInformation transmission interface, mark and the address of answering with each service relative are sent to described scheduling engineModule.
The invention provides a kind of distributed service framework and Distributed Services calling system, this framework bagDraw together scheduling engine module and service management module. Wherein, scheduling engine module is issued by outside for receivingMark and the address of answering with each service relative of Fang Fabu, and receive and sent by external call sideFor the subscribe message of arbitrary service, and corresponding address is fed back to this external call side, thus canMake this external call square tube cross this address and connect and communicate by letter with corresponding outside publisher, the service that completes is adjustedBy process; Service management module each address for showing that also management and dispatching engine modules is stored,And mark and status information accordingly, thereby complete the management of service. By by service operation phase kimonosThe business management phase is separated, and has realized the loose coupling of service call and Service Management, and therefore, the present invention canImprove the stability of service call.
Brief description of the drawings
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, below will be to realityThe accompanying drawing of executing required use in example or description of the Prior Art is briefly described, apparently, belowAccompanying drawing in description is some embodiments of the present invention, for those of ordinary skill in the art, notPay under the prerequisite of creative work, can also obtain according to these accompanying drawings other accompanying drawing.
Fig. 1 is the schematic diagram of a kind of distributed service framework of providing of one embodiment of the invention;
Fig. 2 is the schematic diagram of the another kind of distributed service framework that provides of one embodiment of the invention;
Fig. 3 is the schematic diagram of a kind of Distributed Services calling system of providing of one embodiment of the invention;
Fig. 4 is the flow chart of a kind of Distributed Services call method of providing of one embodiment of the invention.
Detailed description of the invention
For making object, technical scheme and the advantage of the embodiment of the present invention clearer, below in conjunction with thisAccompanying drawing in bright embodiment, is clearly and completely described the technical scheme in the embodiment of the present invention,Obviously, described embodiment is the present invention's part embodiment, instead of whole embodiment, based onEmbodiment in the present invention, those of ordinary skill in the art are institute under the prerequisite of not making creative workThe every other embodiment obtaining, belongs to the scope of protection of the invention.
As shown in Figure 1, the embodiment of the present invention provides a kind of distributed service framework, can comprise:
Scheduling engine module 101 and service management module 102, wherein,
Described scheduling engine module 101, for receive and store sent by outside publisher and eachThe mark that service relative is answered and address; Receiving the subscription of carrying target identification being sent by external call side disappearsBreath, and find out the destination address corresponding with described target identification in stored whole addresses, withAnd described destination address is sent to described external call side;
Described service management module 102, every for showing that described scheduling engine module 101 is storedAn address, and displaying mark and the current state corresponding with described each address; At described tuneDegree engine modules 101 is while sending to described external call side by described destination address, will with described target groundThe corresponding current state in location is revised as the state of calling.
The embodiment of the present invention provides a kind of distributed service framework, this framework comprise scheduling engine module andService management module. Wherein, scheduling engine module for receive issued by outside publisher and eachThe mark that service relative is answered and address, and receive the ordering for arbitrary service being sent by external call sideRead message, and corresponding address is fed back to this external call side, thereby can make this external call square tubeCross this address and connect and communicate by letter with corresponding outside publisher, complete service invocation procedure; Service ManagementModule each address for showing that also management and dispatching engine modules is stored, and identify accordinglyAnd status information, thereby complete the management of service. By service operation phase and Service Management phase are separated,Realized the loose coupling of service call and Service Management, therefore, the embodiment of the present invention can improve service and adjustWith stability.
At length, the mark of service can be the title of service, and the address of service can be corresponding IP groundLocation and port numbers. Wherein, the mark of service and address can be stored in scheduling engine module 101In Zookeeper.
In the present embodiment, by registration center is split, can carry out respectively service call kimonosBusiness is managed, thereby realizes the loose coupling of service call and Service Management, and service operation phase and manager are dividedFrom, improve the stability of service call and the high availability of service, solve the single-point agency of registration centerThe existing performance bottleneck of pattern.
Staff can pass through the displaying contents of service management module 102, to understand scheduling engine moduleThe status information of each address in 101. At length, this status information can comprise relative with addressWhen the detailed recalls information of the service of answering, as issued in this service by which publisher, this service dividesWhich in when do not called by called side etc.; Also can comprise the definition letter of the service corresponding with addressBreath, as the interface of service, method, parameter type, version etc.; And comprise the clothes corresponding with addressThe life cycle of business, as service has test, the various states such as reach the standard grade, wait to roll off the production line, roll off the production line.
In one embodiment of the invention, described service management module 102, can be further used for obtainingThe status modifier instruction for the first address of user's input, and carry first in described status modifier instructionState; The current state corresponding with described the first address changed to described the first state, and described in inciting somebody to actionThe first state sends to described scheduling engine module 101. Therefore, this implementation can make work peopleMember carries out human intervention with the situation of calling to arbitrary service according to the actual requirements.
For example, if according to the actual requirements, a certain service need be changed to test mode by upper line states,Staff can pass through service management module 102, and artificial input is survey with the address that this service relative is answeredExamination state, and taking scheduling engine module 101 as medium, indirectly notify whole called side of this service.
In one embodiment of the invention, described service management module 102, can be further used for obtainingMark and the address of user's input, and send to described scheduling to draw mark and the address of described user's inputHold up module 101; Described scheduling engine module 101, can be further used for receiving and storing by described serviceMark and the address of described user's input that administration module 102 sends. Therefore, by this implementation,Can not pass through outside publisher, and directly by the arbitrary newly-increased service of the artificial input of staff, so that haveThis newly-increased service can be called by the external call side of demand.
In addition, service management module 102 can also provide corresponding with service registry, cancellation and inquiryInterface, so that serve publisher and can register, nullify by calling correlation technique the address of service of oneself,Realize the mobilism of address of service. For example, serving publisher can be corresponding at the rear auto registration of service startupAddress of service, and after service stopping, nullify this address of service. Significantly, service management module 102Can carry out real time record to the status information of arbitrary service.
In one embodiment of the invention, described scheduling engine module 101, can be further used for basisDescribed destination address, determines the second address being associated with described destination address, and by described the second addressBe pushed to described external call side. Therefore,, by this implementation, meeting the request of external call sideWhen calling a certain service, can push other services that are associated with this service for this external call side.For example, in the time that scheduling engine module 101 gets the latest edition of arbitrary destination service, can be initiatively byThis latest edition is pushed to all external call sides of calling this destination service.
In one embodiment of the invention, in described scheduling engine module 101, store eachAddress, each corresponding with described each address service, include: answer with this service relativeIn application, the internal services of answering with this service relative and the open service of answering with this service relative any oneKind or multiple.
At length, application can be whole other association service that comprise destination service and belong to a class with it togetherComprehensive, can realize the far call of respective service, and be applicable to front and back end split-frame. Inner clothesBusiness, can be a specific service in this application, as a destination service, and is applicable to enterprise's interior spanApplication call. Internal services is carried out can obtaining open service after standardization, and open serviceBe applicable to third party's service call of internet.
By this implementation, service can be divided into application, internal services, three kinds of shapes of open serviceFormula, thus a kind of distributed service framework of lightweight is proposed, therefore can meet simultaneously enterprise-level application andThese two kinds different scene demands of the Internet, applications. Meanwhile, owing to carrying out exposure suit with the unit of being applied asBusiness, realizes RMI, thus can improve the flexibility of service call between application in enterprise, withAnd service call engine in simplification service memory model and enterprise.
In addition, can provide unified service call, management and supervision function to the service of these three kinds of forms,To realize the unified management and control of service.
As shown in Figure 2, the embodiment of the present invention provides a kind of distributed service framework, can comprise:
Scheduling engine module 201, service management module 202 and monitoring analysis module 203, wherein,
Described scheduling engine module 201, for receive and store sent by outside publisher and eachThe mark that service relative is answered and address; Receiving the subscription of carrying target identification being sent by external call side disappearsBreath, and find out the destination address corresponding with described target identification in stored whole addresses, withAnd described destination address is sent to described external call side;
Described service management module 202, every for showing that described scheduling engine module 201 is storedAn address, and displaying mark and the current state corresponding with described each address; At described tuneDegree engine modules 201 is while sending to described external call side by described destination address, will with described target groundThe corresponding current state in location is revised as the state of calling;
Described monitoring analysis module 203, for monitoring every that described scheduling engine module 201 storesAn address, and record each running log corresponding with described each address; According to describedThe running log that destination address is corresponding, carries out statistical analysis to the recalls information of described destination address, andCorresponding statistic analysis result is sent to described service management module 202.
Particularly, the recalls information of described destination address, comprises call corresponding with described destination addressSide, the publisher corresponding with described destination address, call beginning and ending time point, the tune of described destination addressAny one in whether calling successfully by consuming time, the described destination address of described destination address or multiple.
In the present embodiment, by monitoring analysis module 203, can monitor in real time and record and eachThe situation of calling of the address that service relative is answered, thus can make staff pass through service management module 202The situation of calling to arbitrary service is understood, and makes respective handling.
In addition, monitoring analysis module 203 not only can be monitored the running status of each service in real time, andIn the time that running status is abnormal, the notice that can automatically give a warning, as note, mail etc.
As shown in Figure 3, the embodiment of the present invention provides a kind of Distributed Services calling system, can comprise:
Above-mentioned arbitrary distributed service framework 30, at least one publisher 40 and at least one called side 50,Wherein,
Described publisher 40, for sending to described point by the mark of answering with each service relative and addressScheduling engine module in cloth formula service framework 30;
Described called side 50, for sending to the subscribe message of carrying target identification described scheduling engine mouldPiece; Receive the destination address corresponding with described target identification by described scheduling engine module feedback; LogicalCross described destination address, be connected with the first publisher corresponding with described destination address.
At length, this distributed service framework 30 can be based on SOA (Service-OrientedArchitecture, service-oriented architecture) framework thought and RPC (RemoteProcedureCallProtocol, remote procedure call protocol) be achieved.
In the present embodiment, publisher 40 and called side 50 can be full decoupled, and both can lead toCross public service agreement and carry out alternately, and both can be different technology platforms. For example, publisher40 can be J2EE/.NET program, and called side 50 can be J2EE/PHP/.NET program.
In one embodiment of the invention, described called side 50, can be specifically for utilizing long connection, twoAny one in system serializing and Non-Blocking I/O or various ways, by described destination address, andFirst publisher corresponding with described destination address is connected.
After called side is called the address of arbitrary service first, can be according to this address, the long connection of employing,The publisher of the mode such as Binary Serialization and Non-Blocking I/O and this service directly connects to lead toLetter, thus can not undertaken by intermediate layer, reduce and call level, weaken service calling module, improveService performance, and satisfied high internet concurrent, high speed access calls demand.
In one embodiment of the invention, described called side 50, can be specifically for receiving by described schedulingWhole three address and the load balancings corresponding with described target identification of engine modules feedback; RootAccording to described load balancing, determine a four-address in described whole the 3rd address; By describedThe four-address, is connected with the second publisher corresponding with the described four-address.
At length, load balancing can comprise random call, poll call, by weight call and byApplication route in calling any one or multiple.
For example, a service can have multiple Service Instances, and the plurality of Service Instance can be deployed in notOn same server. Meanwhile, each Service Instance all has corresponding address, and after startup by groundLocation is published to scheduling engine module. In the time of this service of called side request call, scheduling engine module can be byThe address list of these multiple Service Instances, and load balancing is pushed to called side. Called side canAccording to load balancing, from address list, select a destination address, and by this destination address withCorresponding publisher connects.
In one embodiment of the invention, described publisher 40, can be specifically for utilizing socket communicationMode, and utilize unified information transmission interface, by mark and the address of answering with each service relativeSend to described scheduling engine module.
By unified information transmission interface is provided, can shield the poor of bottom host-host protocol and message formatThe opposite sex.
As shown in Figure 4, the embodiment of the present invention provides a kind of Distributed Services call method, can compriseFollowing steps:
Step 601: each publisher all sends to the mark of the service corresponding with self and addressScheduling engine module.
At length, the mark of service can be the title of service, and the address of service can be corresponding IP groundLocation and port numbers.
In the present embodiment, distributed service framework can comprise scheduling engine module, service management moduleWith monitoring analysis module three parts. By registration center is split, can carry out respectively service callAnd Service Management, thereby realize the loose coupling of service call and Service Management, make service operation phase and managementDevice separates, and has improved the stability of service call and the high availability of service, has solved registration center's single-pointThe existing performance bottleneck of proxy mode.
Step 602: scheduling engine module receives and store the mark and the address that are sent by each publisher.
At length, the mark of service and address can be stored in the Zookeeper of scheduling engine module.
At length, for each address of storing in scheduling engine module, with this each address phaseEach corresponding service includes: the application of answering with this service relative, the inside of answering with this service relativeAny one in service and the open service of answering with this service relative or multiple.
By this implementation, service can be divided into application, internal services, three kinds of shapes of open serviceFormula, thus a kind of distributed service framework of lightweight is proposed, therefore can meet simultaneously enterprise-level application andThese two kinds different scene demands of the Internet, applications. Meanwhile, owing to carrying out exposure suit with the unit of being applied asBusiness, realizes RMI, thus can improve the flexibility of service call between application in enterprise, withAnd service call engine in simplification service memory model and enterprise.
Step 603: service management module is shown each address of storing in scheduling engine module, withAnd mark and the current state corresponding with described each address.
In the present embodiment, staff can be by the displaying contents of service management module, with demodulationThe status information of each address in degree engine modules. At length, this status information can comprise serviceDetailed recalls information, as which publisher in when issued this service, this service by respectively at whenWhich called by called side etc.; Also can comprise the definition information of service, as the interface, method of service,Parameter type, version etc.; And comprise the life cycle of service, as service has test, reaches the standard grade, treats downLine, the various states such as roll off the production line.
Step 604: the subscribe message of carrying target identification is sent to scheduling engine module by called side.
Called side, in the time that needs call arbitrary service, can send to tune by the mark of answering with this service relativeDegree engine modules, so that scheduling engine module is fed back corresponding address of service, thus can be according to this serviceAddress with serve accordingly publisher and connect and communicate by letter.
Step 605: scheduling engine module receives described subscribe message is looked in stored whole addressesFind out at least one address corresponding with described target identification.
Step 606: scheduling engine module sends to described at least one address and load balancingCalled side.
At length, load balancing can comprise random call, poll call, by weight call and byApplication route in calling any one or multiple.
Step 607: called side, according to described load balancing, is determined from described at least one addressGo out destination address.
In the present embodiment, scheduling engine module can all be sent out the whole addresses that are associated with target identificationGive called side, transmission load balancing strategy simultaneously, thus can make called side reference load balance policy,The arbitrary address of service of autonomous selection.
In addition, scheduling engine module is getting other association service of arbitrary service, as up-to-date in what serveWhen version, can give all called side of calling this service by these other association service active push.
Step 608: the current state corresponding with described destination address is revised as tune by service management moduleUse state.
Step 609: called side is by described destination address, with the issue corresponding with described destination addressSide is connected.
In the present embodiment, after called side is called the address of arbitrary service first, can be according to this groundLocation, adopts the publisher of the modes such as long connection, Binary Serialization and Non-Blocking I/O and this service directConnect to communicate, thereby can not undertaken by intermediate layer, reduce and call level, weaken clothesBusiness calling module, improves service performance, and satisfied high internet concurrent, high speed access calls demand.
Step 610: destination address described in monitoring analysis module monitors, and record corresponding running log.
Step 611: monitoring analysis module is carried out statistical analysis to described running log, and will unite accordinglyMeter analysis result sends to service management module.
In the present embodiment, monitoring analysis module store in monitoring and scheduling engine modules in real time eachIndividual address, and record it by the mode of running log and call situation. In addition, by by running logStatistic analysis result sends to service management module, can make staff by service management module to appointThe situation of calling of one service is understood, and makes respective handling.
In sum, each embodiment of the present invention at least has following beneficial effect:
1,, in the embodiment of the present invention, distributed service framework framework comprises scheduling engine module and Service ManagementModule. Wherein, scheduling engine module for receive issued by outside publisher with each service relativeThe mark of answering and address, and receive the subscribe message for arbitrary service being sent by external call side,And corresponding address is fed back to this external call side, thereby can make this external call square tube cross this addressConnect and communicate by letter with corresponding outside publisher, complete service invocation procedure; Service management module is used forEach address of storing in displaying management and dispatching engine modules, and corresponding mark and state letterBreath, thus the management of service completed. By service operation phase and Service Management phase are separated, realizeThe loose coupling of service call and Service Management, therefore, the embodiment of the present invention can improve the steady of service callQualitative.
2,, in the embodiment of the present invention, by registration center is split, can carry out respectively service callAnd Service Management, thereby realize the loose coupling of service call and Service Management, make service operation phase and managementDevice separates, and has improved the stability of service call and the high availability of service, has solved registration center's single-pointThe existing performance bottleneck of proxy mode.
3,, in the embodiment of the present invention, service can be divided into application, internal services, three kinds of shapes of open serviceFormula, thus a kind of distributed service framework of lightweight is proposed, therefore can meet simultaneously enterprise-level application andThese two kinds different scene demands of the Internet, applications. Meanwhile, owing to carrying out exposure suit with the unit of being applied asBusiness, realizes RMI, thus can improve the flexibility of service call between application in enterprise, withAnd service call engine in simplification service memory model and enterprise.
4, in the embodiment of the present invention, after called side is called the address of arbitrary service first, can basisThis address, the publisher of the modes such as employing long connection, Binary Serialization and Non-Blocking I/O and this serviceDirectly connect to communicate, thereby can not undertaken by intermediate layer, reduce and call level, a little less thanChange service calling module, improve service performance, and satisfied high internet concurrent, high speed access callsDemand.
It should be noted that, in this article, the relational terms such as first and second be only used for byEntity or operation and another entity or operating space separate, and not necessarily require or imply thisBetween a little entities or operation, there is relation or the order of any this reality. And term " comprises "," comprise " or its any other variant is intended to contain comprising of nonexcludability, thereby make to comprise that one isProcess, method, article or the equipment of row key element not only comprise those key elements, but also comprise do not have brightOther key elements of really listing, or it is intrinsic to be also included as this process, method, article or equipment instituteKey element. In the situation that there is no more restrictions, " comprise one " by statement and limitKey element, and be not precluded within process, method, article or the equipment that comprises described key element also exist anotherOuter same factor.
Finally it should be noted that: the foregoing is only preferred embodiment of the present invention, only for this is describedThe technical scheme of invention, is not intended to limit protection scope of the present invention. All in spirit of the present invention and formerAny amendment of making, be equal to replacement, improvement etc., be all included in protection scope of the present invention.

Claims (10)

1. a distributed service framework, is characterized in that, comprising:
Scheduling engine module and service management module, wherein,
Described scheduling engine module, for receive and store sent by outside publisher with each serviceCorresponding mark and address; Receive the subscribe message of carrying target identification being sent by external call side,And find out the destination address corresponding with described target identification in stored whole addresses, and willDescribed destination address sends to described external call side;
Described service management module, for each address of showing that described scheduling engine module is stored,And displaying mark and the current state corresponding with described each address; In described scheduling engine moduleWhen described destination address is sent to described external call side, by corresponding with described destination address currentStatus modifier is for calling state.
2. distributed service framework according to claim 1, is characterized in that, also comprises:
Monitoring analysis module, each address of storing for monitoring described scheduling engine module, andRecord each running log corresponding with described each address.
3. distributed service framework according to claim 2, is characterized in that,
Described monitoring analysis module, is further used for according to the running log corresponding with described destination address,The recalls information of described destination address is carried out to statistical analysis, and corresponding statistic analysis result is sent toDescribed service management module, wherein,
The recalls information of described destination address, comprising: the called side corresponding with described destination address, withThe corresponding publisher of described destination address, call described destination address beginning and ending time point, call described inConsuming time, the described destination address of destination address in whether calling successfully any one or multiple.
4. distributed service framework according to claim 1, is characterized in that,
Described service management module, the state for the first address that is further used for obtaining user's input is repaiiedChange instruction, and carry the first state in described status modifier instruction; By corresponding with described the first addressCurrent state changes to described the first state, and described the first state is sent to described scheduling engine module;
And/or,
Described service management module, is further used for obtaining mark and the address that user inputs, and described in inciting somebody to actionMark and the address of user's input send to described scheduling engine module;
Described scheduling engine module, is further used for receiving and store and is sent by described service management moduleMark and the address of described user's input.
5. distributed service framework according to claim 1, is characterized in that,
For each address of storing in described scheduling engine module, relative with described each addressEach service of answering, includes: the application of answering with this service relative, the inside of answering with this service relativeAny one in service and the open service of answering with this service relative or multiple.
6. according to arbitrary described distributed service framework in claim 1 to 5, it is characterized in that,
Described scheduling engine module, is further used for according to described destination address, determines and described target groundThe second address that location is associated, and described the second address is pushed to described external call side.
7. a Distributed Services calling system, is characterized in that, comprising:
As the distributed service framework as described in arbitrary in claim 1 to 6, at least one publisher and extremelyA few called side, wherein,
Described publisher, for sending to described distribution by mark and the address of answering with each service relativeScheduling engine module in formula service framework;
Described called side, for sending to the subscribe message of carrying target identification described scheduling engine module;Receive the destination address corresponding with described target identification by described scheduling engine module feedback; By instituteState destination address, be connected with the first publisher corresponding with described destination address.
8. Distributed Services calling system according to claim 7, is characterized in that,
Described called side, specifically for utilizing appointing in long connection, Binary Serialization and Non-Blocking I/OOne or more modes of anticipating, by described destination address, with corresponding with described destination address firstCloth side is connected.
9. Distributed Services calling system according to claim 7, is characterized in that,
Described called side, specifically for receive by described scheduling engine module feedback with described target identificationCorresponding whole the 3rd address and load balancings; According to described load balancing, described in determiningA four-address in whole the 3rd addresses; By the described four-address, and with described four-address phaseThe second corresponding publisher is connected.
10. according to arbitrary described Distributed Services calling system in claim 7 to 9, its feature existsIn,
Described publisher, specifically for utilizing socket communication mode, and utilizes unified communicationInterface, sends to described scheduling engine module by mark and the address of answering with each service relative.
CN201610143837.0A 2016-03-14 2016-03-14 Distributed service framework and distributed service calling system Pending CN105681463A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610143837.0A CN105681463A (en) 2016-03-14 2016-03-14 Distributed service framework and distributed service calling system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610143837.0A CN105681463A (en) 2016-03-14 2016-03-14 Distributed service framework and distributed service calling system

Publications (1)

Publication Number Publication Date
CN105681463A true CN105681463A (en) 2016-06-15

Family

ID=56310296

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610143837.0A Pending CN105681463A (en) 2016-03-14 2016-03-14 Distributed service framework and distributed service calling system

Country Status (1)

Country Link
CN (1) CN105681463A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106657354A (en) * 2016-12-29 2017-05-10 努比亚技术有限公司 Load balancing device and method
CN106657232A (en) * 2016-09-29 2017-05-10 山东浪潮商用系统有限公司 Distributed server configuration and service method thereof
CN107612713A (en) * 2017-08-21 2018-01-19 同程网络科技股份有限公司 A kind of method for administering back-end services
CN110311900A (en) * 2019-06-19 2019-10-08 微梦创科网络科技(中国)有限公司 A kind of service calling method, device, electronic equipment and storage medium
CN110837424A (en) * 2019-10-15 2020-02-25 东软集团股份有限公司 Service instance determining method and device, storage medium and electronic equipment
CN112583929A (en) * 2020-12-23 2021-03-30 北京航空航天大学 Service management method based on airborne embedded real-time operating system
CN113329047A (en) * 2020-02-29 2021-08-31 华为技术有限公司 Distributed service scheduling method and related device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030126240A1 (en) * 2001-12-14 2003-07-03 Frank Vosseler Method, system and computer program product for monitoring objects in an it network
CN101964797A (en) * 2010-09-29 2011-02-02 山东中创软件工程股份有限公司 Service interaction method and system
CN102281329A (en) * 2011-08-02 2011-12-14 北京邮电大学 Resource scheduling method and system for platform as a service (Paas) cloud platform
CN102932210A (en) * 2012-11-23 2013-02-13 北京搜狐新媒体信息技术有限公司 Method and system for monitoring node in PaaS cloud platform
CN105141452A (en) * 2015-08-07 2015-12-09 北京思特奇信息技术股份有限公司 High-performance service system and method based on CXF

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030126240A1 (en) * 2001-12-14 2003-07-03 Frank Vosseler Method, system and computer program product for monitoring objects in an it network
CN101964797A (en) * 2010-09-29 2011-02-02 山东中创软件工程股份有限公司 Service interaction method and system
CN102281329A (en) * 2011-08-02 2011-12-14 北京邮电大学 Resource scheduling method and system for platform as a service (Paas) cloud platform
CN102932210A (en) * 2012-11-23 2013-02-13 北京搜狐新媒体信息技术有限公司 Method and system for monitoring node in PaaS cloud platform
CN105141452A (en) * 2015-08-07 2015-12-09 北京思特奇信息技术股份有限公司 High-performance service system and method based on CXF

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106657232A (en) * 2016-09-29 2017-05-10 山东浪潮商用系统有限公司 Distributed server configuration and service method thereof
CN106657354A (en) * 2016-12-29 2017-05-10 努比亚技术有限公司 Load balancing device and method
CN107612713A (en) * 2017-08-21 2018-01-19 同程网络科技股份有限公司 A kind of method for administering back-end services
CN110311900A (en) * 2019-06-19 2019-10-08 微梦创科网络科技(中国)有限公司 A kind of service calling method, device, electronic equipment and storage medium
CN110837424A (en) * 2019-10-15 2020-02-25 东软集团股份有限公司 Service instance determining method and device, storage medium and electronic equipment
CN113329047A (en) * 2020-02-29 2021-08-31 华为技术有限公司 Distributed service scheduling method and related device
WO2021169847A1 (en) * 2020-02-29 2021-09-02 华为技术有限公司 Distributed service scheduling method and related apparatus
CN113329047B (en) * 2020-02-29 2023-04-18 华为技术有限公司 Distributed service scheduling method and related device
US11831713B2 (en) 2020-02-29 2023-11-28 Huawei Technologies Co., Ltd. Distributed service scheduling method and related apparatus
CN112583929A (en) * 2020-12-23 2021-03-30 北京航空航天大学 Service management method based on airborne embedded real-time operating system
CN112583929B (en) * 2020-12-23 2022-07-26 北京航空航天大学 Service management method based on airborne embedded real-time operating system

Similar Documents

Publication Publication Date Title
CN105681463A (en) Distributed service framework and distributed service calling system
CN108255905B (en) Interface calls data processing method, device and computer equipment
US10476743B2 (en) Automatic creation and management of a community of things for Internet of Things (IoT) applications
CN102868736B (en) A kind of cloud computing Monitoring framework design basis ground motion method and cloud computing treatment facility
US8719780B2 (en) Application server with a protocol-neutral programming model for developing telecommunications-based applications
CN109862051A (en) The realization method and system of multi-tenant under a kind of micro services framework
CN105809356A (en) Information system resource management method based on application integrated cloud platform
CN107341044A (en) A kind of distributive data center unified monitoring framework and method
CN110851278A (en) Distribution network automation master station mobile application service management method and system based on micro-service architecture
CN112953982B (en) Service processing method, service configuration method and related device
CN108632299A (en) Enhance method, apparatus, electronic equipment and the storage medium of registration center's availability
CN104322011A (en) Connectivity service orchestrator
CN104468299B (en) Enterprise Service Bus system based on user policy
CN112788074A (en) Data transmitting method, processing method, receiving method and equipment and storage medium
US8817667B2 (en) Method and device for implementing group intelligent service of mobile virtual private network
CN109542583A (en) A kind of virtual device management method based on dual bus
CN107818484A (en) Manage the method and system for rule of making out an invoice
EP3457668A1 (en) Clustering in unified communication and collaboration services
CN106713353A (en) Intelligent seamless aggregation method and system for geographic information service
CN116633775A (en) Container communication method and system of multi-container network interface
CN104391876A (en) Static data storing and querying method and system
CN113157737B (en) Service instance association relation dynamic construction system
CN103645959A (en) Telecom real-time system multi-process SMP (shared memory pool) interaction assembly and method
CN105610986A (en) Service scheduling method, load balancing server and service scheduling system
CN116881040A (en) Service operation processing method and device, electronic device and storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20160615

WD01 Invention patent application deemed withdrawn after publication