CN109547515A - A kind of service calling method and relevant device - Google Patents

A kind of service calling method and relevant device Download PDF

Info

Publication number
CN109547515A
CN109547515A CN201710865492.4A CN201710865492A CN109547515A CN 109547515 A CN109547515 A CN 109547515A CN 201710865492 A CN201710865492 A CN 201710865492A CN 109547515 A CN109547515 A CN 109547515A
Authority
CN
China
Prior art keywords
service
equipment
network delay
providing device
service providing
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201710865492.4A
Other languages
Chinese (zh)
Inventor
朱佳墩
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Alibaba Group Holding Ltd
Original Assignee
Alibaba Group Holding Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Alibaba Group Holding Ltd filed Critical Alibaba Group Holding Ltd
Priority to CN201710865492.4A priority Critical patent/CN109547515A/en
Publication of CN109547515A publication Critical patent/CN109547515A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/60Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/60Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources
    • H04L67/62Establishing a time schedule for servicing the requests

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer And Data Communications (AREA)

Abstract

The embodiment of the invention provides a kind of service calling method and relevant devices, the network delay between the first equipment and at least one service providing device can be obtained, according to the network delay of acquisition, target device is determined from the corresponding service providing device of each network delay, and the service invocation request of acquisition is sent to the target device.The present invention can obtain the network delay of equipment room first before sending service invocation request, and the service invocation request service providing device to be sent is selected according to network delay, therefore, service invocation request can be sent to the lesser service providing device of network delay by the present invention, service invocation request is timely responded to, ensure that service can call required service using equipment in time.

Description

