CN104270472A - Remote service invocation method, device and system - Google Patents

Remote service invocation method, device and system Download PDF

Info

Publication number
CN104270472A
CN104270472A CN201410579012.4A CN201410579012A CN104270472A CN 104270472 A CN104270472 A CN 104270472A CN 201410579012 A CN201410579012 A CN 201410579012A CN 104270472 A CN104270472 A CN 104270472A
Authority
CN
China
Prior art keywords
service
server
destination server
call
target
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201410579012.4A
Other languages
Chinese (zh)
Other versions
CN104270472B (en
Inventor
李七生
胡斌
冯维
姜一维
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
HANGZHOU GOLDENSOFT SYSTEM Co Ltd
Original Assignee
HANGZHOU GOLDENSOFT SYSTEM Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by HANGZHOU GOLDENSOFT SYSTEM Co Ltd filed Critical HANGZHOU GOLDENSOFT SYSTEM Co Ltd
Priority to CN201410579012.4A priority Critical patent/CN104270472B/en
Publication of CN104270472A publication Critical patent/CN104270472A/en
Application granted granted Critical
Publication of CN104270472B publication Critical patent/CN104270472B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/51Discovery or management thereof, e.g. service location protocol [SLP] or web services
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/547Remote procedure calls [RPC]; Web services

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer And Data Communications (AREA)

Abstract

The application provides a remote service invocation method, device and system. The remote service invocation method and the remote service invocation device are both applied to a client and servers; the client are configured with a plurality of connection pools; the connection pools correspond to the servers respectively; when a service invocation request transmitted by a service invocation module is received, and a free target server is determined from the servers; a free target long connection is obtained in one connection pool corresponding to the target server; when the target long connection is in the effective state, the service invocation request is sent to the target server by using the target long connection, a service invoked by the target servers and corresponding to the service invocation requests is triggered to obtain an invocation result, the target server is triggered to return the invocation result, and the invocation result is sent to the service invocation module. Compared with the prior art, the service invocation module sends the service invocation request to a remote server, any server can be selected as a request object, and the stability and the safety of service invocation are improved.

Description

A kind of remote service calling method, Apparatus and system
Technical field
The present invention relates to software technology field, especially a kind of remote service calling method, Apparatus and system.
Background technology
In software field, Develop Application System pattern is generally single running package pattern, namely the code wrap of application development generation is at least one engineering source code bag, and all engineering source code bags must run in same running environment, and all uses same Database Systems.
But, to the above-mentioned unicity requirement of running environment and Database Systems, make a service calling module of application program when practical function, local service implementation can only be called.That is, service calling module and service implementation must be integrated in same computer system, after this computer system goes wrong, all have an impact to service calling module and service implementation, therefore, service call less stable and fail safe is lower.
Summary of the invention
In view of this, the invention provides a kind of remote service calling method, Apparatus and system, in order to solve the less stable of service call in prior art and the lower technical problem of fail safe.For realizing described object, technical scheme provided by the invention is as follows:
A kind of remote service calling method, be applied to client, described client configuration has multiple connection pool, and each described connection pool is corresponding with a server all separately, and described method comprises:
When receiving the service invocation request that service calling module sends, in multiple described server, determine idle destination server;
In the connection pool that described destination server is corresponding, obtain the long connection of idle target;
When the long connection of described target is for effective status, utilize the long connection of described target, described service invocation request is sent to and described destination server, trigger described destination server and call the service corresponding with described service invocation request, with obtain call result, and trigger described destination server return described in call result;
Described result of calling is sent to described service calling module.
Above-mentioned remote service calling method, preferably, described in multiple described server, determine idle destination server, comprising:
Utilize polling algorithm, in multiple described server, determine idle destination server.
Above-mentioned remote service calling method, preferably, described in multiple described server, determine idle destination server, comprising:
In the first storehouse pre-set, determine idle destination server; Wherein, multiple destination server is included in described first storehouse.
Above-mentioned remote service calling method, preferably, in the connection pool that described destination server is corresponding, after obtaining the long connection of idle target, described method also comprises:
When the long connection of described target is for abnormality, described destination server is moved to the second storehouse pre-set from the first storehouse;
When any one long connection in the corresponding connection pool of described destination server is for effective status, described destination server is moved to described first storehouse from described second storehouse.
Above-mentioned remote service calling method, preferably, in the described connection pool corresponding at described destination server, obtains the long connection of idle target, comprising:
Utilize polling algorithm, in the connection pool that described destination server is corresponding, obtain the long connection of idle target.
Above-mentioned remote service calling method, preferably, calls before result is sent to described application program described by described, also comprises:
When receive that described destination server returns call result time, long for described target Connection Release is returned corresponding connection pool.
Present invention also offers a kind of remote service calling method, be applied to server, described method comprises:
When receiving the service invocation request that client sends, extract the service name in described service invocation request and call parameters;
According to described service name and call parameters, call the service that described service request is corresponding, call result to obtain.
Present invention also offers a kind of remote service calling device, be applied to client, described client configuration has multiple connection pool, and each described connection pool is corresponding with a server all separately, and described device comprises:
Destination server determining unit, for when receiving the service invocation request that service calling module sends, in multiple described server, determines idle destination server;
Target is long connects acquiring unit, in the connection pool that described destination server is corresponding, obtains idle target length and connects;
Destination service call unit, for when the long connection of described target is for effective status, utilize the long connection of described target, described service invocation request is sent to and described destination server, trigger described destination server and call the service corresponding with described service invocation request, with obtain call result, and trigger described destination server return described in call result;
Call result and return unit, for described result of calling is sent to described service calling module.
Present invention also offers a kind of remote service calling device, be applied to server, described method comprises:
Name parameter extraction unit, for when receiving the service invocation request that client sends, extracts the service name in described service invocation request and call parameters;
Destination service call unit, for according to described service name and call parameters, calls the service that described service request is corresponding, calls result to obtain.
Present invention also offers a kind of remote service calling system, comprise and be above-mentionedly applied in the remote service calling device of client and be applied in Server remote service call device.
From above technical scheme, remote service calling method provided by the invention, Apparatus and system, method and device all can be applied in client and server respectively, client configuration has multiple connection pool, each connection pool is corresponding with a server all separately, when receiving the service invocation request that service calling module sends, in multiple server, determine idle destination server, in the connection pool that destination server is corresponding, obtain the long connection of idle target, when the long connection of target is for effective status, utilize the long connection of target, service invocation request is sent to and destination server, the service that trigger target server calls is corresponding with service invocation request, result is called to obtain, and trigger target server returns and calls result, and result will be called be sent to service calling module.Compared with prior art, in the present invention, service calling module sends service invocation request to remote server, and any server can be selected as request object, improves stability and the fail safe of service call.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, be briefly described to the accompanying drawing used required in embodiment or description of the prior art below, apparently, accompanying drawing in the following describes is only embodiments of the invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to the accompanying drawing provided.
The flow chart being applied in the remote service calling method of client that Fig. 1 provides for the embodiment of the present invention;
Another flow chart being applied in the remote service calling method of client that Fig. 2 provides for the embodiment of the present invention;
The another flow chart being applied in the remote service calling method of client that Fig. 3 provides for the embodiment of the present invention;
The another flow chart being applied in the remote service calling method of server that Fig. 4 provides for the embodiment of the present invention;
The structured flowchart being applied in the remote service calling device of client that Fig. 5 provides for the embodiment of the present invention;
The structured flowchart being applied in the remote service calling device of server that Fig. 6 provides for the embodiment of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
Remote service calling method provided by the invention is applied in client, and client configuration has multiple connection pool, and each connection pool is corresponding with a server separately.Need to illustrate, the present invention is provided with multiple server, and each server all can realize the call request of service calling module.That is, backup each other between multiple server, achieve the load balancing of service invocation request.The call request of application program is realized module integration in prior art at a computer, the present embodiment can improve stability and the fail safe of service call.
Based on the system architecture of the above-mentioned client that provides and multiple server, embodiments provide a kind of remote service calling method.See Fig. 1, it illustrates the flow process of the method, this flow process specifically comprises:
Step S101: when receiving the service invocation request that service calling module sends, in multiple described server, determines idle destination server.
Wherein, service calling module is a module in client application, when this module needs to call remote service module, generates service invocation request, wherein, includes title and the parameter of the service that needs call in service invocation request.Service invocation request is sent to the executive agent of this method, when the executive agent of this method receives this service invocation request, needs, in the multiple servers arranged, to search a current server being in idle condition, be defined as destination server.
Step S102: in the connection pool that described destination server is corresponding, obtains the long connection of idle target.
Wherein, client is provided with multiple connection pool, each server is all corresponding with a connection pool.And equal initialization has multiple long connection in each connection pool.In the connection pool that the destination server determined is corresponding, search a current long connection being in idle condition, for sending service invocation request to this destination server.Need to illustrate that idle long connection refers to the connection of this length and do not taken transmission service invocation request by other service calling module arbitrary.
Step S103: when the long connection of described target is for effective status, utilize the long connection of described target, described service invocation request is sent to and described destination server, trigger described destination server and call the service corresponding with described service invocation request, with obtain call result, and trigger described destination server return described in call result.
Wherein, if network or server fail, target length can be caused to be connected to become down state.In order to improve the success rate of service invocation request, before transmission service invocation request, need to determine whether long connection is in effective status.When the long connection of target is in effective status, utilizes the long connection of this target, send service invocation request.Particularly, detecting the long method whether being in effective status that connects of target can be utilize the long connection of this target to send to destination server and detect packet, suppose the reply receiving destination server, determine that the long connection of this target is in effective status.
In the present embodiment, before transmission service invocation request, encapsulate in the packet after needing that service invocation request is carried out serializing, then utilize the long connection of target, by this Packet Generation to destination server.Destination server is provided with service end assembly, after the service end assembly of destination server receives service invocation request, realizes service invocation procedure, obtain service call result.
Particularly, packet after above-mentioned serializing is carried out unserializing process by destination server, obtain the title and parameter that need the service of calling, corresponding service execution module is found according to this service name, trigger this service execution module and perform service call, result is called in acquisition, this is called after result carries out serializing and connects by long the executive agent being back to the present embodiment.
Step S104: described result of calling is sent to described service calling module.
Wherein, the executive agent of the present embodiment receives after this calls result, will call after result carries out unserializing, and be sent to the service calling module sending service invocation request, complete service invocation procedure.
From above technical scheme, the remote service calling method that this enforcement provides, be applied in client, client is provided with multiple connection pool, and each connection pool is all corresponding with a server, and multiple servers of setting all can complete service invocation procedure, therefore, before transmission service invocation request, in the multiple servers arranged, an idle server can be determined.With only arrange in prior art one in order to realize service call mode compared with, the set-up mode of multiple server backup enhances stability and the fail safe of service call.
Meanwhile, in connection pool, initialization has multiple long connection, utilizes long connection service invocation request to be sent to the destination server determined.But, in prior art, utilize the short connection connecting realization and destination server.Use short connection, client all needs to create short connection, and after service call completes, needs to close short connection at every turn before needing to send service invocation request to server at every turn.Like this, the short connection of each establishment all needs to expend system resource, and overhead is comparatively large, and, the time delay of service call can be caused.The present embodiment client uses long connection to carry out data interaction with server, because long connection is the connection keeping with server all the time communicating, unless server end disconnects this connection for various reasons, therefore, client is connected by establishment one vice-minister, this length can be utilized to connect and repeatedly send service invocation request, overhead is less, and service call efficiency is higher.
In prior art, client has services cache function, namely the memory address of service execution module (or being referred to as service implementation) can be buffered in client this locality by client, after client receives the service invocation request of service calling module, first the memory address of service is searched in this locality, and the memory address found is included in the service invocation request of generation, be sent to server, this memory address determination service execution module position in internal memory of server direct basis, and then Trigger services Executive Module realizes service invocation procedure.But services cache method of the prior art, after the memory address of the service execution module of server changes, can cause the invalid of service invocation request, and then cause the failure of service call.
Unlike, in the present embodiment, service name and service parameter is only included in the service invocation request received, do not include the memory address of service execution module, but this service invocation request is sent to server, server, according to the corresponding relation of the memory address of the service name that pre-sets and service execution module, determines the memory address of the service execution module that the service name that needs to call is corresponding.After the memory address of service execution module changes, server can change the corresponding relation of memory address and service name thereupon, therefore, the remote service calling method that the present embodiment provides is dynamic, that is, and do not rely on the memory address being stored in advance in local service execution module, and then can avoid in prior art, the memory address of service execution module being prestored the service call failure scenario caused.
Need to illustrate, in the above-described embodiments, the concrete mode of the multiple server of client configuration is, records the IP address of each server and the port numbers of each server process service invocation request.In addition, Servers installed has service execution module, and server calls service execution module, to realize service invocation request, obtains service call result.The address of service execution module in server memory needs to be registered in server operating component, namely registration process is that the title of service and the memory address of service execution module are set up corresponding relation, like this, after server receives service invocation request, service name in foundation service invocation request and the corresponding relation of foundation, the memory address of service execution module can be determined, and then find the core position of service execution module, realize service invocation procedure.
Alternatively, the step S101 in above-described embodiment, in multiple described server, determines that the specific implementation of idle destination server can be: utilize polling algorithm, in multiple described server, determines idle destination server.
Particularly, polling algorithm refers to and judges whether each destination server is in idle condition successively.Suppose that the mark of multiple server is kept in queue, first server identification is obtained from row are first, judge whether the server that this server identification is corresponding is in idle condition, if so, the server that the server identification then this got is corresponding is defined as destination server, otherwise, the server identification got is put into the tail of the queue of queue, next server identification is obtained successively, the step of repeated obtain, until get idle server from head of the queue.If the server that the whole server identifications preserved in queue are corresponding is not all in idle condition, this service invocation request is set to wait state, and whether there is idle server in real-time judge queue, after there is idle server in queue, the server by this free time is defined as destination server.
Certainly, the present invention does not limit and determines that the mode of idle server utilizes polling algorithm, can also Weight algorithm be utilized, namely pre-set the weighted value of each server, be in the server that in the server of idle condition, weighted value is maximum be defined as destination server by current.
Refer to Fig. 2, it illustrates another flow process of the remote service calling method that the embodiment of the present invention provides.Alternatively, the mark of destination server device can be kept in storehouse, therefore, step S101 is in multiple described server, the specific implementation determining idle destination server can be step S201: when receiving the service invocation request that service calling module sends, in the first storehouse pre-set, determine idle destination server; Wherein, multiple destination server is included in described first storehouse.
In addition, known in the above description, may there is abnormality in the long connection of target, now shows that client normally can not communicate with destination server, therefore, see Fig. 2, on the remote service calling method basis that above-described embodiment provides, can also comprise:
Step S205: when the long connection of described target is for abnormality, described destination server is moved to the second storehouse pre-set from the first storehouse.
In the present embodiment, be previously provided with two storehouses, the first storehouse connects normal server for storing, and the second storehouse connects abnormal server for storing.Therefore, when the long connection of target is for abnormality, server corresponding for long for target connection and destination server is needed to move to from the first storehouse in the second storehouse, thus when can ensure to determine idle server in the first storehouse, ensure that the idle server determined is all connect normal idle server, and then improve the accuracy of service invocation procedure.
Step S206: when any one long connection in the corresponding connection pool of described destination server is for effective status, described destination server is moved to described first storehouse from described second storehouse.
Wherein, when occurring that any one long state connected is effective status in the corresponding connection pool of destination server, show that the connection of client and destination server becomes normal condition again, therefore, this order server is placed back in in the first storehouse, ensures that it can by normal call.
Need explanation, when the long connection of described target is for abnormality, show that the connection of this destination server is abnormal, need for service invocation request determines new destination server, namely after step S205, can also comprise: return to step S201 in the first storehouse pre-set, determine idle destination server.Can find out, be redundancy each other between multiple servers of setting, the server broken down can't affect the realization of client service call request.
Alternatively, in each embodiment of the method above-mentioned in the connection pool that described destination server is corresponding, the specific implementation process obtaining idle target length connection can be: utilize polling algorithm, in the connection pool that described destination server is corresponding, obtains the long connection of idle target.
Particularly, the process of polling algorithm is, judges whether the multiple long connection in connection pool is in idle condition successively.Namely obtain an alternative long connection in connection pool, judge whether this alternative long connection is in idle condition, if, then this alternative long connection is defined as the long connection of target, otherwise, obtain next the alternative long connection in connection pool, repeat above-mentioned deterministic process, connect until determine that target is long.And then, obtain the transmission that service invocation request is carried out in the long connection of this target determined.
Certainly, obtain the long mode connected of target, any one mode in all right prior art, the present invention does not limit.
In each inventive embodiments above-mentioned, need initialization connection pool.Namely initialization connection pool is in connection pool, set up long connection.Wherein, the long quantity connected of initialization can pre-set.When all long connection in connection pool is all in using state, new long connection can be created at any time, the new long connection created is defined as the long connection of target.
See Fig. 3, it illustrates the another flow process of the remote service calling method that the embodiment of the present invention provides, before the step S104 (the step S305 namely in this enforcement) of said method embodiment, can also comprise:
Step S304: when receive that described destination server returns call result time, long for described target Connection Release is returned corresponding connection pool.
Wherein, destination server utilizes target long connection will call result and return, therefore, when receive that destination server returns call result time, illustrate that the long connection of this target becomes idle condition.And then long for this target Connection Release is returned corresponding connection pool, be set to the free time by the long state be connected in corresponding connection pool of this target, the service invocation request for other uses.
Corresponding above-mentioned each is applied in the remote service calling method of client, and see Fig. 4, the invention provides a kind of remote service calling method, be applied in server, the method comprises:
Step S401: when receiving the service invocation request that client sends, extract the service name in described service invocation request and call parameters.
In the present embodiment, application remote service calling method on the server, not needing the memory address to client return service, more particularly, is the memory address of service execution module.Therefore, client does not need the memory address of buffer service, before sending service invocation request, does not need the memory address knowing service in advance yet, therefore, does not comprise the memory address of service execution module in service invocation request.
Step S402: according to described service name and call parameters, calls the service that described service request is corresponding, calls result to obtain.
Wherein, the executive agent of the present embodiment sends call request to service execution module, to call this service execution module, makes this service calling module realize service call, obtains service call result.
Compared with prior art, the present embodiment does not need the memory address sending service execution module to client, after receiving service invocation request, the memory address of direct basis service execution module and the corresponding relation of service name, determine to call service execution module, and call parameters is sent to this service calling module trigger can realize service call.The situation of the service call failure that this service calling method occurs after address of service can be avoided to change.
The embodiment of the method that corresponding above-mentioned Fig. 1 provides, the invention provides the remote service calling device being applied in client.Illustrate and see the explanation of said method embodiment, hereafter can not repeat.See Fig. 5, this remote service calling device specifically comprises:
Destination server determining unit 101, for when receiving the service invocation request that service calling module sends, in multiple described server, determines idle destination server;
Target is long connects acquiring unit 102, in the connection pool that described destination server is corresponding, obtains idle target length and connects;
Destination service call unit 103, for when the long connection of described target is for effective status, utilize the long connection of described target, described service invocation request is sent to and described destination server, trigger described destination server and call the service corresponding with described service invocation request, with obtain call result, and trigger described destination server return described in call result;
Call result and return unit 104, for described result of calling is sent to described service calling module.
Need to illustrate, this service call device is arranged on client, can think client component.Service invocation request can be sent in any idle server in multiple server by this client component, achieves the load balancing of service call.Meanwhile, utilize long interconnection technique to send service invocation request, overhead and time delay that short connection brings can be saved.
The embodiment of the method that corresponding above-mentioned Fig. 4 provides, the invention provides the remote service calling device being applied in server.Illustrate and see the explanation of said method embodiment, hereafter can not repeat.See Fig. 6, this remote service calling device specifically comprises:
Name parameter extraction unit 201, for when receiving the service invocation request that client sends, extracts the service name in described service invocation request and call parameters;
Destination service call unit 202, for according to described service name and call parameters, calls the service that described service request is corresponding, calls result to obtain.
Need to illustrate, this service call device is arranged on server, can think service end assembly.
Present invention also offers a kind of remote service calling system, comprise remote service calling device that above-mentioned Fig. 5 provides and the remote service calling device that Fig. 6 provides.This system can realize the service invocation request of client to be sent to server, will call result and be back to client, and realize remote service invoked procedure after server calls service.
It should be noted that, each embodiment in this specification all adopts the mode of going forward one by one to describe, and what each embodiment stressed is the difference with other embodiments, between each embodiment identical similar part mutually see.
To the above-mentioned explanation of the disclosed embodiments, professional and technical personnel in the field are realized or uses the present invention.To be apparent for those skilled in the art to the multiple amendment of these embodiments, General Principle as defined herein can without departing from the spirit or scope of the present invention, realize in other embodiments.Therefore, the present invention can not be restricted to these embodiments shown in this article, but will meet the widest scope consistent with principle disclosed herein and features of novelty.

Claims (10)

1. a remote service calling method, is characterized in that, is applied to client, and described client configuration has multiple connection pool, and each described connection pool is corresponding with a server all separately, and described method comprises:
When receiving the service invocation request that service calling module sends, in multiple described server, determine idle destination server;
In the connection pool that described destination server is corresponding, obtain the long connection of idle target;
When the long connection of described target is for effective status, utilize the long connection of described target, described service invocation request is sent to and described destination server, trigger described destination server and call the service corresponding with described service invocation request, with obtain call result, and trigger described destination server return described in call result;
Described result of calling is sent to described service calling module.
2. remote service calling method according to claim 1, is characterized in that, described in multiple described server, determines idle destination server, comprising:
Utilize polling algorithm, in multiple described server, determine idle destination server.
3. remote service calling method according to claim 1, is characterized in that, described in multiple described server, determines idle destination server, comprising:
In the first storehouse pre-set, determine idle destination server; Wherein, multiple destination server is included in described first storehouse.
4. remote service calling method according to claim 3, is characterized in that, in the connection pool that described destination server is corresponding, after obtaining the long connection of idle target, described method also comprises:
When the long connection of described target is for abnormality, described destination server is moved to the second storehouse pre-set from the first storehouse;
When any one long connection in the corresponding connection pool of described destination server is for effective status, described destination server is moved to described first storehouse from described second storehouse.
5. remote service calling method according to claim 1, is characterized in that, in the described connection pool corresponding at described destination server, obtains the long connection of idle target, comprising:
Utilize polling algorithm, in the connection pool that described destination server is corresponding, obtain the long connection of idle target.
6. the remote service calling method according to claim 1 or 4, is characterized in that, calls before result is sent to described application program, also comprise described by described:
When receive that described destination server returns call result time, long for described target Connection Release is returned corresponding connection pool.
7. a remote service calling method, is characterized in that, is applied to server, and described method comprises:
When receiving the service invocation request that client sends, extract the service name in described service invocation request and call parameters;
According to described service name and call parameters, call the service that described service request is corresponding, call result to obtain.
8. a remote service calling device, is characterized in that, is applied to client, and described client configuration has multiple connection pool, and each described connection pool is corresponding with a server all separately, and described device comprises:
Destination server determining unit, for when receiving the service invocation request that service calling module sends, in multiple described server, determines idle destination server;
Target is long connects acquiring unit, in the connection pool that described destination server is corresponding, obtains idle target length and connects;
Destination service call unit, for when the long connection of described target is for effective status, utilize the long connection of described target, described service invocation request is sent to and described destination server, trigger described destination server and call the service corresponding with described service invocation request, with obtain call result, and trigger described destination server return described in call result;
Call result and return unit, for described result of calling is sent to described service calling module.
9. a remote service calling device, is characterized in that, is applied to server, and described method comprises:
Name parameter extraction unit, for when receiving the service invocation request that client sends, extracts the service name in described service invocation request and call parameters;
Destination service call unit, for according to described service name and call parameters, calls the service that described service request is corresponding, calls result to obtain.
10. a remote service calling system, is characterized in that, comprises remote service calling device as claimed in claim 8 and remote service calling device according to claim 9.
CN201410579012.4A 2014-10-24 2014-10-24 A kind of remote service calling method, apparatus and system Active CN104270472B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410579012.4A CN104270472B (en) 2014-10-24 2014-10-24 A kind of remote service calling method, apparatus and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410579012.4A CN104270472B (en) 2014-10-24 2014-10-24 A kind of remote service calling method, apparatus and system

Publications (2)

Publication Number Publication Date
CN104270472A true CN104270472A (en) 2015-01-07
CN104270472B CN104270472B (en) 2017-11-07

Family

ID=52161961

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410579012.4A Active CN104270472B (en) 2014-10-24 2014-10-24 A kind of remote service calling method, apparatus and system

Country Status (1)

Country Link
CN (1) CN104270472B (en)

Cited By (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104780224A (en) * 2015-04-30 2015-07-15 北京奇艺世纪科技有限公司 Remote service calling method and device
CN105391683A (en) * 2015-09-30 2016-03-09 小米科技有限责任公司 Remote method invocation method, device and system
CN105915575A (en) * 2015-12-15 2016-08-31 乐视网信息技术(北京)股份有限公司 Service calling method and equipment
CN106034138A (en) * 2015-03-09 2016-10-19 阿里巴巴集团控股有限公司 Remote service calling method and remote service calling device
CN106254464A (en) * 2016-08-07 2016-12-21 深圳市小马立行科技有限公司 A kind of vehicle intelligent terminal and network communication method thereof
CN106998343A (en) * 2016-01-26 2017-08-01 阿里巴巴集团控股有限公司 A kind of remote procedure call processing method, apparatus and system
CN107104999A (en) * 2016-02-23 2017-08-29 北京京东尚科信息技术有限公司 The treating method and apparatus of service interface call request
CN108111431A (en) * 2016-11-24 2018-06-01 腾讯科技(北京)有限公司 Business datum sending method and device
CN108234304A (en) * 2017-12-29 2018-06-29 生迪智慧科技有限公司 Data transmission method, apparatus and system
CN109753370A (en) * 2018-12-28 2019-05-14 北京东方国信科技股份有限公司 A kind of low time delay, the high remote procedure calling (PRC) method handled up
CN110119314A (en) * 2019-05-14 2019-08-13 腾讯科技(深圳)有限公司 A kind of server calls method, apparatus, server and storage medium
CN110401659A (en) * 2019-07-25 2019-11-01 高新兴科技集团股份有限公司 A kind of device access method of operation system, equipment access mechanism and system
CN110535959A (en) * 2019-08-30 2019-12-03 北京云中融信网络科技有限公司 A kind of method, apparatus and computer readable storage medium for transmitting data
CN111225242A (en) * 2020-01-17 2020-06-02 广州酷狗计算机科技有限公司 Video playing disaster tolerance method and device and computer storage medium
CN111770157A (en) * 2020-06-24 2020-10-13 广东浪潮大数据研究有限公司 Business processing method and device, electronic equipment and storage medium
CN112698970A (en) * 2020-12-31 2021-04-23 北京千方科技股份有限公司 Service calling method and device for micro-service architecture and computer storage medium
CN113489803A (en) * 2021-07-15 2021-10-08 深圳竹云科技有限公司 Load balancing method, terminal and gateway server

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2001093038A2 (en) * 2000-05-30 2001-12-06 Compaq Computer Corporation Scalable java servers for network server applications
CN1968283A (en) * 2006-05-12 2007-05-23 华为技术有限公司 Network management system and method
CN101127655A (en) * 2006-08-18 2008-02-20 国际商业机器公司 Method and system for integrating existing www systems
CN101645785A (en) * 2009-04-30 2010-02-10 中国科学院声学研究所 Data-intensive multimedia service calling method based on extended SOAP
CN101719097A (en) * 2009-12-24 2010-06-02 深圳市金蝶移动互联技术有限公司 Debug method and system of automation test script and automation application server
CN101923485A (en) * 2009-06-17 2010-12-22 大唐软件技术股份有限公司 JACA remote invocation method in CORBA (Common Object Request Breaker Architecture) system
CN103634298A (en) * 2013-11-14 2014-03-12 北京奇虎科技有限公司 Database connection processing method and device

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2001093038A2 (en) * 2000-05-30 2001-12-06 Compaq Computer Corporation Scalable java servers for network server applications
CN1968283A (en) * 2006-05-12 2007-05-23 华为技术有限公司 Network management system and method
CN101127655A (en) * 2006-08-18 2008-02-20 国际商业机器公司 Method and system for integrating existing www systems
CN101645785A (en) * 2009-04-30 2010-02-10 中国科学院声学研究所 Data-intensive multimedia service calling method based on extended SOAP
CN101923485A (en) * 2009-06-17 2010-12-22 大唐软件技术股份有限公司 JACA remote invocation method in CORBA (Common Object Request Breaker Architecture) system
CN101719097A (en) * 2009-12-24 2010-06-02 深圳市金蝶移动互联技术有限公司 Debug method and system of automation test script and automation application server
CN103634298A (en) * 2013-11-14 2014-03-12 北京奇虎科技有限公司 Database connection processing method and device

Cited By (26)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106034138B (en) * 2015-03-09 2019-08-09 阿里巴巴集团控股有限公司 A kind of remote service calling method and device
CN106034138A (en) * 2015-03-09 2016-10-19 阿里巴巴集团控股有限公司 Remote service calling method and remote service calling device
CN104780224A (en) * 2015-04-30 2015-07-15 北京奇艺世纪科技有限公司 Remote service calling method and device
CN105391683A (en) * 2015-09-30 2016-03-09 小米科技有限责任公司 Remote method invocation method, device and system
CN105915575A (en) * 2015-12-15 2016-08-31 乐视网信息技术(北京)股份有限公司 Service calling method and equipment
CN106998343A (en) * 2016-01-26 2017-08-01 阿里巴巴集团控股有限公司 A kind of remote procedure call processing method, apparatus and system
CN106998343B (en) * 2016-01-26 2020-11-03 创新先进技术有限公司 Remote procedure call processing method, device and system
CN107104999B (en) * 2016-02-23 2021-05-25 北京京东尚科信息技术有限公司 Method and device for processing service interface call request
CN107104999A (en) * 2016-02-23 2017-08-29 北京京东尚科信息技术有限公司 The treating method and apparatus of service interface call request
CN106254464A (en) * 2016-08-07 2016-12-21 深圳市小马立行科技有限公司 A kind of vehicle intelligent terminal and network communication method thereof
CN108111431A (en) * 2016-11-24 2018-06-01 腾讯科技(北京)有限公司 Business datum sending method and device
CN108111431B (en) * 2016-11-24 2021-09-24 腾讯科技(北京)有限公司 Service data sending method, device, computing equipment and computer readable storage medium
CN108234304A (en) * 2017-12-29 2018-06-29 生迪智慧科技有限公司 Data transmission method, apparatus and system
CN109753370A (en) * 2018-12-28 2019-05-14 北京东方国信科技股份有限公司 A kind of low time delay, the high remote procedure calling (PRC) method handled up
CN110119314A (en) * 2019-05-14 2019-08-13 腾讯科技(深圳)有限公司 A kind of server calls method, apparatus, server and storage medium
CN110119314B (en) * 2019-05-14 2024-06-07 腾讯科技(深圳)有限公司 Server calling method and device, server and storage medium
CN110401659A (en) * 2019-07-25 2019-11-01 高新兴科技集团股份有限公司 A kind of device access method of operation system, equipment access mechanism and system
CN110401659B (en) * 2019-07-25 2021-11-05 高新兴科技集团股份有限公司 Equipment access method, equipment access device and system of service system
CN110535959B (en) * 2019-08-30 2023-02-24 北京云中融信网络科技有限公司 Method and device for transmitting data and computer readable storage medium
CN110535959A (en) * 2019-08-30 2019-12-03 北京云中融信网络科技有限公司 A kind of method, apparatus and computer readable storage medium for transmitting data
CN111225242A (en) * 2020-01-17 2020-06-02 广州酷狗计算机科技有限公司 Video playing disaster tolerance method and device and computer storage medium
CN111770157A (en) * 2020-06-24 2020-10-13 广东浪潮大数据研究有限公司 Business processing method and device, electronic equipment and storage medium
WO2021258753A1 (en) * 2020-06-24 2021-12-30 广东浪潮智慧计算技术有限公司 Service processing method and apparatus, and electronic device and storage medium
CN111770157B (en) * 2020-06-24 2023-04-18 广东浪潮大数据研究有限公司 Business processing method and device, electronic equipment and storage medium
CN112698970A (en) * 2020-12-31 2021-04-23 北京千方科技股份有限公司 Service calling method and device for micro-service architecture and computer storage medium
CN113489803A (en) * 2021-07-15 2021-10-08 深圳竹云科技有限公司 Load balancing method, terminal and gateway server

Also Published As

Publication number Publication date
CN104270472B (en) 2017-11-07

Similar Documents

Publication Publication Date Title
CN104270472A (en) Remote service invocation method, device and system
CN109669762B (en) Cloud computing resource management method, device, equipment and computer readable storage medium
CN105553993B (en) A kind of remote service calling method, device and server
CN106533805B (en) Micro-service request processing method, micro-service controller and micro-service architecture
CN102571788B (en) Sample collection method and system
CN105337785A (en) Path connectivity detection method and device
CN103560922A (en) Disaster recovery method and system
EP2916522B1 (en) File transmission method and system thereof
CN111858083B (en) Remote service calling method and device, electronic equipment and storage medium
CN105635083A (en) Service processing method and service processing system based on server and client architecture
CN103812838A (en) Service calling method and device and system
CN108055338B (en) ISCSI access load balancing method
CN102385536B (en) Method and system for realization of parallel computing
CN105282128A (en) Bidirectional calling method and system based on long connection
CN114338650A (en) File transmission method and device, electronic equipment and readable storage medium
CN104601702A (en) Cluster remote procedure call method and system
TWI429232B (en) Backup server, system and method for recovering client devices register at primary server
CN102710663B (en) Method and device for obtaining cloud service
CN104639379A (en) Proxy testing method and device
CN105635280A (en) Method and apparatus for improving message push efficiency, and push server
CN106210101A (en) Message management system and information management method
CN103944875A (en) Data exchanging method and data exchanging system
CN106341342A (en) Communication connection maintaining method and device, terminal and server
CN104426704A (en) Integration network device and service integration method thereof
US11271839B2 (en) Dynamic asynchronous communication management

Legal Events

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