CN110247944A - Trans-regional service calling method, device, system and electronic equipment - Google Patents
Trans-regional service calling method, device, system and electronic equipment Download PDFInfo
- Publication number
- CN110247944A CN110247944A CN201810195626.0A CN201810195626A CN110247944A CN 110247944 A CN110247944 A CN 110247944A CN 201810195626 A CN201810195626 A CN 201810195626A CN 110247944 A CN110247944 A CN 110247944A
- Authority
- CN
- China
- Prior art keywords
- service
- trans
- regional
- metadata
- isp
- 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
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/06—Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/56—Provisioning of proxy services
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/60—Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/60—Scheduling 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/63—Routing a service request depending on the request content or context
Abstract
The embodiment of the invention provides a kind of trans-regional service calling method, device, system and electronic equipments, system includes trans-regional proxy module and registration center, registration center is used to store the first service metadata of the ISP in one's respective area and the second service metadata of trans-regional proxy module, the trans-regional service call inquiry request for receiving one's respective area service consumer, provides the second service metadata of trans-regional proxy module;Trans-regional proxy module is used to receive the trans-regional service invocation request of service consumer in one's respective area, and initiates service call to the ISP in other regions.The embodiment of the present invention by increasing trans-regional proxy module in the zone, so that trans-regional service invocation request is gone to the trans-regional proxy module by the service consumer of one's respective area, it is uniformly processed by it, to reduce the trans-regional connection quantity between service consumer and the ISP in other regions, the metadata storage pressure of registration center is also mitigated.
Description
Technical field
The present embodiments relate to a kind of service calling method, device, system and electronic equipment, more particularly to one kind are transregional
Service calling method, device, system and the electronic equipment in domain.
Background technique
To realize the service call between global different zones, different zones are synchronous by its registration center and save each area
The service metadata of all ISPs in domain, when the service that one of region needs that other regions is called to provide, the area
The service consumer in domain needs to obtain the service metadata of ISP in other regions from the registration center of one's respective area, in turn
The service consumer of one's respective area directly realizes trans-regional connection with the ISP in other regions, to realize service call.
In the implementation of the present invention, the discovery prior art has following defects that inventor
When ISP increases, areal increases, each service consumer and service are provided between different zones
Person is required to trans-regional connection, and the point-to-point trans-regional connection of this dispersion is highly dependent on the network condition of high quality,
When network condition difference, service call quality is influenced, especially when the trans-regional company between service consumer and ISP
When the quantity connect increases, network condition is more unstable, it will seriously affects service call quality.In addition, registration center needs together
The service metadata for walking and saving the ISP in each region is provided with servicing in areal increase and each region
The storage pressure of the increase of the service metadata of person, registration center also can be increasing.
Summary of the invention
The embodiment of the present invention provides a kind of trans-regional service calling method, device, system and electronic equipment, reduces different
The quantity of the trans-regional connection between service consumer and ISP between region, and can reduce registration center
Store pressure.
The embodiment of the invention provides a kind of trans-regional service calling systems, including in trans-regional proxy module and registration
The heart:
Registration center, for storing the first service metadata of the ISP in one's respective area, and storage it is described across
The second service metadata of regional agency module, and receive the service consumption for needing to carry out trans-regional service call in one's respective area
The trans-regional service call inquiry request of person provides the second service member number of the trans-regional proxy module to the service consumer
According to the second service metadata includes that the address information of the trans-regional proxy module and the service in other regions provide
The 4th service metadata in the third service metadata of person in addition to address information;
The trans-regional proxy module, the trans-regional service call for receiving service consumer in the one's respective area are asked
It asks, and according to the 4th service metadata that includes in the trans-regional service invocation request and described trans-regional acts on behalf of mould
The address information of the ISP in other regions of block storage is initiated service to the ISP in other regions and is adjusted
With.
The embodiment of the invention also provides a kind of trans-regional service calling methods, comprising:
Registration center receives the trans-regional service tune for needing to carry out the service consumer of trans-regional service call in one's respective area
With inquiry request, and return to the service consumer second service metadata of trans-regional proxy module, the second service
Metadata includes the third service unit of the address information of the trans-regional proxy module and the ISP in other regions
The 4th service metadata in data in addition to address information;
The trans-regional proxy module receives the trans-regional service invocation request of service consumer in the one's respective area, and root
According to the 4th service metadata and the trans-regional proxy module storage for including in the trans-regional service invocation request
Other regions ISP address information, to the ISP in other regions initiate service call.
The embodiment of the invention also provides a kind of trans-regional service calling methods, comprising:
Receive the trans-regional service invocation request of service consumer in the one's respective area;
According to the 4th service metadata that includes in the trans-regional service invocation request and stored its
The address information of the ISP in his region, to the ISP in other regions initiate service call, the described 4th
Service metadata is that address information is removed in the third service metadata of the ISP in other regions other than the one's respective area
Service metadata in addition.
The embodiment of the invention also provides a kind of trans-regional service call devices, comprising:
Request receiving module, for receiving the trans-regional service invocation request of service consumer in the one's respective area;
Service calling module, for according to the 4th service metadata for including in the trans-regional service invocation request
And the address information of the ISP in other stored regions, it initiates to take to the ISP in other regions
Business is called, and the 4th service metadata is the third service unit number of the ISP in other regions other than the one's respective area
Service metadata in addition to address information.
The embodiment of the invention also provides a kind of trans-regional service calling methods, comprising:
The service invocation request that client uploads is obtained by cloud service bus;
The Service provider information of the corresponding target area of the service invocation request is obtained by the cloud service bus;
ISP according to the Service provider information by from the cloud service bus to the target area
Send the service invocation request.
The embodiment of the invention also provides a kind of trans-regional service call devices, comprising:
Module is obtained, for obtaining the ISP of the corresponding target area of service invocation request by cloud service bus
Information;
Sending module, for passing through ISP of the cloud service bus into target area according to Service provider information
Send service invocation request.
The embodiment of the invention also provides a kind of trans-regional service calling systems, comprising:
Cloud service bus, for obtaining the Service provider information of at least one target area;
Registration center, for storing the Service provider information in cloud service bus region within the jurisdiction;
Wherein, belonging to the cloud service bus in region when any client upload service call request, pass through cloud service
Bus obtains the Service provider information of the corresponding target area of service invocation request;And pass through cloud according to Service provider information
ISP of the service bus into target area sends service invocation request.
The embodiment of the invention also provides a kind of electronic equipment, comprising:
Memory, for storing program;
Processor is coupled to the memory, for executing described program, to be used for:
Receive the trans-regional service invocation request of service consumer in the one's respective area;
According to the 4th service metadata that includes in the trans-regional service invocation request and stored its
The address information of the ISP in his region, to the ISP in other regions initiate service call, the described 4th
Service metadata is that address information is removed in the third service metadata of the ISP in other regions other than the one's respective area
Service metadata in addition.
The embodiment of the present invention provides a kind of trans-regional service calling method, device, system and electronic equipment, by area
Trans-regional proxy module is increased in domain, trans-regional proxy module itself is used as one in one's respective area special service to provide
Person is registering the Metadata registry other than address information of the address information of itself and the ISP in other regions
In center, so that trans-regional service invocation request is gone to the trans-regional proxy module by the service consumer of one's respective area,
It is uniformly processed by it, to reduce the trans-regional connection number between service consumer and the ISP in other regions
Amount also mitigates the metadata storage pressure of registration center.
The above description is only an overview of the technical scheme of the present invention, in order to better understand the technical means of the present invention,
And it can be implemented in accordance with the contents of the specification, and in order to allow above and other objects of the present invention, feature and advantage can
It is clearer and more comprehensible, the followings are specific embodiments of the present invention.
Detailed description of the invention
Fig. 1 is the structural schematic diagram of the trans-regional service calling system of the embodiment of the present invention;
Fig. 2 is the flow diagram of the trans-regional service calling method of the embodiment of the present invention one;
Fig. 3 is the flow diagram of the trans-regional service calling method of the embodiment of the present invention two;
Fig. 4 is the structural schematic diagram of the trans-regional service call device of the embodiment of the present invention three;
Fig. 5 is the flow diagram of the trans-regional service calling method of the embodiment of the present invention four;
Fig. 6 is the structural schematic diagram of the trans-regional service call device of the embodiment of the present invention five;
Fig. 7 is the structural schematic diagram of electronic equipment provided in an embodiment of the present invention.
Specific embodiment
Exemplary embodiments of the present disclosure are described in more detail below with reference to accompanying drawings.Although showing the disclosure in attached drawing
Exemplary embodiment, it being understood, however, that may be realized in various forms the disclosure without should be by embodiments set forth here
It is limited.On the contrary, these embodiments are provided to facilitate a more thoroughly understanding of the present invention, and can be by the scope of the present disclosure
It is fully disclosed to those skilled in the art.
Term explanation:
CSB: full name is Cloud Service Bus, and cloud service bus is researched and developed by Alibaba Co.Cloud service bus
It is capable of providing the ability of bus between different zones, the trans-regional offer service of ISP is provided.
Registration center: the storage center of service metadata is designed with registration center in each region, and service consumer can be with
The service metadata of the ISP of the service of offer is provided by registration center.
Service metadata: the mainly relevant information of ISP, the name including service provided by ISP
The information such as title, configuration parameter and IP address.
In addition, the technical solution of the embodiment of the present invention for ease of description, defines following name during description
Claim:
First service metadata: the service metadata of the ISP in one's respective area.
Second service metadata: the service metadata of trans-regional proxy module.
Third service metadata: the service metadata of the ISP in other regions.
4th service metadata: the clothes in the service metadata of the ISP in other regions other than address information
Business metadata.
The technical principle of the embodiment of the present invention is: the Egress node as service call is added in each region
Trans-regional proxy module executes trans-regional service call by trans-regional proxy module, to mitigate registration center's storage pressure, subtract
Few trans-regional connection quantity avoids in the service invocation procedure of the prior art due to the trans-regional connection quantity synchronization of generation greatly
Delay, the storage drawbacks such as pressure is big, improve the trans-regional service call efficiency in the whole world.
As shown in Figure 1, its structural schematic diagram for the trans-regional service calling system of the embodiment of the present invention, such as institute in figure
Show, include three regions in exemplary scene: US (U.S.), EU (Europe) and ASIA (Asia).In each area
It is provided with registration center 1 and trans-regional proxy module 2, the registration center 1 and trans-regional proxy module 2 constitute the region
There are in each region trans-regional service calling system one or more service consumers 3 and one or more services to mention
Donor 4, wherein trans-regional proxy module 2, which also can according to need, is arranged one or more, for example, one's respective area can be directed to
A trans-regional proxy module 2 is arranged in other regions each of in addition, can also be for different types of in other regions
ISP 4 is correspondingly arranged multiple trans-regional proxy modules 2.In figure, only with the service consumer 3 in the U.S. to other areas Liang Ge
Domain shown for trans-regional service call.
In each area, there are multiple service consumers 3 and ISP 4.The registration center 1 of one's respective area stores
The first service metadata of ISP 4 in one's respective area, and the second service member of trans-regional proxy module 2 is also stored
Data when the service consumer 3 when one's respective area needs to carry out trans-regional service call, can first be sent out to the registration center 1 of one's respective area
Trans-regional service call inquiry request is played, registration center 1 is after being connected to trans-regional service call inquiry request, to service consumer
3 return and provide the second service metadata of trans-regional proxy modules 2, and trans-regional service call is transferred to and trans-regional acts on behalf of mould
Block 2 is handled, so that whole service consumers 3 in the region are external interface by trans-regional proxy module 2,
It is unified to realize the trans-regional service call for being directed to other regional services supplier 4, thus reduce in the prior art, one's respective area
The large number of direct connection relational established between service consumer 3 and the ISP 4 in other regions.
In the system of the embodiment of the present invention, trans-regional proxy module 2 can be considered as a special clothes in one's respective area
Be engaged in supplier, and trans-regional proxy module 2 is as other local ISPs 4 by the metadata (second service of their own
Metadata) it is registered in registration center 1 (in figure between United States region mid span area proxy module 2 and the registration center 1 of one's respective area
Dotted line illustrate the registration relationship between them).The second service metadata of trans-regional proxy module 2 includes trans-regional agency
In the third service metadata of the ISP 4 of the address information and other regions of module 2 in addition to address information the 4th
Service metadata.
Trans-regional proxy module 2 can also be communicated with the registration center 1 in other regions, to get other regions
Third service metadata (the registration in trans-regional proxy module 2 and other regions in figure in United States region of ISP 4
Dotted line between center 1 illustrates the correspondence between them).Trans-regional proxy module 2 can be by the service in other regions
The third service metadata storage of supplier 4 is temporarily stored to memory and dynamic updates, and can also construct special deposit
It stores up space and carries out long-time storage, and in practical applications, trans-regional proxy module 2 can not obtain other regions whole
The third service metadata of ISP 4, but only save the of the ISP 4 of available other regions whole in part
Three service metadatas, and third service unit can dynamically be updated by the communication of the registration center 1 with other regions
Data.
It can be seen that trans-regional proxy module 2 has actually shared registration center 1 in the prior art for other regions
ISP 4 third service metadata storage pressure.
In fact, other metadata other than address information are bases for the ISP 4 of the same area
This is identical, i.e., the 4th above-mentioned service metadata is identical, such as the title and configuration parameter etc. of service, or same
In region, there are different types of ISPs 4 to provide different types of service, still, same type of for providing
For ISP 4, the 4th service metadata of these ISPs 4 is also identical.Trans-regional proxy module 2 is to note
Address information included in the 4th service metadata that volume center 1 is registered is the address letter of trans-regional proxy module 2 itself
Breath, and the third service metadata for including in the 4th service metadata is the data with general character, therefore same for providing
ISP 4 of type storages one or the considerably less third service metadata of quantity, therefore, trans-regional agency
The data volume for the 4th service metadata that module 2 is registered to registration center 1 is very small, and in its several and one's respective area across
The quantity of regional agency module 2 is identical, and the service that the quantity of trans-regional proxy module 2 is far smaller than in other regions mentions
4 quantity of donor, in contrast, since registration center 1 in the prior art is in the registration center 1 for completely synchronize other regions
The service metadata of the ISP 4 of storage, and service metadata itself is saved in whole form, due to each
The address information of ISP 4 is different, and therefore, how many ISP 4, registration center 1 will store how many clothes
Business metadata, the amount of storage for causing registration center 1 is very huge, and the technical solution of the embodiment of the present invention is then greatly lowered
The storage pressure of the service metadata of registration center 1.
Service consumer 3 in one's respective area has got the of trans-regional proxy module 2 after having accessed registration center 1
After two service metadatas, trans-regional service invocation request just is initiated to trans-regional proxy module 2.Correspondingly, trans-regional to act on behalf of mould
Block 2 is used to receive the trans-regional service invocation request of the service consumer 3 of one's respective area, and according in trans-regional service invocation request
The address information of the ISP 4 in other regions of the 4th service metadata and trans-regional proxy module 2 storage for including,
Initiating service call to the ISP 4 in other regions, (solid arrow in figure indicates to initiate from service consumer 3 trans-regional
Interactive relation involved in service call).The trans-regional service invocation request of the service consumer 3 in one's respective area all collects as a result,
In arrived trans-regional proxy module 2 and handled, externally initiate to call by trans-regional proxy module 2 is unified, to reduce existing skill
The point-to-point connection of service consumer 3 and ISP 4 between art mid span area, significantly improves service call quality, and
And trans-regional proxy module 2 can be simultaneously as scheduling control center, it can be achieved that be directed to the bulk flow of trans-regional service call
Control.
In addition, it should be noted that, in an embodiment of the present invention, above-mentioned trans-regional proxy module 2 can use cloud
The proxy module of service bus (CSB) technology building, wherein above-mentioned address information can be IP address information.In addition, one
It may not be that whole ISPs 4 can provide trans-regional service tune in multiple ISPs 4 in a region
With, therefore, the third service metadata for the ISP 4 that trans-regional proxy module 2 is obtained from the registration center 1 in other regions
In, the third service metadata with the ISP 4 for being capable of providing trans-regional service call ability can be only obtained, and
The service metadata of whole ISPs 4 in other regions is not needed to obtain.
Embodiment one
As shown in Fig. 2, its flow diagram for the trans-regional service calling method of the embodiment of the present invention one, this implementation
The service calling method of example is based on service calling system trans-regional shown in Fig. 1 comprising:
S201: registration center receives the trans-regional clothes for needing to carry out the service consumer of trans-regional service call in one's respective area
Inquiry request is called in business, and the second service metadata of trans-regional proxy module, second service member number are returned to service consumer
Address is removed in third service metadata according to the ISP of address information and other regions including trans-regional proxy module
The 4th service metadata other than information;Wherein, as previously described, the ISP in other all or part of regions
4th service metadata having the same.
S202: the trans-regional service invocation request of service consumer in trans-regional proxy module reception one's respective area, and according to
The clothes in other regions of the 4th service metadata for including in trans-regional service invocation request and the storage of trans-regional proxy module
The address information of business supplier initiates service call to the ISP in other regions.
Further, this method can also include:
S203: trans-regional proxy module is communicated with the registration center in other regions other than one's respective area, obtains other
The third service metadata of the ISP in region.
In addition, this method can also include:
S204: trans-regional proxy module registers the second service metadata of trans-regional proxy module to registration center.
It should be noted that step S201 and S202 be main trans-regional service call process, and step S203 and
S204 is the preparation carried out for trans-regional service call, should be before step S201 and S202, no in sequential relationship
Dynamic in real time can also be carried out by, which crossing, updates, i.e., in S203, trans-regional proxy module and other regions other than one's respective area
Registration center can carry out the communication of duration, the third service unit of ISP that is real-time or regularly updating other regions
Data, correspondingly, in S204, trans-regional proxy module can also be real-time or regularly updates second registered to registration center
Service metadata.
The trans-regional service calling method of the embodiment of the present invention increases trans-regional proxy module in the zone, transregional
Domain proxy module itself is used as a special ISP in one's respective area, by the address information of itself and other regions
The Metadata registry other than address information of ISP is in registration center, so that the service consumption of one's respective area
Trans-regional service invocation request is gone to the trans-regional proxy module by person, is uniformly processed by it, to reduce service
Trans-regional connection quantity between consumer and the ISP in other regions also mitigates the metadata storage of registration center
Pressure.
Embodiment two
As shown in figure 3, its flow diagram for the trans-regional service calling method of the embodiment of the present invention two, this implementation
The trans-regional service calling method of example describes process flow performed by trans-regional proxy module, comprising:
S301: the trans-regional service invocation request of service consumer in one's respective area is received;
S302: according to the 4th service metadata and other stored areas for including in trans-regional service invocation request
The address information of the ISP in domain initiates service call to the ISP in other regions, and the 4th service metadata is
Service metadata in the third service metadata of the ISP in other regions other than one's respective area in addition to address information.
Wherein, as previously described, ISP's the 4th service metadata having the same in other all or part of regions.
Further, this method can also include:
S303: being communicated with the registration center in other regions other than one's respective area, and the service for obtaining other regions provides
The third service metadata of person.
In addition, this method can also include:
S304: registering the second service metadata of trans-regional proxy module to registration center, and second service metadata includes
In the third service metadata of the ISP of the address information and other regions of trans-regional proxy module except address information with
The 4th outer service metadata.
The case where with embodiment one, is similar, and step S301 and S302 are main trans-regional service call process, and step
S303 and S304 be for trans-regional service call carry out preparation, in sequential relationship should step S301 and S302 it
Before, but dynamic in real time can also be carried out and updated, i.e., other areas in S303, other than trans-regional proxy module and one's respective area
The registration center in domain can carry out the communication of duration, the third clothes of ISP that is real-time or regularly updating other regions
Business metadata, correspondingly, in S304, trans-regional proxy module can also be real-time or be regularly updated to registration center's registration
Second service metadata.
The trans-regional service calling method of the embodiment of the present invention increases trans-regional proxy module in the zone, transregional
Domain proxy module itself is used as a special ISP in one's respective area, by the address information of itself and other regions
The Metadata registry other than address information of ISP is in registration center, so that the service consumption of one's respective area
Trans-regional service invocation request is gone to the trans-regional proxy module by person, is uniformly processed by it, to reduce service
Trans-regional connection quantity between consumer and the ISP in other regions also mitigates the metadata storage of registration center
Pressure.
Embodiment three
As shown in figure 4, its structural schematic diagram for the trans-regional service call device of the embodiment of the present invention three.The device
It can be set in the trans-regional proxy module in Fig. 1, which includes:
Request receiving module 401, for receiving the trans-regional service invocation request of service consumer in the one's respective area;
Service calling module 402, for according to the 4th service unit for including in the trans-regional service invocation request
The address information of the ISP in data and other stored regions is sent out to the ISP in other regions
Service call is played, the 4th service metadata is the third service of the ISP in other regions other than the one's respective area
Service metadata in metadata in addition to address information.
Further, which can also include:
Service metadata obtains module, for being communicated with the registration center in other regions other than the one's respective area,
Obtain the third service metadata of the ISP in other regions.
Further, which can also include:
Service metadata registration module, for registering the second service of trans-regional proxy module to the registration center
Metadata, the second service metadata include the address information of the trans-regional proxy module and the service in other regions
The 4th service metadata in the third service metadata of supplier in addition to address information.
The trans-regional service call device of the embodiment of the present invention, increases trans-regional proxy module in the zone, transregional
Domain proxy module itself is used as a special ISP in one's respective area, by the address information of itself and other regions
The Metadata registry other than address information of ISP is in registration center, so that the service consumption of one's respective area
Trans-regional service invocation request is gone to the trans-regional proxy module by person, is uniformly processed by it, to reduce service
Trans-regional connection quantity between consumer and the ISP in other regions also mitigates the metadata storage of registration center
Pressure.
Example IV
As shown in figure 5, its flow diagram for the trans-regional service calling method of the embodiment of the present invention four, this implementation
The trans-regional service calling method of example describes process flow performed by cloud service bus, comprising:
S501: the service invocation request that client uploads is obtained by cloud service bus;Wherein, as previously described, transregional
Cloud service bussing technique building can be used in domain proxy module.
S502: the Service provider information of the corresponding target area of service invocation request is obtained by cloud service bus;Its
In, the above-mentioned service invocation request object to be accessed either one's respective area ISP, be also possible to other regions
ISP.When the region that service invocation request to be accessed is the ISP in other regions, the target area
Service provider information mainly include above-mentioned 4th service metadata and other stored regions ISP
Address information.
S503: service is sent by ISP of the cloud service bus into target area according to Service provider information
Call request.
Further, before the content for executing above-mentioned steps S501, following steps can also be performed:
S504: the Service provider information of at least one target area is obtained by cloud service bus.
In addition, can also be held before the content for executing above-mentioned steps S501, after the content of execution above-mentioned steps S504
Row following steps:
S505: the Service provider information of at least one target area to be called is stored.
Further, above-mentioned steps S502 can be further refined as following steps:
S506: analysis service call request judges whether the region that service invocation request to be accessed is in one's respective area
ISP;
S507: in the feelings that judging result is the ISP that the region that service invocation request to be accessed is other regions
Under condition, determine that the region that service invocation request to be accessed is target area;
S508: the Service provider information of target area is obtained.
In addition, this method can also include:
S509: in the feelings that judging result is the ISP that the region that service invocation request to be accessed is in one's respective area
Under condition, according to the Service provider information got, service invocation request is sent to ISP.
Further, above-mentioned steps S503 can be further refined as following steps:
S510: in the case where the number of target area is one, service invocation request is sent by cloud service bus
ISP into target area;
S511: in the case where the number of target area is multiple, service invocation request is distinguished by cloud service bus
The ISP being sent in target area.
Further, this method can also include:
S512: the Service provider information of local cloud service bus is stored by registration center.As previously described, in registration
The heart can store the second service metadata of cloud service bus, and second service metadata includes the address of above-mentioned cloud service bus herein
The 4th service metadata in the third service metadata of the ISP in information and other regions in addition to address information.
Further, this method can also include:
S513: pass through the trans-regional bulk flow of cloud service bus marco.
Further, this method can also include:
S514: the Service provider information in region to be called is synchronized by presetting calling module.
The trans-regional service calling method of the embodiment of the present invention, increases cloud service bus in the zone, and cloud service is total
Line itself is used as a special ISP in one's respective area, and the service of the address information of itself and other regions is provided
The Metadata registry other than address information of person is in registration center, so that the service consumer of one's respective area will be transregional
The service invocation request in domain goes to the cloud service bus, is uniformly processed by it, to reduce service consumer and other
Trans-regional connection quantity between the ISP in region also mitigates the metadata storage pressure of registration center.
Embodiment five
As shown in fig. 6, its structural schematic diagram for the trans-regional service call device of the embodiment of the present invention five.The device
It can be set in the trans-regional proxy module in Fig. 1, which includes:
Receiving module 601, for obtaining the service invocation request that client uploads by cloud service bus;
Module 602 is obtained, the service for obtaining the corresponding target area of service invocation request by cloud service bus mentions
Donor information;
Sending module 603, for being mentioned according to Service provider information by service of the cloud service bus into target area
Donor sends service invocation request.
The trans-regional service call device of the embodiment of the present invention, increases cloud service bus, cloud service is total in the zone
Line itself is used as a special ISP in one's respective area, and the service of the address information of itself and other regions is provided
The Metadata registry other than address information of person is in registration center, so that the service consumer of one's respective area will be transregional
The service invocation request in domain goes to the cloud service bus, is uniformly processed by it, to reduce service consumer and other
Trans-regional connection quantity between the ISP in region also mitigates the metadata storage pressure of registration center.
The embodiment of the invention also provides a kind of trans-regional service calling systems, comprising:
Cloud service bus, for obtaining the Service provider information of at least one target area;
Registration center, for storing the Service provider information in cloud service bus region within the jurisdiction;
Wherein, belonging to the cloud service bus in region when any client upload service call request, pass through cloud service
Bus obtains the Service provider information of the corresponding target area of service invocation request;And pass through cloud according to Service provider information
ISP of the service bus into target area sends service invocation request.
Further, above-mentioned cloud service bus is also used to obtain the Service provider information of at least one target area, and
Store the Service provider information of at least one target area to be called.
In addition, above-mentioned cloud service bus, is also used to control trans-regional bulk flow.
Embodiment six
The foregoing describe the built-in function and structure of trans-regional service call device, Fig. 7 provides for the embodiment of the present invention
Electronic equipment structural schematic diagram, as shown in fig. 7, in practice, the trans-regional service call device in above-described embodiment can
It is embodied as a kind of electronic equipment, may include: memory 71 and processor 72.
Memory 71, for storing program.
In addition to above procedure, memory 71 is also configured to store various other data to support on an electronic device
Operation.The example of these data includes the instruction of any application or method for operating on an electronic device, such as
Electric business platform, telephone book data, message, picture, video etc. on online shopping platform, line.
Memory 71 can be by any kind of volatibility or non-volatile memory device or their combination realization, such as
Static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable is read-only to be deposited
Reservoir (EPROM), programmable read only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, disk or
CD.
Processor 72 is coupled to memory 71, for executing the program in memory 71.
In an embodiment of the present invention, processor 72 can be specifically used for:
Receive the trans-regional service invocation request of service consumer in one's respective area;
According to the 4th service metadata for including in trans-regional service invocation request and other stored regions
The address information of ISP initiates service call to the ISP in other regions, and the 4th service metadata is local area
Service metadata in the third service metadata of the ISP in other regions other than domain in addition to address information.
Above-mentioned specific processing operation is described in detail in embodiment in front, and details are not described herein.
Further, as shown in fig. 7, electronic equipment can also include: communication component 73, power supply module 74, audio component 75,
Other components such as display 76.Members are only schematically provided in Fig. 7, are not meant to that electronic equipment only includes shown in Fig. 7
Component.
Communication component 73 is configured to facilitate the communication of wired or wireless way between electronic equipment and other equipment.Electronics
Equipment can access the wireless network based on communication standard, such as WiFi, 2G or 3G or their combination.In an exemplary reality
It applies in example, communication component 73 receives broadcast singal or the related letter of broadcast from external broadcasting management system via broadcast channel
Breath.In one exemplary embodiment, communication component 73 further includes near-field communication (NFC) module, to promote short range communication.Example
Such as, NFC module can be based on radio frequency identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra wide band (UWB) technology,
Bluetooth (BT) technology and other technologies are realized.
Power supply module 74 provides electric power for the various assemblies of electronic equipment.Power supply module 74 may include power management system
System, one or more power supplys and other with for electronic equipment generate, manage, and distribute the associated component of electric power.
Audio component 75 is configured as output and/or input audio signal.For example, audio component 75 includes a microphone
(MIC), when electronic equipment is in operation mode, when such as call mode, recording mode, and voice recognition mode, microphone is configured
To receive external audio signal.The received audio signal can be further stored in memory 71 or via communication component 73
It sends.In some embodiments, audio component 75 further includes a loudspeaker, is used for output audio signal.
Display 76 includes screen, and screen may include liquid crystal display (LCD) and touch panel (TP).If screen
Including touch panel, screen may be implemented as touch screen, to receive input signal from the user.Touch panel includes one
Or multiple touch sensors are to sense the gesture on touch, slide, and touch panel.Touch sensor can not only sense touch
Or the boundary of sliding action, but also detect duration and pressure relevant to touch or slide.
Those of ordinary skill in the art will appreciate that: realize that all or part of the steps of above-mentioned each method embodiment can lead to
The relevant hardware of program instruction is crossed to complete.Program above-mentioned can be stored in a computer readable storage medium.The journey
When being executed, execution includes the steps that above-mentioned each method embodiment to sequence;And storage medium above-mentioned include: ROM, RAM, magnetic disk or
The various media that can store program code such as person's CD.
Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present invention., rather than its limitations;To the greatest extent
Pipe present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that: its according to
So be possible to modify the technical solutions described in the foregoing embodiments, or to some or all of the technical features into
Row equivalent replacement;And these are modified or replaceed, various embodiments of the present invention technology that it does not separate the essence of the corresponding technical solution
The range of scheme.
Claims (30)
1. a kind of trans-regional service calling system, which is characterized in that including trans-regional proxy module and registration center:
Registration center, for storing the first service metadata of the ISP in one's respective area, and storage is described trans-regional
The second service metadata of proxy module, and receive the service consumer for needing to carry out trans-regional service call in one's respective area
Trans-regional service call inquiry request provides the second service metadata of the trans-regional proxy module to the service consumer,
The second service metadata includes the address information of the trans-regional proxy module and the ISP in other regions
Third service metadata in the 4th service metadata in addition to address information;
The trans-regional proxy module, for receiving the trans-regional service invocation request of service consumer in the one's respective area, and
It is deposited according to the 4th service metadata for including in the trans-regional service invocation request and the trans-regional proxy module
The address information of the ISP in other regions of storage initiates service call to the ISP in other regions.
2. system according to claim 1, which is characterized in that
The trans-regional proxy module is also used to be communicated with the registration center in other regions other than the one's respective area, obtains
The third service metadata of the ISP in other regions.
3. system according to claim 1, which is characterized in that
The trans-regional proxy module is also used to register the second service metadata of trans-regional proxy module to the registration center.
4. system according to claim 1, which is characterized in that the ISP in other all or part of regions
4th service metadata having the same.
5. system according to claim 1, which is characterized in that the trans-regional proxy module is using cloud service bus skill
The proxy module of art building.
6. a kind of trans-regional service calling method characterized by comprising
Registration center, which receives in one's respective area, needs the trans-regional service call for the service consumer for carrying out trans-regional service call to look into
Request is ask, and returns to the second service metadata of trans-regional proxy module, the second service member number to the service consumer
According to the third service metadata of the ISP of the address information and other regions that include the trans-regional proxy module
In the 4th service metadata in addition to address information;
The trans-regional proxy module receives the trans-regional service invocation request of service consumer in the one's respective area, and according to institute
State its of the 4th service metadata for including in trans-regional service invocation request and trans-regional proxy module storage
The address information of the ISP in his region initiates service call to the ISP in other regions.
7. according to the method described in claim 6, it is characterized by further comprising:
The trans-regional proxy module is communicated with the registration center in other regions other than the one's respective area, obtains other areas
The third service metadata of the ISP in domain.
8. according to the method described in claim 6, it is characterized by further comprising:
The trans-regional proxy module registers the second service metadata of trans-regional proxy module to the registration center.
9. according to the method described in claim 6, the ISP in other all or part of regions is having the same
4th service metadata.
10. a kind of trans-regional service calling method characterized by comprising
Receive the trans-regional service invocation request of service consumer in the one's respective area;
According to the 4th service metadata for including in the trans-regional service invocation request and other stored areas
The address information of the ISP in domain initiates service call, the 4th service to the ISP in other regions
Metadata be the one's respective area other than other regions ISP third service metadata in addition to address information
Service metadata.
11. according to the method described in claim 10, it is characterized by further comprising:
It is communicated with the registration center in other regions other than the one's respective area, obtains the of the ISP in other regions
Three service metadatas.
12. according to the method described in claim 10, it is characterized by further comprising:
The second service metadata of trans-regional proxy module, the second service metadata packet are registered to the registration center
It includes and is removed in the third service metadata of the address information of the trans-regional proxy module and the ISP in other regions
The 4th service metadata other than address information.
13. according to the method described in claim 10, the ISP in other all or part of regions is with identical
The 4th service metadata.
14. a kind of trans-regional service call device characterized by comprising
Request receiving module, for receiving the trans-regional service invocation request of service consumer in the one's respective area;
Service calling module, for according to the 4th service metadata for including in the trans-regional service invocation request and
The address information of the ISP in other stored regions is initiated service to the ISP in other regions and is adjusted
With the 4th service metadata is in the third service metadata of the ISP in other regions other than the one's respective area
Service metadata in addition to address information.
15. device according to claim 14, which is characterized in that further include:
Service metadata obtains module, for being communicated with the registration center in other regions other than the one's respective area, obtains
The third service metadata of the ISP in other regions.
16. device according to claim 14, which is characterized in that further include:
Service metadata registration module, for registering the second service member number of trans-regional proxy module to the registration center
According to the second service metadata includes that the address information of the trans-regional proxy module and the service in other regions provide
The 4th service metadata in the third service metadata of person in addition to address information.
17. a kind of trans-regional service calling method characterized by comprising
The service invocation request that client uploads is obtained by cloud service bus;
The Service provider information of the corresponding target area of the service invocation request is obtained by the cloud service bus;
It is sent according to the Service provider information by ISP of the cloud service bus into the target area
The service invocation request.
18. trans-regional service calling method according to claim 17, which is characterized in that pass through cloud service bus described
Before obtaining the service invocation request that client uploads, the method also includes:
The Service provider information of at least one target area is obtained by cloud service bus.
19. trans-regional service calling method according to claim 18, which is characterized in that pass through cloud service bus described
After the Service provider information for obtaining at least one target area, the method also includes:
Store the Service provider information of at least one target area to be called.
20. trans-regional service calling method described in any one of 7 to 19 according to claim 1, which is characterized in that described logical
It crosses the cloud service bus and obtains the Service provider information of the corresponding target area of the service invocation request and include:
The service invocation request is parsed, judges whether region that the service invocation request to be accessed is clothes in one's respective area
Be engaged in supplier;
In the case where judging result is the ISP that the region that the service invocation request to be accessed is other regions,
Determine that the region that the service invocation request to be accessed is the target area;
Obtain the Service provider information of the target area.
21. trans-regional service calling method according to claim 20, which is characterized in that the method also includes:
In the case where it is the ISP in one's respective area that judging result, which is the region that the service invocation request to be accessed,
According to the Service provider information got, Xiang Suoshu ISP sends the service invocation request.
22. trans-regional service calling method according to claim 17, which is characterized in that described to be provided according to the service
Person's information sends the service invocation request by ISP of the cloud service bus into the target area
In the case where the number of the target area is one, the service invocation request is sent out by the cloud service bus
Send the ISP into the target area;
In the case where the number of the target area is multiple, the service invocation request is divided by the cloud service bus
The ISP not being sent in the target area.
23. trans-regional service calling method according to claim 17, which is characterized in that the method also includes:
Pass through the Service provider information of the local cloud service bus of registration center's storage.
24. trans-regional service calling method according to claim 17, which is characterized in that the method also includes:
Pass through the trans-regional bulk flow of the cloud service bus marco.
25. trans-regional service calling method according to claim 17, which is characterized in that the method also includes:
The Service provider information in region to be called is synchronized by presetting calling module.
26. a kind of trans-regional service call device characterized by comprising
Receiving module, for obtaining the service invocation request that client uploads by cloud service bus;
Module is obtained, the service for obtaining the corresponding target area of the service invocation request by the cloud service bus mentions
Donor information;
Sending module, for the clothes according to the Service provider information by the cloud service bus into the target area
Business supplier sends the service invocation request.
27. a kind of trans-regional service calling system characterized by comprising
Cloud service bus, for obtaining the Service provider information of at least one target area;
Registration center, for storing the Service provider information in cloud service bus region within the jurisdiction;
Wherein, belonging to the cloud service bus in region when any client upload service call request, pass through the cloud
Service bus obtains the Service provider information of the corresponding target area of the service invocation request;And it is provided according to the service
Person's information sends the service invocation request by ISP of the cloud service bus into the target area.
28. trans-regional service calling system according to claim 27, which is characterized in that
The cloud service bus, is also used to obtain the Service provider information of at least one target area, and stores to be called
The Service provider information of at least one target area.
29. trans-regional service calling system according to claim 27, which is characterized in that
The cloud service bus, is also used to control trans-regional bulk flow.
30. a kind of electronic equipment characterized by comprising
Memory, for storing program;
Processor is coupled to the memory, for executing described program, to be used for:
Receive the trans-regional service invocation request of service consumer in the one's respective area;
According to the 4th service metadata for including in the trans-regional service invocation request and other stored areas
The address information of the ISP in domain initiates service call, the 4th service to the ISP in other regions
Metadata be the one's respective area other than other regions ISP third service metadata in addition to address information
Service metadata.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810195626.0A CN110247944B (en) | 2018-03-09 | 2018-03-09 | Cross-regional service calling method, device and system and electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810195626.0A CN110247944B (en) | 2018-03-09 | 2018-03-09 | Cross-regional service calling method, device and system and electronic equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110247944A true CN110247944A (en) | 2019-09-17 |
CN110247944B CN110247944B (en) | 2022-06-24 |
Family
ID=67882788
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810195626.0A Active CN110247944B (en) | 2018-03-09 | 2018-03-09 | Cross-regional service calling method, device and system and electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110247944B (en) |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109756481A (en) * | 2018-11-30 | 2019-05-14 | 广州因特信息科技有限公司 | Realization method and system based on long-distance network distribution docking third party system |
CN111010380A (en) * | 2019-12-06 | 2020-04-14 | 杭州视洞科技有限公司 | Cross-regional service integration scheme |
CN111598430A (en) * | 2020-05-13 | 2020-08-28 | 国网山东省电力公司平邑县供电公司 | Cross-region coordination information processing method and device for smart power grid |
CN112688977A (en) * | 2019-10-17 | 2021-04-20 | 浙江大搜车软件技术有限公司 | Micro-service communication method and device, electronic equipment and machine-readable storage medium |
CN113127411A (en) * | 2021-04-07 | 2021-07-16 | 华南理工大学 | Cross-cloud service application distributed data access system and method |
WO2022048069A1 (en) * | 2020-09-03 | 2022-03-10 | 浙江宇视科技有限公司 | Device cross-area access method and apparatus, electronic device, and storage medium |
CN114629953A (en) * | 2020-12-14 | 2022-06-14 | 电科云(北京)科技有限公司 | Service cross-domain calling method and system based on proxy |
CN114641977A (en) * | 2019-12-31 | 2022-06-17 | 华为云计算技术有限公司 | System and method for cross-regional data management in a dual-active architecture |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101047512A (en) * | 2006-03-31 | 2007-10-03 | 国际商业机器公司 | Service logger and correlation system and method |
US20100250648A1 (en) * | 2009-03-27 | 2010-09-30 | Sap Ag | Client-server systems and methods for accessing metadata information across a network using proxies |
CN103166934A (en) * | 2011-12-15 | 2013-06-19 | 方正国际软件(北京)有限公司 | Cooperative service system and cooperative service method |
CN107635022A (en) * | 2016-07-18 | 2018-01-26 | 华为软件技术有限公司 | Across intranet and extranet service access methods and device |
CN108600326A (en) * | 2018-03-29 | 2018-09-28 | 阿里巴巴集团控股有限公司 | Communication means, device and equipment |
CN110233865A (en) * | 2018-03-06 | 2019-09-13 | 阿里巴巴集团控股有限公司 | Trans-regional service calling method, device and system |
-
2018
- 2018-03-09 CN CN201810195626.0A patent/CN110247944B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101047512A (en) * | 2006-03-31 | 2007-10-03 | 国际商业机器公司 | Service logger and correlation system and method |
US20100250648A1 (en) * | 2009-03-27 | 2010-09-30 | Sap Ag | Client-server systems and methods for accessing metadata information across a network using proxies |
CN103166934A (en) * | 2011-12-15 | 2013-06-19 | 方正国际软件(北京)有限公司 | Cooperative service system and cooperative service method |
CN107635022A (en) * | 2016-07-18 | 2018-01-26 | 华为软件技术有限公司 | Across intranet and extranet service access methods and device |
CN110233865A (en) * | 2018-03-06 | 2019-09-13 | 阿里巴巴集团控股有限公司 | Trans-regional service calling method, device and system |
CN108600326A (en) * | 2018-03-29 | 2018-09-28 | 阿里巴巴集团控股有限公司 | Communication means, device and equipment |
Cited By (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109756481A (en) * | 2018-11-30 | 2019-05-14 | 广州因特信息科技有限公司 | Realization method and system based on long-distance network distribution docking third party system |
CN112688977A (en) * | 2019-10-17 | 2021-04-20 | 浙江大搜车软件技术有限公司 | Micro-service communication method and device, electronic equipment and machine-readable storage medium |
CN111010380A (en) * | 2019-12-06 | 2020-04-14 | 杭州视洞科技有限公司 | Cross-regional service integration scheme |
CN114641977A (en) * | 2019-12-31 | 2022-06-17 | 华为云计算技术有限公司 | System and method for cross-regional data management in a dual-active architecture |
CN114641977B (en) * | 2019-12-31 | 2024-04-09 | 华为云计算技术有限公司 | System and method for cross-regional data management in dual-activity architecture |
CN111598430A (en) * | 2020-05-13 | 2020-08-28 | 国网山东省电力公司平邑县供电公司 | Cross-region coordination information processing method and device for smart power grid |
WO2022048069A1 (en) * | 2020-09-03 | 2022-03-10 | 浙江宇视科技有限公司 | Device cross-area access method and apparatus, electronic device, and storage medium |
US11838381B2 (en) | 2020-09-03 | 2023-12-05 | Zhejiang Uniview Technologies Co., Ltd. | Device cross-area access method, electronic device, and non-transitory computer-readable storage medium |
CN114629953A (en) * | 2020-12-14 | 2022-06-14 | 电科云(北京)科技有限公司 | Service cross-domain calling method and system based on proxy |
CN113127411A (en) * | 2021-04-07 | 2021-07-16 | 华南理工大学 | Cross-cloud service application distributed data access system and method |
Also Published As
Publication number | Publication date |
---|---|
CN110247944B (en) | 2022-06-24 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110247944A (en) | Trans-regional service calling method, device, system and electronic equipment | |
Asemani et al. | Understanding IoT platforms: towards a comprehensive definition and main characteristic description | |
US9953612B2 (en) | Systems and methods for facilitating communication between mobile devices and display devices | |
CN102546779B (en) | Synchronized method and device of application data across devices | |
CN105335112B (en) | Multi-screen display information processing and main control end content sending method and device | |
US20180335761A1 (en) | Architecture for providing ubiquitous access to a home automation system | |
CN109150677B (en) | Cross-domain access processing method and device and electronic equipment | |
CN111431956B (en) | Cross-network service access method, device, system and storage medium | |
CN110336735B (en) | Method and equipment for sending reminding message | |
CN105426141A (en) | Information processing method and electronic device supporting the same | |
CN105765923A (en) | Method for providing a connection of a client to an unmanaged service in a client-server remote access system | |
US10686856B1 (en) | System and method for hotel multicast services manager | |
CN109586929B (en) | Conference content transmission method and device, electronic equipment and storage medium | |
CN108063949A (en) | Image screenshotss method, apparatus and screenshotss server | |
WO2017067218A1 (en) | Method, device, server, and system for synchronizing member benefits among multiple devices | |
CN112019625A (en) | Websocket-based message pushing method, system, equipment and medium | |
CN109412957A (en) | Traffic scheduling method, device and system and electronic equipment | |
CN104813610B (en) | Multiple content items are provided to be shown in multiple equipment | |
Kum et al. | Design of fog computing based IoT application architecture | |
CN110996372B (en) | Message routing method, device and system and electronic equipment | |
CN103581707A (en) | Double-screen interactive processing method and device | |
US9833716B2 (en) | Web content sharing method, and web content providing apparatus and receiving terminal for web content sharing | |
CN102663882B (en) | Method and system for remotely controlling external screen through mobile terminal | |
CN112953992A (en) | Network system, communication and networking method, device and storage medium | |
CN109976872A (en) | Data processing method, device, electronic equipment and storage medium |
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 |