A kind of service calling method and relevant device
Technical field
The present invention relates to technical field of service calling, more particularly to a kind of service calling method and relevant device.
Background technique
With the development of science and technology, the function of electronic equipment is also more and more, the partial function of electronic equipment is needed when realizing The service for calling service providing device to provide.
Cause electronic equipment that the service providing device can not be called to provide since service providing device is collapsed in order to prevent Service, service providing device often mostly disposing.Existing service call technology is chosen frequently with " local first " principle and is taken Business provides equipment and is called, it may be assumed that when certain electronic equipment needs to call service, disposes first in the electronic equipment location Service providing device send service invocation request, when the electronic equipment location deployment service providing device for a long time do not ring Should service invocation request when, the electronic equipment again to other area deployment service providing devices send service invocation request.
Since the network state between the service providing device and electronic equipment of various regions deployment may often change, This " local first " principle may cause after electronic equipment sends service invocation request can not obtain service providing device in time The response of return, so that electronic equipment can not call required service in time.
Summary of the invention
The embodiment of the present invention is designed to provide a kind of service calling method and relevant device, so that electronic equipment can be with Service needed for calling in time.Specific technical solution is as follows:
A kind of service calling method is applied in the first equipment, first equipment and at least two service providing devices Communication connection, which comprises
Obtain the network delay between first equipment and at least one service providing device;
According to the network delay of acquisition, target device is determined from the corresponding service providing device of each network delay;
The service invocation request of acquisition is sent to the target device.
Optionally, the network delay obtained between first equipment and at least one service providing device, comprising:
According to preset test period, the service offer where at least one service that need to be used using equipment service is set Standby to carry out network delay test, the service where obtaining at least one service that the service need to be used using equipment provides The corresponding network delay of equipment;
The network delay according to acquisition determines target device from the corresponding service providing device of each network delay, Include:
After obtaining service invocation request, the determining network obtained with current time recent network delay test prolongs The corresponding network delay of service providing device in late where the requested service of the service invocation request;
The corresponding service providing device of network delay the smallest in identified network delay is determined as target device.
Optionally, first equipment is that service uses equipment, or, the service providing device passes through first equipment It is communicated to connect with service using equipment.
Optionally, to the network delay test process of any service providing device, comprising:
Delayed test request is sent to the test interface of the service providing device;
Receive the response of service providing device return;
Being determined according to the time difference between the sending instant of delayed test request and the time of reception of the response should The corresponding network delay of service providing device.
A kind of service calling method is applied in service providing device, and the service providing device and service use equipment Communication connection, which comprises
It obtains the service and uses the network delay between equipment and the service providing device;
The service is sent using equipment so that the service uses equipment net based on the received by the network delay Network delay determines target device from the corresponding service providing device of received network delay and is sent to service invocation request The target device.
A kind of electronic equipment, the electronic equipment include: processor and communication interface,
The electronic equipment is communicated to connect by the communication interface and at least two service providing devices;
The processor obtains the network delay between the electronic equipment and at least one service providing device, according to acquisition Network delay, from the corresponding service providing device of each network delay determine target device, by the service invocation request of acquisition It is sent to the target device.
Optionally, the processor is according to preset test period, at least one clothes that need to be used using equipment service Service providing device where business carries out network delay test, obtains at least one that the service need to be used using equipment The corresponding network delay of service providing device where servicing;
The processor is determining to obtain with current time recent network delay test after obtaining service invocation request The corresponding network delay of service providing device in the network delay obtained where the requested service of the service invocation request;
The corresponding service providing device of network delay the smallest in identified network delay is determined as by the processor Target device.
Optionally, the electronic equipment is that service uses equipment, or, the service providing device passes through the electronic equipment It is communicated to connect with service using equipment.
Optionally, when the processor tests the network delay of any service providing device, the processor to The test interface of the service providing device sends delayed test request, the response of service providing device return is received, according to institute The time difference stated between the sending instant of delayed test request and the time of reception of the response determines the service providing device pair The network delay answered.
A kind of service providing device, comprising: processor and communication interface,
The service providing device is communicated to connect with service using equipment by the communication interface;
The processor obtains the service using the network delay between equipment and the service providing device, by the net Network delay is sent to the service using equipment so that the service uses equipment network delay based on the received, from received net Network postpones to determine target device in corresponding service providing device and service invocation request is sent to the target device.
A kind of service calling system, comprising: the service providing device kimonos of communication connection is make sure with equipment,
The service is obtained the service using equipment and is prolonged using the network between equipment and at least one service providing device Late;
The service uses equipment according to the network delay of acquisition, from the corresponding service providing device of each network delay really Set the goal equipment;
Service invocation request is sent to the target device using equipment by the service.
A kind of service calling system, comprising: the service providing device kimonos of communication connection is make sure with equipment,
The service providing device obtains the service and uses the network delay between equipment and the service providing device;
The service providing device sends the service using equipment so that the service uses for the network delay Equipment network delay based on the received, determines target device and will clothes from the corresponding service providing device of received network delay Business call request is sent to the target device.
A kind of service calling system, comprising: service providing device, intermediary device kimonos are make sure with equipment, the clothes Business is provided equipment and is communicated to connect with the service using equipment by the intermediary device,
The network that the intermediary device obtains between the intermediary device and at least one service providing device prolongs Late;
The intermediary device is according to the network delay of acquisition, from the corresponding service providing device of each network delay really Set the goal equipment;
The service of acquisition is sent to described by the intermediary device using the service invocation request that equipment is sent Target device.
A kind of service calling method and relevant device provided in an embodiment of the present invention, can obtain the first equipment and at least one Network delay between a service providing device, according to the network delay of acquisition, from the corresponding service providing device of each network delay The service invocation request of acquisition is sent to the target device by middle determining target device.The present invention can be adjusted in the service of transmission With request before first obtain equipment room network delay, and according to network delay select the service invocation request service to be sent Equipment is provided, therefore, service invocation request can be sent to the lesser service providing device of network delay by the present invention, so that clothes Business call request can be timely responded to, and ensure that service can call required service using equipment in time.
Certainly, it implements any of the products of the present invention or method must be not necessarily required to reach all the above excellent simultaneously Point.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this Some embodiments of invention for those of ordinary skill in the art without creative efforts, can be with It obtains other drawings based on these drawings.
Fig. 1 is the communication scheme of the first equipment and service providing device provided in an embodiment of the present invention;
Fig. 2 is a kind of flow chart of service calling method provided in an embodiment of the present invention;
Fig. 3 is the flow chart of network delay test process provided in an embodiment of the present invention;
Fig. 4 is that the first equipment provided in an embodiment of the present invention and service providing device, service are illustrated using the communication of equipment Figure;
Fig. 5 is the flow chart of another service calling method provided in an embodiment of the present invention;
Fig. 6 is the flow chart of another service calling method provided in an embodiment of the present invention;
Fig. 7 is the flow chart of another service calling method provided in an embodiment of the present invention;
Fig. 8 is the flow chart of another service calling method provided in an embodiment of the present invention;
Fig. 9 is the structural schematic diagram of a kind of electronic equipment provided in an embodiment of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other Embodiment shall fall within the protection scope of the present invention.
The embodiment of the invention provides a kind of service calling methods applied in the first equipment and one kind to be applied to service Service calling method in equipment is provided.The service calling method being applied in the first equipment is carried out in conjunction with attached drawing first below Illustrate:
A kind of service calling method provided in an embodiment of the present invention can be applied in the first equipment 001 shown in FIG. 1, First equipment 001 and at least two service providing devices 002 communicate to connect, as shown in Fig. 2, this method may include:
Network delay between S110, acquisition first equipment and at least one service providing device;
Wherein, service providing device 002 can be server, and service providing device 002 can be virtual unit or entity Equipment.Optionally, the geographic area that each service providing device 002 is disposed can be identical or different.Wherein, service providing device The service of offer can there are many, as service providing device pass through application programming interface (API, Application Programming Interface) a variety of services etc. are provided.Wherein, service providing device can be API server.
Specifically, step S110 can be specifically included:
According to preset test period, the service offer where at least one service that need to be used using equipment service is set Standby to carry out network delay test, the service where obtaining at least one service that the service need to be used using equipment provides The corresponding network delay of equipment.
Since network state may often change, the present invention can carry out network delay test repeatedly with right in time Network delay between first equipment and service providing device is updated.
In practical applications, due to carrying out network delay test according to preset test period, the present invention can be obtained Network delay under different moments.Optionally, the present invention need to only be saved obtains with current time recent network delay test The network delay obtained, the network delay obtained for network delay test before can be deleted.Certainly, the present invention can also To save the network delay of all-network delayed test acquisition.
Specifically, service providing device may include one for carrying out the test interface of network delay test.
Optionally, as shown in figure 3, network delay test process to any service providing device, can specifically include step Rapid S111 to step S113:
S111, delayed test request is sent to the test interface of the service providing device;
Wherein, the network address or the service providing device of the service providing device can be preserved in the first equipment 001 Test interface network address.The network address of the first equipment 001 can be only carried in delayed test request, in this way, clothes It, can be to the network address in delayed test request after business offer equipment receives delayed test request by test interface Return to a response.Certainly, other information can also be carried in delayed test request, such as: delayed test mark, the first equipment 001 device identification etc..
S112, the response for receiving service providing device return;
It wherein, can only include the mark for sending the service providing device of the response in the response that service providing device returns Information.In this way, the first equipment can be according to this in response to determining which the equipment for sending the response is after receiving the response A service providing device.
S113, according to the delayed test request sending instant and the response the time of reception between time difference it is true The fixed corresponding network delay of the service providing device.
S120, the network delay according to acquisition determine target device from the corresponding service providing device of each network delay;
Wherein, the first equipment 001 can use equipment, such as client device for service, or, as shown in figure 4, service provides Equipment 002 is communicated to connect with service using equipment 003 by the first equipment 001, and the first equipment 001 is that service uses equipment at this time Intermediary device between 003 and service providing device 002.Optionally, the first equipment 001 can be serviced with one or more It is communicated to connect using equipment 003.
The first equipment 001 be service using equipment when, needed for the service called may have it is multiple, in practical application In, the first equipment 001 can obtain first equipment 001 respectively with can provide all possible clothes called of first equipment 001 Network delay between each service providing device 002 of at least one of business service.When the first equipment 001 needs to call certain service When, it is only necessary to it is provided according to the corresponding network delay of each service providing device for providing the service from each service for providing the service Target device is determined in equipment.Optionally, the first equipment 001 can determine all possibility of the first equipment after initialization The service of calling and each service that can provide at least one of all possible services called of first equipment service provide Equipment.Further, the first equipment 001 can also determine after initialization can provide all possible services called of first equipment At least one of service the information such as the network address of each service providing device.
When the first equipment 001 is that service uses the intermediary device between equipment 003 and service providing device 002, First equipment 001 can determine the services that each service that it is communicated to connect is called using all possibility of equipment 003, and further Determine provide these service at least one of service providing device, the first equipment 001 can obtain first equipment 001 with Network delay between service providing device determined by each.When the first equipment 001 obtains the clothes that certain service is sent using equipment 003 When business call request, it can determine and the corresponding net of service providing device of the service of the service invocation request institute request call is provided Network delay, according to determining network delay from provide the service invocation request institute request call service each service providing device Middle determining target device.
Specifically, step S120 may include:
After obtaining service invocation request, the determining network obtained with current time recent network delay test prolongs The corresponding network delay of service providing device in late where the requested service of the service invocation request;
The corresponding service providing device of network delay the smallest in identified network delay is determined as target device.
The corresponding service providing device of the smallest network delay, which is determined as target device, can make service invocation request The response that service invocation request is quickly obtained after target device is sent to call required service in time.
S130, the service invocation request of acquisition is sent to the target device.
Wherein, after service invocation request being sent to service providing device, service is using equipment from service providing device The specific technical solution for carrying out service call is the prior art, is repeated no more.
A kind of service calling method provided in an embodiment of the present invention, can obtain the first equipment and at least one service provides The network delay of equipment room determines target according to the network delay of acquisition from the corresponding service providing device of each network delay The service invocation request of acquisition is sent to the target device by equipment.The present invention can be first before sending service invocation request The network delay of equipment room is first obtained, and the service invocation request service providing device to be sent is selected according to network delay, Therefore, service invocation request can be sent to the lesser service providing device of network delay by the present invention, so that service call is asked Asking can be timely responded to, and ensure that service can call required service using equipment in time.
The scheme for being applied to the first equipment to the present invention below is illustrated:
When the first equipment is that service uses equipment, which is mentioned with service providing device 1 and service respectively using equipment It is communicated to connect for equipment 2, as shown in figure 5, service calling method of the invention may include:
S101, service send delayed test request 1 to the test interface of service providing device 1 using equipment;
S102, service send delayed test request 2 to the test interface of service providing device 2 using equipment;
Wherein, step S101 and step S102 simultaneously or can be executed successively, and the present invention is it is not limited here.
S103,1 returning response 1 of service providing device to service use equipment;
S104, service using equipment according to delayed test request 1 sending instant and respond 1 the time of reception between when Between difference determine the corresponding network delay 1 of service providing device 1;
S105,2 returning response 2 of service providing device to service use equipment;
S106, service using equipment according to delayed test request 2 sending instant and respond 2 the time of reception between when Between difference determine the corresponding network delay 2 of service providing device 2;
Wherein, the execution sequencing of step S103 and step S105 with service providing device returning response at the time of have It closes, is not limited in shown in fig. 5 a kind of executing sequence.
In practical applications, step S101 to step S106 can be performed a plurality of times according to preset test period to obtain in time It obtains newest network delay and target device is determined according to newest network delay.For convenience, it is carried out in method shown in Fig. 5 It generates after the network delay test of one test period and obtains service invocation request.
S107, service generate and obtain service invocation request using equipment, determine that providing the service invocation request is requested Service equipment be service providing device 1 and service providing device 2;
S108, when network delay 2 is less than network delay 1, service determines that target device provides for service using equipment and sets Standby 2;
The service invocation request of acquisition is sent to service providing device 2 using equipment by S109, service.
When the first equipment is that service uses the intermediary device between equipment and service providing device, the intermediate node Equipment is make sure and is communicated to connect with equipment with service providing device 1,2 kimonos of service providing device respectively, as shown in fig. 6, of the invention Service calling method may include:
S201, intermediary device send delayed test request 1 to the test interface of service providing device 1;
S202, intermediary device send delayed test request 2 to the test interface of service providing device 2;
Wherein, step S201 and step S202 simultaneously or can be executed successively, and the present invention is it is not limited here.
S203,1 returning response 1 of service providing device to intermediary device;
S204, intermediary device according to delayed test request 1 sending instant and respond 1 the time of reception between when Between difference determine the corresponding network delay 1 of service providing device 1;
S205,2 returning response 2 of service providing device to intermediary device;
S206, intermediary device according to delayed test request 2 sending instant and respond 2 the time of reception between when Between difference determine the corresponding network delay 2 of service providing device 2;
Wherein, the execution sequencing of step S203 and step S205 with service providing device returning response at the time of have It closes, is not limited in shown in fig. 6 a kind of executing sequence.
S207, service generate service invocation request using equipment;
The service invocation request of generation is sent to intermediary device using equipment by S208, service;
S209, intermediary device obtain the service invocation request that service is sent using equipment, determine and provide the service tune It is service providing device 1 and service providing device 2 with the equipment for requesting requested service;
S210, when network delay 2 be less than network delay 1 when, intermediary device determines that target device provides for service and sets Standby 2;
The service invocation request of acquisition is sent to service providing device 2 by S211, intermediary device.
The service calling method being applied in service providing device is illustrated with reference to the accompanying drawing:
Another kind service calling method provided in an embodiment of the present invention, is applied in service providing device, the service mentions It is communicated to connect with service using equipment for equipment, as shown with 7, this method may include:
S410, described service using the network delay between equipment and the service providing device is obtained;
Wherein, service providing device can obtain the network address that service uses equipment.
Optionally, step S410 can be according to preset test period, to using the service providing device to provide at least A kind of service of service carries out network delay test using equipment, obtains at least one service and is prolonged using the corresponding network of equipment Late.
Specifically, service providing device may include: using the process that equipment carries out network delay test to any service
Delayed test is sent using equipment to the service to instruct;
Receive the response that the service uses equipment to return;
Being determined according to the time difference between the sending instant of delayed test instruction and the time of reception of the response should Service uses the corresponding network delay of equipment.
The network address for sending the service providing device of delayed test instruction can be only carried in delayed test instruction, In this way, can be returned to the network address in delayed test instruction after service receives delayed test instruction using equipment One response.Certainly, other information can also be carried in delayed test instruction, such as: delayed test mark, service providing device Device identification etc..
Wherein, the mark of equipment can be only used in the response that service is returned using equipment including sending the service of the response Information.In this way, service providing device can be according to this in response to determining that the equipment for sending the response is after receiving the response Which service uses equipment.
Wherein, service providing device can use equipment to service by the test interface for carrying out network delay test It sends delayed test and instructs and receive the response that service is returned using equipment.
S420, the service is sent using equipment by the network delay so that the service uses equipment according to reception Network delay, determine and target device and send out service invocation request from the corresponding service providing device of received network delay It send to the target device.
Specifically, step S420, which can send the network delay of acquisition to service corresponding with network delay, uses equipment In.Service is determined target device from service providing device according to network delay using equipment and is sent to service invocation request The scheme of the target device illustrates that details are not described herein in the service calling method embodiment for being applied to the first equipment.
A kind of service calling method provided in an embodiment of the present invention can obtain service and use equipment and service providing device Between network delay, send service using equipment for network delay so that service is using equipment network delay based on the received, Target device is determined from the corresponding service providing device of received network delay and is sent to the service invocation request obtained Target device.Therefore, the present invention can make service that service invocation request are sent to the lesser clothes of network delay using equipment Business provides equipment, and service invocation request is timely responded to, ensure that electronic equipment can call required clothes in time Business.
The scheme for being applied to service providing device to the present invention below is illustrated:
Service is communicated to connect with service providing device 1 and service providing device 2 respectively using equipment, as shown in figure 8, this hair Bright service calling method may include:
S301, service providing device 1 send delayed test instruction 1 using equipment to service;
S302, service providing device 2 send delayed test instruction 2 using equipment to service;
It is instructed specifically, service providing device can send delayed test using equipment to service by test interface.
Wherein, step S301 and step S302 simultaneously or can be executed successively, and the present invention is it is not limited here.
S303, service use equipment returning response 1 to service providing device 1;
S304, service providing device 1 are according between the sending instant of delayed test request 1 and the time of reception of response 1 Time difference determines that service providing device 1 and service use the network delay 1 between equipment;
S305, service providing device 1 send network delay 1 using equipment to service;
S306, service use equipment returning response 2 to service providing device 2;
S307, service providing device 2 are according between the sending instant of delayed test request 2 and the time of reception of response 2 Time difference determines that service providing device 2 and service use the network delay 2 between equipment;
S308, service providing device 2 send network delay 2 using equipment to service;
Wherein, the execution sequencing of step S303 and step S306 has at the time of service using equipment returning response It closes, is not limited in shown in Fig. 8 a kind of executing sequence.
S309, service generate and obtain service invocation request using equipment, determine that providing the service invocation request is requested Service equipment be service providing device 1 and service providing device 2;
S310, when network delay 2 is less than network delay 1, service determines that target device provides for service using equipment and sets Standby 2;
The service invocation request of acquisition is sent to service providing device 2 using equipment by S311, service.
Corresponding with above method embodiment, the present invention also provides relevant devices, specifically, the present invention provides electronics Equipment, service providing device and service calling system.
It is illustrated separately below:
As shown in figure 9, a kind of electronic equipment provided in an embodiment of the present invention, comprising: processor and communication interface,
The electronic equipment is communicated to connect by the communication interface and at least two service providing devices;
The processor obtains the network delay between the electronic equipment and at least one service providing device, according to acquisition Network delay, from the corresponding service providing device of each network delay determine target device, by the service invocation request of acquisition It is sent to the target device.
Specifically, the processor can be according to preset test period, at least one that service need to be used using equipment Kind service where service providing device carry out network delay test, obtain it is described service using equipment need to use it is described at least A kind of service providing device corresponding network delay where service.
Specifically, the processor can be after obtaining service invocation request, determining and current time recent net Service providing device in the network delay that network delayed test obtains where the requested service of the service invocation request is corresponding Network delay;Further, the corresponding service of network delay the smallest in identified network delay is provided and is set by the processor It is standby to be determined as target device.
Wherein, the electronic equipment can use equipment for service, or, the service providing device is set by the electronics It is standby to be communicated to connect with service using equipment.
Optionally, when the processor tests the network delay of any service providing device, the processor can To send delayed test request to the test interface of the service providing device, the response of service providing device return, root are received Determine that service offer is set according to the time difference between the sending instant of delayed test request and the time of reception of the response Standby corresponding network delay.
It may include: processor and communication interface the embodiment of the invention also provides a kind of service providing device,
The service providing device is communicated to connect with service using equipment by the communication interface;
The processor obtains the service using the network delay between equipment and the service providing device, by the network Delay is sent to the service using equipment so that the service uses equipment network delay based on the received, from received network Postpone to determine target device in corresponding service providing device and service invocation request is sent to the target device.
The embodiment of the invention also provides a kind of service calling systems, may include: the service providing device of communication connection Kimonos is make sure with equipment,
The service is obtained the service using equipment and is prolonged using the network between equipment and at least one service providing device Late;
The service uses equipment according to the network delay of acquisition, from the corresponding service providing device of each network delay really Set the goal equipment;
Service invocation request is sent to the target device using equipment by the service.
It may include: that the service offer of communication connection is set the embodiment of the invention also provides another service calling system Standby kimonos is make sure with equipment,
The service providing device obtains the service and uses the network delay between equipment and the service providing device;
The service providing device sends the service using equipment so that the service uses for the network delay Equipment network delay based on the received, determines target device and will clothes from the corresponding service providing device of received network delay Business call request is sent to the target device.
The embodiment of the invention also provides another service calling systems, may include: service providing device, intermediate node Equipment kimonos is make sure with equipment, and the service providing device is communicated with the service using equipment by the intermediary device Connection,
The network that the intermediary device obtains between the intermediary device and at least one service providing device prolongs Late;
The intermediary device is according to the network delay of acquisition, from the corresponding service providing device of each network delay really Set the goal equipment;
The service of acquisition is sent to described by the intermediary device using the service invocation request that equipment is sent Target device.
Above equipment provided in an embodiment of the present invention and system can obtain the corresponding network delay of service providing device, Target device is determined from service providing device according to network delay and service invocation request is sent to target device.The present invention Service invocation request is timely responded to, ensure that service can call required service using equipment in time.
It should be noted that, in this document, relational terms such as first and second and the like are used merely to a reality Body or operation are distinguished with another entity or operation, are deposited without necessarily requiring or implying between these entities or operation In any actual relationship or order or sequence.Moreover, the terms "include", "comprise" or its any other variant are intended to Non-exclusive inclusion, so that the process, method, article or equipment including a series of elements is not only wanted including those Element, but also including other elements that are not explicitly listed, or further include for this process, method, article or equipment Intrinsic element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that There is also other identical elements in process, method, article or equipment including the element.
Each embodiment in this specification is all made of relevant mode and describes, same and similar portion between each embodiment Dividing may refer to each other, and each embodiment focuses on the differences from other embodiments.Especially for device and For system embodiment, since it is substantially similar to the method embodiment, so being described relatively simple, related place is referring to method The part of embodiment illustrates.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the scope of the present invention.It is all Any modification, equivalent replacement, improvement and so within the spirit and principles in the present invention, are all contained in protection scope of the present invention It is interior.

