CN110225131A - A kind of service calling method and device - Google Patents
A kind of service calling method and device Download PDFInfo
- Publication number
- CN110225131A CN110225131A CN201910533262.7A CN201910533262A CN110225131A CN 110225131 A CN110225131 A CN 110225131A CN 201910533262 A CN201910533262 A CN 201910533262A CN 110225131 A CN110225131 A CN 110225131A
- Authority
- CN
- China
- Prior art keywords
- micro services
- address
- platform
- target
- destination
- 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
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/50—Network service management, e.g. ensuring proper service fulfilment according to agreements
- H04L41/5041—Network service management, e.g. ensuring proper service fulfilment according to agreements characterised by the time relationship between creation and deployment of a service
-
- 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/133—Protocols for remote procedure calls [RPC]
-
- 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/51—Discovery or management thereof, e.g. service location protocol [SLP] or web 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/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
- H04L67/63—Routing a service request depending on the request content or context
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Telephonic Communication Services (AREA)
Abstract
The embodiment of the invention provides a kind of service calling method and devices, wherein the method can be applied to micro services system, and the micro services system includes the first platform and the second platform, and second platform is provided with Agent components;First Platform deployment has the first micro services, and second Platform deployment has the second micro services;The described method includes: first micro services obtain and the matched destination address of the second micro services of target;The destination address adapts to first platform;First micro services generate call request;The call request is sent to the destination address by first micro services, and is forwarded to the second micro services by the Agent components, to realize corresponding service call.The first micro services that the embodiment of the present invention may be implemented except container cluster can also call the second micro services in container cluster.
Description
Technical field
The present invention relates to Internet technical fields, fill more particularly to a kind of service calling method and a kind of service call
It sets.
Background technique
Micro services frame is a kind of emerging software architecture, a large complicated application program be decomposed into it is multiple in incognito
Business, it is loose coupling between each micro services that each micro services, which can be disposed independently,.Each micro services only focus on completion one
Task simultaneously completes the task well.
Currently, the service when micro services frame mid portion affixes one's name to deployment virtual machine platform and cloud platform, in virtual machine platform
The service in cloud platform can not be called directly, so that the consumption terminal in micro services frame can not execute corresponding service.
Summary of the invention
In view of the above problems, it proposes the embodiment of the present invention and overcomes the above problem or at least partly in order to provide one kind
A kind of service calling method and a kind of corresponding service call device to solve the above problems.
To solve the above-mentioned problems, the embodiment of the invention discloses a kind of service calling methods, are applied to micro services system,
The micro services system includes the first platform and the second platform, and second platform is provided with Agent components, second platform
For container cluster;First Platform deployment has the first micro services, and second Platform deployment has the second micro services;The method
Include:
First micro services obtain and the matched destination address of the second micro services of target;The destination address adapts to institute
State the first platform;
First micro services generate call request;
The call request is sent to the destination address by first micro services, and is forwarded by the Agent components
To second micro services of target, to realize corresponding service call.
Optionally, the micro services system further includes registration center's server, and the registration center is for recording described the
The registered address that two micro services upload;First micro services obtain destination address corresponding with second micro services of target
Step, comprising:
First micro services obtain destination service information;
The destination service information is sent to registration center by first micro services;The registration center for determine with
Corresponding the second micro services of target of the destination service information, and the target second is returned in incognito to first micro services
The registered address that business uploads;
First micro services determine that the registered address that second micro services of target upload is the destination address.
Optionally, second micro services are used to send proxy requests to the Agent components;The Agent components are used for
Generate registered address corresponding with second micro services;
Second micro services are used to send registration request to the registration center;The registration request includes and described
The corresponding registered address of two micro services;The registration center is used to take second micro services using the registered address
Business registration.
Optionally, second micro services of target are provided with initial address, and it is flat that the initial address adapts to described second
Platform;The call request includes the destination address;The destination address includes targeted internet Protocol IP address information and mesh
Mark port information;The IP address information is corresponding with the Agent components;
The Agent components are for obtaining the call request that the target ip address information receives;
The Agent components are for the call request to be sent to and the matched initial address of the destination port information.
Optionally, the Agent components are HAProxy;
First platform is cluster virtual machine, and second platform is container cluster.
The embodiment of the invention also discloses a kind of service call devices, are applied to micro services system, the micro services system
Including the first platform and the second platform, second platform is provided with Agent components;First Platform deployment has first in incognito
Business, second Platform deployment have the second micro services, and second platform is container cluster;It is micro- that described device is located at described first
Service, described device include:
Module is obtained, for obtaining and the matched destination address of the second micro services of target;The destination address adapts to institute
State the first platform;
Generation module, for generating call request;
Sending module for the call request to be sent to the destination address, and is forwarded by the Agent components
To second micro services of target, to realize corresponding service call.
Optionally, the micro services system further includes registration center, and the registration center is for recording described second in incognito
The registered address that business uploads;The acquisition module includes:
Information on services acquisition submodule, for obtaining destination service information;
Information on services sending submodule, for the destination service information to be sent to registration center;The registration center
The mesh is returned for determining the second micro services of target corresponding with the destination service information, and to first micro services
Mark the registered address of the second micro services upload;
Destination address determines submodule, for determining that the registered address that second micro services of target upload is the target
Address.
Optionally, second micro services are used to send proxy requests to the Agent components;The Agent components are used for
Generate registered address corresponding with second micro services;
Second micro services are used to send registration request to the registration center;The registration request includes and described
The corresponding registered address of two micro services;The registration center is used to take second micro services using the registered address
Business registration.
Optionally, second micro services of target are provided with initial address, and it is flat that the initial address adapts to described second
Platform;The call request includes the destination address;The destination address includes targeted internet Protocol IP address information and mesh
Mark port information;The IP address information is corresponding with the Agent components;
The Agent components are for obtaining the call request that the target ip address information receives;
The Agent components are for the call request to be sent to and the matched initial address of the destination port information.
Optionally, the Agent components are HAProxy;
First platform is cluster virtual machine.
The embodiment of the invention also discloses a kind of servers, comprising:
One or more processors;With
One or more machine readable medias of instruction are stored thereon with, are executed when by one or more of processors
When, so that the server executes method as described above.
The embodiment of the invention also discloses one or more machine readable medias, are stored thereon with instruction, when by one or
When multiple processors execute, so that the processor executes method as described above.
The embodiment of the present invention includes following advantages:
In embodiments of the present invention, the target that the first micro services in the first platform pass through acquisition the second micro services of target
Behind address, the call request generated is sent to the destination address.Agent components in second platform are with can monitoring target
It is micro- can be sent to target second when determining that call request is sent to destination address by the data that location receives for call request
Service.And the second platform is container cluster, to realize that the micro services being at outside container cluster can call container cluster
Interior micro services realize the outside access of the micro services of container cluster.
Detailed description of the invention
Fig. 1 is a kind of step flow chart of service calling method embodiment of the invention;
Fig. 2 is a kind of structural block diagram of service call Installation practice of the invention.
Specific embodiment
In order to make the foregoing objectives, features and advantages of the present invention clearer and more comprehensible, with reference to the accompanying drawing and specific real
Applying mode, the present invention is described in further detail.
Referring to Fig.1, a kind of step flow chart of service calling method embodiment of the invention, the embodiment of the present invention are shown
It can be applied to micro services system, the micro services system includes the first platform and the second platform, and second platform is provided with
Agent components;First Platform deployment has the first micro services, and second Platform deployment has the second micro services, and described second is flat
Platform is container cluster;The embodiment of the present invention can specifically include following steps:
The embodiment of the present invention can be applied to a variety of micro services systems, including but not limited to distribution service (such as:
Dubbo system) and service discovery system (such as: Eureka system).Micro services are a kind of virtual service services, the first platform and
Second platform is different server, i.e. the first micro services and the second micro services are deployed in different servers.
Step 101, first micro services obtain and the matched destination address of the second micro services of target;The destination address
Adapt to first platform;
The micro services system can further include registration center, and micro services need to carry out service registration in registration center,
It can be called by other micro services.When the first micro services need the second micro services of invocation target, registration center can be passed through
It obtains and the matched destination address of the second micro services of target.First micro services can directly be sent out to adaptation and the address of the first platform
Send data.
Step 102, first micro services generate call request;
Call request can be generated after getting the matched destination address of the second micro services of target in first micro services.Its
In, call request can include but is not limited to temporal information, business information, address information of the first micro services etc..
Step 103, the call request is sent to the destination address by first micro services, and passes through the agency
Component is forwarded to second micro services of target, to realize corresponding service call.
First micro services can will be generated by RPC (Remote Procedure Call, remote procedure call) agreement
Call request be sent to destination address.Wherein, destination address is corresponding with the net Agent components in the second platform, and networking component can
To monitor the data that destination address receives.When Agent components get the call request of the first micro services, can will call
Request be sent to matched second micro services of destination address it is real so that the second micro services are able to respond the call request
Existing first micro services call the second micro services.
In embodiments of the present invention, the target that the first micro services in the first platform pass through acquisition the second micro services of target
Behind address, the call request generated is sent to the destination address.Agent components in second platform are with can monitoring target
It is micro- can be sent to target second when determining that call request is sent to destination address by the data that location receives for call request
Service.And the second platform is in container cluster, to realize that the micro services being at outside container cluster can call sets of containers
Micro services in group realize the outside access of the micro services of container cluster.
The embodiment of the present invention can make when service is from the first platform migration to the second platform, and service still can be by just
Often call.
In an embodiment of the present invention, the registration center is used to record the registered place that second micro services upload
Location;Step 102 may include:
Sub-step S11, first micro services obtain destination service information;
First micro services obtain destination service information from its corresponding front end, and destination service information can be with URL (Uniform
Resource Locator, uniform resource locator).
The destination service information is sent to registration center by sub-step S12, first micro services;The registration center
The mesh is returned for determining the second micro services of target corresponding with the destination service information, and to first micro services
Mark the registered address of the second micro services upload;
When the second micro services carry out service registration, it is it that the second micro services can upload a network address to registration center
Registered address.Registration center can record service identifiers and the registered address of the second micro services simultaneously, and in incognito for same second
Business, establishes the corresponding relationship of service identifiers and registered address.
The destination service information that registration center sends according to the first micro services determines corresponding with destination service information second
Micro services are the second micro services of target, and determine service identifiers corresponding with the second micro services of target and registered address.
Wherein, the service identifiers of the second micro services can be generated by registration center, and service identifiers can be URL, either
The character string generated based on URL.
Sub-step S13, first micro services determine that the registered address that second micro services of target upload is the mesh
Mark address.
First micro services can receive the registered address of the second micro services of target of registration center's return, and the address is true
It is set to destination address.
In an embodiment of the present invention, second micro services are used to send proxy requests to the Agent components;
The Agent components are for generating registered address corresponding with second micro services;
Second micro services are used to send registration request to the registration center;The registration request includes and described
The corresponding registered address of two micro services;The registration center is used to take second micro services using the registered address
Business registration.
Second micro services can send proxy requests to Agent components before carrying out service registration.When Agent components connect
When receiving the proxy requests of the second micro services, Agent components be the second micro services generate with the second micro services unique match and
Adapt to the registered address of the first platform.Second micro services are when carrying out service registration, by the registered address of Agent components generation
It is uploaded to registration center, registration center carries out service registration to the second micro services using the registered address, so that in registration
In the heart, the network address corresponding with the second micro services that record has Agent components to generate.
In an embodiment of the present invention, second micro services of target are provided with initial address, the initial address
Adapt to second platform;The call request includes the destination address;The destination address includes targeted internet association
Discuss IP address information and destination port information;The IP address information is corresponding with the Agent components;
The Agent components are for obtaining the call request that the target ip address information receives;
The Agent components are for the call request to be sent to and the matched initial address of the destination port information.
When the second platform establishes the second micro services, the second platform can distribute one for the second micro services and be suitable for second
Platform but the initial address for not being suitable for the first platform.When second micro services send proxy requests to Agent components, while to generation
Reason component sends its initial address.Agent components record has a port information in the registered address of the second micro services, and with this
The corresponding initial address of port information.
Agent components receive the first micro services and are sent to the call request of target ip address information, and call request is forwarded
To initial address corresponding with destination port information, which corresponds to the second micro services of target, so that realizing will be from the
The call request that one micro services are sent is sent to the second micro services of target.
Further, the second micro services of target are able to respond the call request, such as: execute the business letter in call request
Breath, and generate and be somebody's turn to do service processing result corresponding with business information.Believed according to the address of the first micro services in call request
Service processing result is back to the first micro services for sending the call request by breath.
In an embodiment of the present invention, the Agent components are HAProxy;
First platform is cluster virtual machine, and second platform is container cluster.
Hereinafter, with an example, embodiments of the present invention is further illustrated:
The first micro services service A is deployed in first platform, the second Platform deployment has the second micro services service B and acts on behalf of group
Part.Wherein, the corresponding address service A adapts to the first platform, such as the corresponding address service A is 192.168.1.20:8080.
When the second Platform deployment services B, generating the initial address for adapting to the second platform corresponding with service B is
10.129.117:8080.The IP address information of Agent components is that " 192.168.30 " service B is first asked to Agent components transmission agency
It asks, it is 192.168.30:38082 that Agent components, which generate registered address corresponding with service B, meanwhile, Agent components establish registration
The port information of address and the corresponding relationship of initial address --- " 38082:10.129.117:8080 ".Service B is being serviced
When registration, registered address is sent to registration center.Registration center establishes the corresponding relationship of service B and registered address --- " clothes
Be engaged in B:192.168.30:38082 ".
When servicing A transmission destination service information to registration center, registration center determines service B for target second in incognito
Business, and return to destination address corresponding with service B to service A, then destination address is 192.168.30:38082, wherein
" 192.168.30 " is target ip address information, and " 38082 " are destination port information.A is serviced after generating call request, will be adjusted
It is sent to 192.168.30:38082 with request, Agent components get the call request by monitoring target ip address information.
Agent components are according to the corresponding relationship formerly established --- " 38082:10.129.117:8080 ", the determining and target side message
Corresponding second micro services are ceased for service B, then the call request are sent to service B, so that service B is able to respond the calling and asks
It asks.
It should be noted that for simple description, therefore, it is stated as a series of action groups for embodiment of the method
It closes, but those skilled in the art should understand that, embodiment of that present invention are not limited by the describe sequence of actions, because according to
According to the embodiment of the present invention, some steps may be performed in other sequences or simultaneously.Secondly, those skilled in the art also should
Know, the embodiments described in the specification are all preferred embodiments, and the related movement not necessarily present invention is implemented
Necessary to example.
Referring to Fig. 2, a kind of structural block diagram of service call Installation practice of the invention is shown, the embodiment of the present invention can
To be applied to micro services system, the micro services system includes the first platform and the second platform, and second platform is provided with generation
Manage component;First Platform deployment has the first micro services, and second Platform deployment has the second micro services, second platform
For container cluster;Described device is located at first micro services, can specifically include following module:
Module 201 is obtained, for obtaining and the matched destination address of the second micro services of target;The destination address adapts to
First platform;
Generation module 202, for generating call request;
Sending module 203 for the call request to be sent to the destination address, and is turned by the Agent components
Second micro services of target are sent to, to realize corresponding service call.
In an embodiment of the present invention, the micro services system further includes registration center, and the registration center is used for
Record the registered address that second micro services upload;The acquisition module includes:
Information on services acquisition submodule, for obtaining destination service information;
Information on services sending submodule, for the destination service information to be sent to registration center;The registration center
The mesh is returned for determining the second micro services of target corresponding with the destination service information, and to first micro services
Mark the registered address of the second micro services upload;
Destination address determines submodule, for determining that the registered address that second micro services of target upload is the target
Address.
In an embodiment of the present invention, second micro services are used to send proxy requests to the Agent components;
The Agent components are for generating registered address corresponding with second micro services;
Second micro services are used to send registration request to the registration center;The registration request includes and described
The corresponding registered address of two micro services;The registration center is used to take second micro services using the registered address
Business registration.
In an embodiment of the present invention, second micro services of target are provided with initial address, the initial address
Adapt to second platform;The call request includes the destination address;The destination address includes targeted internet association
Discuss IP address information and destination port information;The IP address information is corresponding with the Agent components;
The Agent components are for obtaining the call request that the target ip address information receives;
The Agent components are for the call request to be sent to and the matched initial address of the destination port information.
In an embodiment of the present invention, the Agent components are HAProxy;
First platform is cluster virtual machine.
For device embodiment, since it is basically similar to the method embodiment, related so being described relatively simple
Place illustrates referring to the part of embodiment of the method.
The embodiment of the invention also discloses a kind of servers, comprising:
One or more processors;With
One or more machine readable medias of instruction are stored thereon with, are executed when by one or more of processors
When, so that the server executes method described in the embodiment of the present invention.
The embodiment of the invention also discloses one or more machine readable medias, are stored thereon with instruction, when by one or
When multiple processors execute, so that the processor executes method described in the embodiment of the present invention.
All the embodiments in this specification are described in a progressive manner, the highlights of each of the examples are with
The difference of other embodiments, the same or similar parts between the embodiments can be referred to each other.
It should be understood by those skilled in the art that, the embodiment of the embodiment of the present invention can provide as method, apparatus or calculate
Machine program product.Therefore, the embodiment of the present invention can be used complete hardware embodiment, complete software embodiment or combine software and
The form of the embodiment of hardware aspect.Moreover, the embodiment of the present invention can be used one or more wherein include computer can
With in the computer-usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) of program code
The form of the computer program product of implementation.
The embodiment of the present invention be referring to according to the method for the embodiment of the present invention, terminal device (system) and computer program
The flowchart and/or the block diagram of product describes.It should be understood that flowchart and/or the block diagram can be realized by computer program instructions
In each flow and/or block and flowchart and/or the block diagram in process and/or box combination.It can provide these
Computer program instructions are set to general purpose computer, special purpose computer, Embedded Processor or other programmable data processing terminals
Standby processor is to generate a machine, so that being held by the processor of computer or other programmable data processing terminal devices
Capable instruction generates for realizing in one or more flows of the flowchart and/or one or more blocks of the block diagram
The device of specified function.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing terminal devices
In computer-readable memory operate in a specific manner, so that instruction stored in the computer readable memory generates packet
The manufacture of command device is included, which realizes in one side of one or more flows of the flowchart and/or block diagram
The function of being specified in frame or multiple boxes.
These computer program instructions can also be loaded into computer or other programmable data processing terminal devices, so that
Series of operation steps are executed on computer or other programmable terminal equipments to generate computer implemented processing, thus
The instruction executed on computer or other programmable terminal equipments is provided for realizing in one or more flows of the flowchart
And/or in one or more blocks of the block diagram specify function the step of.
Although the preferred embodiment of the embodiment of the present invention has been described, once a person skilled in the art knows bases
This creative concept, then additional changes and modifications can be made to these embodiments.So the following claims are intended to be interpreted as
Including preferred embodiment and fall into all change and modification of range of embodiment of the invention.
Finally, it is to be noted that, herein, relational terms such as first and second and the like be used merely to by
One entity or operation are distinguished with another entity or operation, without necessarily requiring or implying these entities or operation
Between there are any actual relationship or orders.Moreover, the terms "include", "comprise" or its any other variant meaning
Covering non-exclusive inclusion, so that process, method, article or terminal device including a series of elements not only wrap
Those elements are included, but also including other elements that are not explicitly listed, or further includes for this process, method, article
Or the element that terminal device is intrinsic.In the absence of more restrictions, being wanted by what sentence "including a ..." limited
Element, it is not excluded that there is also other identical elements in process, method, article or the terminal device for including the element.
Above to a kind of service calling method provided by the present invention and a kind of service call device, detailed Jie has been carried out
It continues, used herein a specific example illustrates the principle and implementation of the invention, and the explanation of above embodiments is only
It is to be used to help understand method and its core concept of the invention;At the same time, for those skilled in the art, according to this hair
Bright thought, there will be changes in the specific implementation manner and application range, in conclusion the content of the present specification should not manage
Solution is limitation of the present invention.
Claims (10)
1. a kind of service calling method, which is characterized in that be applied to micro services system, the micro services system includes the first platform
With the second platform, second platform is provided with Agent components, and second platform is container cluster;First Platform deployment
There are the first micro services, second Platform deployment there are the second micro services;The described method includes:
First micro services obtain and the matched destination address of the second micro services of target;The destination address adapts to described
One platform;
First micro services generate call request;
The call request is sent to the destination address by first micro services, and is forwarded to institute by the Agent components
The second micro services of target are stated, to realize corresponding service call.
2. the method according to claim 1, wherein the micro services system further includes registration center's server,
Registration center's server is used to record the registered address that second micro services upload;First micro services obtain and institute
The step of stating the second micro services of target corresponding destination address, comprising:
First micro services obtain destination service information;
The destination service information is sent to registration center by first micro services;The registration center for it is determining with it is described
Corresponding the second micro services of target of destination service information, and returned in second micro services of target to first micro services
The registered address of biography;
First micro services determine that the registered address that second micro services of target upload is the destination address.
3. according to right to go 2 described in method, which is characterized in that
Second micro services are used to send proxy requests to the Agent components;The Agent components are for generating and described the
The corresponding registered address of two micro services;
Second micro services are used to send registration request to the registration center;The registration request include with it is described second micro-
Service corresponding registered address;The registration center is used to carry out service note to second micro services using the registered address
Volume.
4. according to the method described in claim 2, it is characterized in that, the second micro services of the target are provided with initial address, institute
It states initial address and adapts to second platform;The call request includes the destination address;The destination address includes mesh
Mark internet protocol address information and destination port information;The IP address information is corresponding with the Agent components;
The Agent components are for obtaining the call request that the target ip address information receives;
The Agent components are for the call request to be sent to and the matched initial address of the destination port information.
5. method according to claim 1-4, which is characterized in that
The Agent components are HAProxy;
First platform is cluster virtual machine, and second platform is container cluster.
6. a kind of service call device, which is characterized in that be applied to micro services system, the micro services system includes the first platform
With the second platform, second platform is provided with Agent components;First Platform deployment has the first micro services, and described second is flat
Platform is deployed with the second micro services, and second platform is container cluster;Described device is located at first micro services, described device
Include:
Module is obtained, for obtaining and the matched destination address of the second micro services of target;The destination address adapts to described
One platform;
Generation module, for generating call request;
Sending module for the call request to be sent to the destination address, and is forwarded to institute by the Agent components
The second micro services of target are stated, to realize corresponding service call.
7. device according to claim 6, which is characterized in that the micro services system further includes registration center, the note
Volume center is used to record the registered address that second micro services upload;The acquisition module includes:
Information on services acquisition submodule, for obtaining destination service information;
Information on services sending submodule, for the destination service information to be sent to registration center;The registration center is used for
Determine the second micro services of target corresponding with the destination service information, and to first micro services return target the
The registered address that two micro services upload;
Destination address determines submodule, for determining the registered address of the second micro services of target upload for the target
Location.
8. according to right to go 7 described in device, which is characterized in that
Second micro services are used to send proxy requests to the Agent components;The Agent components are for generating and described the
The corresponding registered address of two micro services;
Second micro services are used to send registration request to the registration center;The registration request include with it is described second micro-
Service corresponding registered address;The registration center is used to carry out service note to second micro services using the registered address
Volume.
9. a kind of server characterized by comprising
One or more processors;With
One or more machine readable medias of instruction are stored thereon with, when being executed by one or more of processors, are made
Obtain the method that the server executes one or more as claimed in claims 1-5.
10. one or more machine readable medias, are stored thereon with instruction, when executed by one or more processors, so that
The method that the processor executes one or more as claimed in claims 1-5.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910533262.7A CN110225131A (en) | 2019-06-19 | 2019-06-19 | A kind of service calling method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910533262.7A CN110225131A (en) | 2019-06-19 | 2019-06-19 | A kind of service calling method and device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN110225131A true CN110225131A (en) | 2019-09-10 |
Family
ID=67813995
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910533262.7A Pending CN110225131A (en) | 2019-06-19 | 2019-06-19 | A kind of service calling method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110225131A (en) |
Cited By (19)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111259227A (en) * | 2020-01-16 | 2020-06-09 | 北京旷视科技有限公司 | Method and apparatus for sharing target retrieval service between multiple retrieval clusters |
CN111443920A (en) * | 2020-03-25 | 2020-07-24 | 北京奇艺世纪科技有限公司 | Frame migration method and device |
CN111917838A (en) * | 2020-07-14 | 2020-11-10 | 浙江大华技术股份有限公司 | Processing method and device based on micro service, storage medium and electronic device |
CN112671882A (en) * | 2020-12-18 | 2021-04-16 | 上海安畅网络科技股份有限公司 | Same-city double-activity system and method based on micro-service |
CN112688977A (en) * | 2019-10-17 | 2021-04-20 | 浙江大搜车软件技术有限公司 | Micro-service communication method and device, electronic equipment and machine-readable storage medium |
CN112698970A (en) * | 2020-12-31 | 2021-04-23 | 北京千方科技股份有限公司 | Service calling method and device for micro-service architecture and computer storage medium |
CN112866395A (en) * | 2020-11-18 | 2021-05-28 | 统信软件技术有限公司 | Service request processing system and method and computing device |
CN112887279A (en) * | 2021-01-13 | 2021-06-01 | 太平金融科技服务(上海)有限公司 | Micro-service calling method and device, computer equipment and storage medium |
CN113220484A (en) * | 2021-05-11 | 2021-08-06 | 上海安畅网络科技股份有限公司 | Micro-service calling method and device, electronic equipment and storage medium |
CN113285995A (en) * | 2021-05-18 | 2021-08-20 | 中国人民解放军陆军工程大学 | SDN-based micro-service request self-adaptive mapping distribution system and method |
CN113472889A (en) * | 2021-07-08 | 2021-10-01 | 上海浦东发展银行股份有限公司 | Scheduling system and method of microservice |
US20210329100A1 (en) * | 2020-04-10 | 2021-10-21 | Oracle International Corporation | System and method for use of remote procedure call with a microservices environment |
CN113542244A (en) * | 2021-07-01 | 2021-10-22 | 京东科技控股股份有限公司 | Method, device, server and system for calling micro-service |
CN113612732A (en) * | 2021-07-06 | 2021-11-05 | 华控清交信息科技(北京)有限公司 | Resource calling method and device and multi-party secure computing system |
CN113630283A (en) * | 2020-05-08 | 2021-11-09 | 网联清算有限公司 | Service link testing method and system |
CN114116265A (en) * | 2022-01-27 | 2022-03-01 | 北京麦颂文化传播有限公司 | Communication method and device among multiple APPs (application) based on Android system |
CN114422602A (en) * | 2021-12-29 | 2022-04-29 | 中国电信股份有限公司 | Method and device for calling micro-service based on K8S cluster, electronic equipment and storage medium |
CN114448686A (en) * | 2022-01-14 | 2022-05-06 | 武汉三江中电科技有限责任公司 | Cross-network communication device and method based on micro-service |
CN115150457A (en) * | 2022-06-28 | 2022-10-04 | 亿咖通(湖北)技术有限公司 | Micro-service management method, vehicle-mounted system and vehicle-mounted equipment |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107612955A (en) * | 2016-07-12 | 2018-01-19 | 深圳市远行科技股份有限公司 | Micro services provide method, apparatus and system |
US20180039565A1 (en) * | 2016-08-05 | 2018-02-08 | International Business Machines Corporation | Automated test input generation for integration testing of microservice-based web applications |
CN109587246A (en) * | 2018-12-06 | 2019-04-05 | 国云科技股份有限公司 | A kind of implementation method of the micro services frame of integrated multiple kinds independent assortment |
CN109639829A (en) * | 2019-01-15 | 2019-04-16 | 腾讯科技(深圳)有限公司 | Communication means, communication unit, service support unit and system based on service |
CN109788040A (en) * | 2018-12-27 | 2019-05-21 | 北京航天智造科技发展有限公司 | Micro services authorize dispatching method and system |
-
2019
- 2019-06-19 CN CN201910533262.7A patent/CN110225131A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107612955A (en) * | 2016-07-12 | 2018-01-19 | 深圳市远行科技股份有限公司 | Micro services provide method, apparatus and system |
US20180039565A1 (en) * | 2016-08-05 | 2018-02-08 | International Business Machines Corporation | Automated test input generation for integration testing of microservice-based web applications |
CN109587246A (en) * | 2018-12-06 | 2019-04-05 | 国云科技股份有限公司 | A kind of implementation method of the micro services frame of integrated multiple kinds independent assortment |
CN109788040A (en) * | 2018-12-27 | 2019-05-21 | 北京航天智造科技发展有限公司 | Micro services authorize dispatching method and system |
CN109639829A (en) * | 2019-01-15 | 2019-04-16 | 腾讯科技(深圳)有限公司 | Communication means, communication unit, service support unit and system based on service |
Cited By (29)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112688977A (en) * | 2019-10-17 | 2021-04-20 | 浙江大搜车软件技术有限公司 | Micro-service communication method and device, electronic equipment and machine-readable storage medium |
CN111259227B (en) * | 2020-01-16 | 2023-11-10 | 北京旷视科技有限公司 | Method and apparatus for sharing a targeted search service among multiple search clusters |
CN111259227A (en) * | 2020-01-16 | 2020-06-09 | 北京旷视科技有限公司 | Method and apparatus for sharing target retrieval service between multiple retrieval clusters |
CN111443920A (en) * | 2020-03-25 | 2020-07-24 | 北京奇艺世纪科技有限公司 | Frame migration method and device |
CN111443920B (en) * | 2020-03-25 | 2023-10-13 | 北京奇艺世纪科技有限公司 | Frame migration method and device |
US20210329100A1 (en) * | 2020-04-10 | 2021-10-21 | Oracle International Corporation | System and method for use of remote procedure call with a microservices environment |
CN113630283B (en) * | 2020-05-08 | 2022-07-05 | 网联清算有限公司 | Service link testing method and system |
CN113630283A (en) * | 2020-05-08 | 2021-11-09 | 网联清算有限公司 | Service link testing method and system |
CN111917838A (en) * | 2020-07-14 | 2020-11-10 | 浙江大华技术股份有限公司 | Processing method and device based on micro service, storage medium and electronic device |
CN111917838B (en) * | 2020-07-14 | 2023-08-29 | 浙江大华技术股份有限公司 | Micro-service-based processing method and device, storage medium and electronic device |
CN112866395B (en) * | 2020-11-18 | 2023-04-07 | 统信软件技术有限公司 | Service request processing system and method and computing device |
CN112866395A (en) * | 2020-11-18 | 2021-05-28 | 统信软件技术有限公司 | Service request processing system and method and computing device |
CN112671882A (en) * | 2020-12-18 | 2021-04-16 | 上海安畅网络科技股份有限公司 | Same-city double-activity system and method based on micro-service |
CN112698970A (en) * | 2020-12-31 | 2021-04-23 | 北京千方科技股份有限公司 | Service calling method and device for micro-service architecture and computer storage medium |
CN112887279B (en) * | 2021-01-13 | 2023-03-10 | 太平金融科技服务(上海)有限公司 | Micro-service calling method and device, computer equipment and storage medium |
CN112887279A (en) * | 2021-01-13 | 2021-06-01 | 太平金融科技服务(上海)有限公司 | Micro-service calling method and device, computer equipment and storage medium |
CN113220484A (en) * | 2021-05-11 | 2021-08-06 | 上海安畅网络科技股份有限公司 | Micro-service calling method and device, electronic equipment and storage medium |
CN113285995A (en) * | 2021-05-18 | 2021-08-20 | 中国人民解放军陆军工程大学 | SDN-based micro-service request self-adaptive mapping distribution system and method |
CN113285995B (en) * | 2021-05-18 | 2023-06-13 | 中国人民解放军陆军工程大学 | Micro-service request self-adaptive mapping distribution system and method based on SDN |
CN113542244B (en) * | 2021-07-01 | 2023-08-08 | 京东科技控股股份有限公司 | Micro-service calling method, device, server and system |
CN113542244A (en) * | 2021-07-01 | 2021-10-22 | 京东科技控股股份有限公司 | Method, device, server and system for calling micro-service |
CN113612732A (en) * | 2021-07-06 | 2021-11-05 | 华控清交信息科技(北京)有限公司 | Resource calling method and device and multi-party secure computing system |
CN113612732B (en) * | 2021-07-06 | 2023-12-26 | 华控清交信息科技(北京)有限公司 | Resource calling method and device and multiparty secure computing system |
CN113472889A (en) * | 2021-07-08 | 2021-10-01 | 上海浦东发展银行股份有限公司 | Scheduling system and method of microservice |
CN114422602A (en) * | 2021-12-29 | 2022-04-29 | 中国电信股份有限公司 | Method and device for calling micro-service based on K8S cluster, electronic equipment and storage medium |
CN114448686B (en) * | 2022-01-14 | 2024-01-05 | 武汉三江中电科技有限责任公司 | Cross-network communication device and method based on micro-service |
CN114448686A (en) * | 2022-01-14 | 2022-05-06 | 武汉三江中电科技有限责任公司 | Cross-network communication device and method based on micro-service |
CN114116265A (en) * | 2022-01-27 | 2022-03-01 | 北京麦颂文化传播有限公司 | Communication method and device among multiple APPs (application) based on Android system |
CN115150457A (en) * | 2022-06-28 | 2022-10-04 | 亿咖通(湖北)技术有限公司 | Micro-service management method, vehicle-mounted system and vehicle-mounted equipment |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110225131A (en) | A kind of service calling method and device | |
CN108737467B (en) | Server log viewing method, device and system | |
CN105791315B (en) | A kind of udp protocol acceleration method and system | |
JP5805934B2 (en) | Distributed control method and apparatus using URL | |
WO2018107387A1 (en) | Data transmission method, device, system, electronic device, and computer program product | |
CN107463453B (en) | Method, device, equipment and storage medium for communication between different applications of same terminal | |
CN106487870B (en) | Action execution architecture for virtualized technology components | |
CN104618449A (en) | Web singe-point login implementing method and device | |
CN110851468A (en) | Method and device for making simulation response to test request of client | |
CN112565406B (en) | Gray release method, gray release system and electronic equipment | |
CN104639555B (en) | request processing method, system and device | |
US20190335012A1 (en) | Systems and methods for determining a destination location for transmission of packetized data in a network system based on an application server attribute | |
CN109450976A (en) | A kind of method and device of the access of operation system | |
CN109104368B (en) | Connection request method, device, server and computer readable storage medium | |
CN108833565A (en) | A kind of method, apparatus of monitoring server, server and storage medium | |
CN110377440A (en) | Information processing method and device | |
CN111638891A (en) | Equipment upgrading method and device, terminal equipment and storage medium | |
CN108733527B (en) | System, method and apparatus for testing server functionality | |
CN110417905B (en) | Contract issuing method, device, equipment and union chain system | |
CN109471713B (en) | Method and device for inquiring information | |
CN113778499B (en) | Method, apparatus, device and computer readable medium for publishing services | |
US20050193119A1 (en) | Method, system and program product for resolving prerequisites for a client device in an open service gateway initiative (OSGi) framework | |
CN114513552A (en) | Data processing method, device, equipment and storage medium | |
CN109327530A (en) | A kind of information processing method, device, electronic equipment and storage medium | |
CN108900603A (en) | A kind of server discovery methods, devices and systems |
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 | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190910 |