Claims (13)

1. a kind of service calling method, which is characterized in that be applied in the first equipment, first equipment and at least two services Equipment communication connection is provided, which comprises
Obtain the network delay between first equipment and at least one service providing device;
According to the network delay of acquisition, target device is determined from the corresponding service providing device of each network delay;
The service invocation request of acquisition is sent to the target device.
2. the method according to claim 1, wherein
The network delay obtained between first equipment and at least one service providing device, comprising:
According to preset test period, service providing device where at least one service that need to be used using equipment service into The test of row network delay obtains the service providing device where at least one service that the service uses equipment that need to use Corresponding network delay;
The network delay according to acquisition determines target device from the corresponding service providing device of each network delay, comprising:
After obtaining service invocation request, in the determining network delay obtained with current time recent network delay test The corresponding network delay of service providing device where the requested service of the service invocation request;
The corresponding service providing device of network delay the smallest in identified network delay is determined as target device.
3. the method according to claim 1, wherein first equipment is that service uses equipment, or, the clothes Business is provided equipment and is communicated to connect with service using equipment by first equipment.
4. according to the method in claim 2 or 3, which is characterized in that test the network delay of any service providing device Process, comprising:
Delayed test request is sent to the test interface of the service providing device;
Receive the response of service providing device return;
The service is determined according to the time difference between the sending instant of delayed test request and the time of reception of the response There is provided equipment corresponding network delay.
5. a kind of service calling method, which is characterized in that be applied in service providing device, the service providing device and service It is communicated to connect using equipment, which comprises
It obtains the service and uses the network delay between equipment and the service providing device;
Sending the service using equipment for the network delay, network prolongs based on the received so that the service is using equipment Late, target device is determined from the corresponding service providing device of received network delay and is sent to service invocation request described Target device.
6. a kind of electronic equipment, which is characterized in that the electronic equipment includes: processor and communication interface,
The electronic equipment is communicated to connect by the communication interface and at least two service providing devices;
The processor obtains the network delay between the electronic equipment and at least one service providing device, according to the net of acquisition Network delay, determines target device from the corresponding service providing device of each network delay, and the service invocation request of acquisition is sent To the target device.
7. electronic equipment according to claim 6, which is characterized in that
Service of the processor according to preset test period, where at least one service for using equipment that need to use service Equipment is provided and carries out network delay test, obtains the clothes where at least one service that the service uses equipment that need to use Business provides equipment corresponding network delay;
The processor is determining to test acquisition with current time recent network delay after obtaining service invocation request The corresponding network delay of service providing device in network delay where the requested service of the service invocation request;
The corresponding service providing device of network delay the smallest in identified network delay is determined as target by the processor Equipment.
8. electronic equipment according to claim 6, which is characterized in that the electronic equipment is that service uses equipment, or, institute It states service providing device and is communicated to connect with service using equipment by the electronic equipment.
9. electronic equipment according to claim 7 or 8, which is characterized in that the processor is to any service providing device Network delay when being tested, the processor sends delayed test request to the test interface of the service providing device, connects The response for receiving service providing device return, according to the time of reception of the sending instant of delayed test request and the response Between time difference determine the corresponding network delay of the service providing device.
10. a kind of service providing device characterized by comprising processor and communication interface,
The service providing device is communicated to connect with service using equipment by the communication interface;
The processor obtains the service using the network delay between equipment and the service providing device, and the network is prolonged It is tardy to be sent to the service using equipment so that the service is prolonged using equipment network delay based on the received from received network Target device is determined in slow corresponding service providing device and service invocation request is sent to the target device.
11. a kind of service calling system characterized by comprising the service providing device kimonos of communication connection is make sure with equipment,
The service obtains the service using equipment and uses the network delay between equipment and at least one service providing device;
The service, according to the network delay of acquisition, determines mesh using equipment from the corresponding service providing device of each network delay Marking device;
Service invocation request is sent to the target device using equipment by the service.
12. a kind of service calling system characterized by comprising the service providing device kimonos of communication connection is make sure with equipment,
The service providing device obtains the service and uses the network delay between equipment and the service providing device;
The service providing device sends the service using equipment so that the service uses equipment for the network delay Network delay based on the received determines target device from the corresponding service providing device of received network delay and adjusts service The target device is sent to request.
13. a kind of service calling system characterized by comprising service providing device, intermediary device kimonos are make sure with setting Standby, the service providing device is communicated to connect with the service using equipment by the intermediary device,
The intermediary device obtains the network delay between the intermediary device and at least one service providing device;
The intermediary device determines mesh according to the network delay of acquisition from the corresponding service providing device of each network delay Marking device;
The service of acquisition is sent to the target using the service invocation request that equipment is sent by the intermediary device Equipment.
CN201710865492.4A 2017-09-22 2017-09-22 A kind of service calling method and relevant device Pending CN109547515A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710865492.4A CN109547515A (en) 2017-09-22 2017-09-22 A kind of service calling method and relevant device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710865492.4A CN109547515A (en) 2017-09-22 2017-09-22 A kind of service calling method and relevant device

Publications (1)

Publication Number Publication Date
CN109547515A true CN109547515A (en) 2019-03-29

Family

ID=65828348

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710865492.4A Pending CN109547515A (en) 2017-09-22 2017-09-22 A kind of service calling method and relevant device

Country Status (1)

Country Link
CN (1) CN109547515A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112104682A (en) * 2019-06-18 2020-12-18 上海达龙信息科技有限公司 Intelligent distribution method and system for cloud desktop server, storage medium and central control server
CN114553881A (en) * 2022-01-07 2022-05-27 优刻得科技股份有限公司 Multi-data center flow scheduling method and system

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060271700A1 (en) * 2005-05-24 2006-11-30 Fujitsu Limited Record medium with a load distribution program recorded thereon, load distribution method, and load distribution apparatus
CN101695057A (en) * 2009-10-20 2010-04-14 中兴通讯股份有限公司 Method and equipment for sending multimedia message and domain name resolution server
CN104780212A (en) * 2015-04-14 2015-07-15 天脉聚源(北京)教育科技有限公司 Method for selecting server with highest connection speed and terminal
CN106302434A (en) * 2016-08-11 2017-01-04 腾讯科技(深圳)有限公司 Server adaptation method, device and system
CN106888164A (en) * 2015-12-15 2017-06-23 阿里巴巴集团控股有限公司 Business datum method for routing and device under being lived a kind of strange land more

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060271700A1 (en) * 2005-05-24 2006-11-30 Fujitsu Limited Record medium with a load distribution program recorded thereon, load distribution method, and load distribution apparatus
CN101695057A (en) * 2009-10-20 2010-04-14 中兴通讯股份有限公司 Method and equipment for sending multimedia message and domain name resolution server
CN104780212A (en) * 2015-04-14 2015-07-15 天脉聚源(北京)教育科技有限公司 Method for selecting server with highest connection speed and terminal
CN106888164A (en) * 2015-12-15 2017-06-23 阿里巴巴集团控股有限公司 Business datum method for routing and device under being lived a kind of strange land more
CN106302434A (en) * 2016-08-11 2017-01-04 腾讯科技(深圳)有限公司 Server adaptation method, device and system

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112104682A (en) * 2019-06-18 2020-12-18 上海达龙信息科技有限公司 Intelligent distribution method and system for cloud desktop server, storage medium and central control server
CN114553881A (en) * 2022-01-07 2022-05-27 优刻得科技股份有限公司 Multi-data center flow scheduling method and system
CN114553881B (en) * 2022-01-07 2024-04-02 优刻得科技股份有限公司 Multi-data center flow scheduling method and system

Similar Documents

Publication Publication Date Title
CN108040108B (en) Communication switching method, device, coordination server and readable storage medium
CN104703199B (en) Management method, relevant device and the system of universal embedded integrated circuit card
CN110012083B (en) Data transmission method, server and data transmission device
EP3512118A1 (en) Method and device for transmitting response message
CN104363304A (en) System and method for inquiring squatting positions in public toilet
CN103297468A (en) Operation method for group resources and group server
CN105101335A (en) Wireless collaboration method, device and system
CN109547515A (en) A kind of service calling method and relevant device
CN109561167A (en) A kind of domain name analytic method and device
CN115211225A (en) Satellite link information determination method and device
CN112543212B (en) System for providing request response exact communication delay guarantee for distributed service
CN105554151B (en) A kind of keep-alive time determines method and electronic equipment
CN111093182A (en) Network optimal resource selection system for CPE (customer premises equipment)
CN110365517A (en) Data processing method, device, storage medium and computer equipment
US8456671B2 (en) Communication system, information storage device, management device, and terminal device
CN101483615A (en) Remote number obtaining method and system
CN106254935A (en) A kind of method of resource-sharing and terminal
CN106211058A (en) The method and system of terminal positioning
CN109219046A (en) Method for switching network and device
CN109218371A (en) A kind of method and apparatus calling data
CN104507058A (en) Information transmission method, information transmission system and mobile terminal based on two-dimension code
CN105681480A (en) Point-to-point protocol (PPP) dial on demand method and equipment
US20200314964A1 (en) Management device, terminal device, and non-transitory storage medium
CN108834224A (en) Hotspot connection method, device, computer readable storage medium and client
CN106550492B (en) The method and mobile terminal of data transfer between a kind of mobile terminal

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: 20190329