CN103345420B - Batch calls the mthods, systems and devices of api interface - Google Patents
Batch calls the mthods, systems and devices of api interface Download PDFInfo
- Publication number
- CN103345420B CN103345420B CN201310217832.4A CN201310217832A CN103345420B CN 103345420 B CN103345420 B CN 103345420B CN 201310217832 A CN201310217832 A CN 201310217832A CN 103345420 B CN103345420 B CN 103345420B
- Authority
- CN
- China
- Prior art keywords
- batch
- proxy server
- call
- api interface
- array
- 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.)
- Active
Links
Abstract
The present invention proposes a kind of method that batch calls api interface, comprises the following steps:Third-party application end obtains the call address information and call parameters information of multiple api interfaces, and send batch call request to proxy server, wherein, batch call request is included by the call address information of multiple api interfaces and the metamessage array of call parameters information structure;Proxy server multiple returning results according to corresponding to metamessage array from multiple api interfaces acquisition;Proxy server is collected to multiple returning results and sent to third-party application end.Allocating time of the present invention is shorter, versatile, and performance is optimized, and Consumer's Experience is good.The invention also discloses method, a kind of third-party application end and a kind of proxy server that a kind of batch calls api interface.
Description
Technical field
The present invention relates to field of computer technology, more particularly to a kind of batch calls method, system and the dress of api interface
Put.
Background technology
With the continuous development of Internet technology, there are many open platforms.Software systems in open platform pass through
Its application programming interface (API) or function (function) are disclosed, allows the program of outside increase the software systems
Function or the resource using the software systems.Such as Baidu's open platform, Tengxun's open platform, Sina weibo open platform are mesh
Preceding popular platform.The Open api interfaces that most of main flow open platforms provide based on http/https agreements, and
In order to lift security, increasing open platform starts to use the Open api interface specifications based on https agreements.
Generally, third-party application, including client and service end, and Open api interfaces service provider one
As will not be in same intranet environment.Therefore, third-party application calls the Open api interfaces of a platform side all to need every time
Perform a public network http/https request.Because the network speed of public network is general all than relatively low, average level is in several K to several
Between M, therefore the stand-by period, largely consumption was in public network http/https connections, public network data transfer, and really consumption is flat
Time in the interface business processing of platform side's service end then only accounts for the ratio of one of very little.When an industry of third-party application
In business processing procedure when needing to call multiple or multiple Open api interfaces, wait that network connection and date transmission consumed when
Between proportion can be very big, turn into the bottleneck influenceed using self performance and Consumer's Experience.For in the slower mobile network of speed
For Mobile solution, this problem is then more serious.
Specifically, for no calling timing requirements multiple Open api interfaces calling, such as first call A interfaces again
Calling B interface and first calling B interface to recall A interfaces does not influence for applied business processing, and third-party application end can lead to
The mode of concurrent invocation is crossed to reduce network latency.But for most of programming languages, realize concurrent request in itself
Difficulty it is larger, have higher requirement for the technical capability of application developer.The multiple of timing requirements are called for having
The calling of Open api interfaces, such as first call A interfaces to recall B interface and first call B interface to recall A interfaces for application
Business has an impact, and third-party application end can not carry out concurrent invocation, can only serially call, in this case, by application end certainly
Body is can not to optimize performance.No context data dependence relation, refer to be not present and first call A interfaces, then further according to A interfaces
Returned data calls the situation of B interface.
At present in technology, in order to reach the performance of the Open api interfaces of lifting third-party application calling platform side, effectively
Platform can specially provide the api interface of some customizations, and function is with calling the function one that multiple conventional general api interfaces are realized
Sample, but the following shortcoming of the method:
(1), excessively customize, can not be general.Such as one api interface for being ABC of customization, successively adjusted simultaneously with realizing
With the function of this 3 api interfaces of A, B, C, the ABC interfaces can not realize the function of only calling two interfaces of A and B, also can not
Realize the function of calling this 4 interfaces of A, B, C, D.
(2), development cost is high, with method for customizing, realizes the api interface for calling the function achieved by multiple api interfaces
Quantity, can at most reach 2!+3!+...+N!It is individual, wherein, N is the quantity for the general api interface that platform side provides.
The content of the invention
It is contemplated that at least solves one of technical problem present in prior art.
Therefore, a kind of method for calling api interface it is an object of the present invention to propose batch, allocating time is shorter,
Versatile, performance is optimized, and Consumer's Experience is good.
Second object of the present invention is the system for proposing that a kind of batch calls api interface.
Third object of the present invention is to propose a kind of third-party application end.
Fourth object of the present invention is to propose a kind of proxy server.
To reach above-mentioned purpose, the embodiment of first aspect present invention proposes a kind of method that batch calls api interface,
Comprise the following steps:Third-party application end obtains the call address information and call parameters information of multiple api interfaces, and to agency
Server send batch call request, wherein, the batch call request include by multiple api interfaces call address information and
The metamessage array of call parameters information structure;The proxy server connects according to the metamessage array from the multiple API
Multiple returning results corresponding to mouth acquisition;The proxy server is collected to the multiple returning result and sent to described
Third-party application end.
Batch according to embodiments of the present invention calls the method for api interface to lift the same service request of third-party application
In no context data dependence relation the performance called of multiple Open api interfaces, allocating time is short, relatively flexible, and
It is versatile, the performance of third-party application is improved, and improve third party developer and connect using the Open API of open platform
The Consumer's Experience of mouth.
In one embodiment of the invention, in addition to:The requirement that the third-party application end is called according to the batch
Gomma is called in addition in the batch call request.
In one embodiment of the invention, in addition to:The proxy server is corresponding according to calling gomma to obtain
Invocation pattern, and obtained from the multiple api interface according to the corresponding invocation pattern and the metamessage array corresponding
Multiple returning results.
In one embodiment of the invention, when the batch call request does not include calling gomma, the agency
Server is called with concurrent invocation pattern;When the batch call request includes calling gomma, the agency service
Device is called according to order of the multiple api interface in the metamessage array with serial invocation pattern.Concurrently can
Allocating time is saved, improves efficiency, so as to be optimized to performance.
In one embodiment of the invention, in addition to:The proxy server is by the calling of the multiple api interface
Location information is converted to multiple Intranet call address information.
In one embodiment of the invention, the proxy server is collected and sent to the multiple returning result
Further comprise to the third-party application end:The proxy server is by the returning result of the multiple api interface with default
Form is described to generate multiple description results.
In one embodiment of the invention, in addition to:When the batch call request include call gomma, it is described
Proxy server according to order of the multiple api interface in the metamessage array by the multiple description result be put into
In one JSON array or XML object, and the JSON arrays or XML object are fed back into the third-party application end.
In one embodiment of the invention, the call parameters information includes parameter list, the tune that api interface is passed to
The HTTP method used in api interface.
The embodiment of second aspect of the present invention proposes the system that a kind of batch calls api interface, including third-party application
End, proxy server and at least one API service end, wherein, the third-party application end, for obtaining multiple api interfaces
Call address information and call parameters information, and batch call request is sent to the proxy server, wherein, the batch is adjusted
Included with request by the call address information of multiple api interfaces and the metamessage array of call parameters information structure;The agency
Server, for multiple returning results according to corresponding to the metamessage array from the multiple api interface acquisition, and to described
Multiple returning results are collected and sent to the third-party application end;At least one API service end, for providing
State multiple api interfaces.
Batch according to embodiments of the present invention calls the system of api interface to lift the same service request of third-party application
In no context data dependence relation the performance called of multiple Open api interfaces, allocating time is short, relatively flexible, and
It is versatile, the performance of third-party application is improved, and improve third party developer and connect using the Open API of open platform
The Consumer's Experience of mouth.
In one embodiment of the invention, the third-party application end, it is additionally operable to the requirement called according to the batch
Gomma is called in addition in the batch call request.
In one embodiment of the invention, the proxy server, it is additionally operable to corresponding according to calling gomma to obtain
Invocation pattern, and obtained from the multiple api interface according to the corresponding invocation pattern and the metamessage array corresponding
Multiple returning results.
In one embodiment of the invention, wherein, when the batch call request do not include call gomma, it is described
Proxy server is called with concurrent invocation pattern;When the batch call request includes calling gomma, the agency
Server is called according to order of the multiple api interface in the metamessage array with serial invocation pattern.Concurrently
Allocating time can be saved, improves efficiency, so as to be optimized to performance.
In one embodiment of the invention, the proxy server, it is additionally operable to by the calling of the multiple api interface
Location information is converted to multiple Intranet call address information.
In one embodiment of the invention, the proxy server by the returning result of the multiple api interface with pre-
If form is described to generate multiple description results.
In one embodiment of the invention, when the batch call request includes calling gomma, agency's clothes
The multiple description result is put into one by business device according to order of the multiple api interface in the metamessage array
In JSON arrays or XML object, and the JSON arrays or XML object are fed back into the third-party application end.
In one embodiment of the invention, the call parameters information includes parameter list, the tune that api interface is passed to
The HTTP method used in api interface.
The embodiment of third aspect present invention proposes a kind of third-party application end, including acquisition module, sending module and
Receiving module.
Wherein, acquisition module is used for the call address information and call parameters information for obtaining multiple api interfaces;Sending module
For sending batch call request to proxy server, wherein, the batch call request includes the calling by multiple api interfaces
The metamessage array of address information and call parameters information structure;Receiving module is used to receive the proxy server according to
The summarized results for multiple returning results that metamessage array obtains.
Third-party application end according to embodiments of the present invention sends batch call request, allocating time to proxy server
Short, versatile, the performance of third-party application is better than conventional method, and improves third party developer and use open platform
The Consumer's Experience of Open api interfaces.
In one embodiment of the invention, in addition to:The requirement that add module is used to be called according to the batch is in institute
State addition in batch call request and call gomma.
In one embodiment of the invention, the proxy server calls mould according to corresponding to calling gomma to obtain
Formula, and multiple corresponding to being obtained from the multiple api interface according to the corresponding invocation pattern and the metamessage array return
Return result.
In one embodiment of the invention, the call parameters information includes parameter list, the tune that api interface is passed to
The HTTP method used in api interface.
The embodiment of fourth aspect present invention proposes a kind of proxy server, including receiving module, result acquisition module
With collect and sending module.
Wherein, receiving module is used to receive the batch call request that third-party application end is sent to proxy server, wherein,
The batch call request is included by the call address information of multiple api interfaces and the metamessage number of call parameters information structure
Group;As a result acquisition module is used for multiple returning results according to corresponding to the metamessage array from the multiple api interface acquisition;
Collect and sending module is used to collect the multiple returning result and send to the third-party application end.
Proxy server according to embodiments of the present invention receives batch call request, and result is obtained simultaneously according to metamessage array
Send to third-party application end, lift the multiple of no context data dependence relation in the same service request of third-party application
The performance that Open api interfaces call, allocating time is short, relatively more flexible, versatile, improves third party developer's use and opens
It is laid flat the Consumer's Experience of the Open api interfaces of platform.
In one embodiment of the invention, wherein, have in the batch call request and call gomma.
In one embodiment of the invention, result acquisition module calling according to corresponding to calling gomma to obtain
Pattern, and it is multiple according to corresponding to the corresponding invocation pattern and the metamessage array from the multiple api interface acquisition
Returning result.
In one embodiment of the invention, when the batch call request does not include calling gomma, the agency
Server is called with concurrent invocation pattern;When the batch call request includes calling gomma, the agency service
Device is called according to order of the multiple api interface in the metamessage array with serial invocation pattern.Concurrently can
Allocating time is saved, improves efficiency, so as to be optimized to performance.
In one embodiment of the invention, in addition to:Modular converter, for by the calling of the multiple api interface
Location information is converted to multiple Intranet call address information.
In one embodiment of the invention, it is described to collect and sending module is by the returning result of the multiple api interface
It is described with preset format to generate multiple description results.
In one embodiment of the invention, when the batch call request include call gomma, it is described collect and
The multiple description result is put into one by sending module according to order of the multiple api interface in the metamessage array
In individual JSON arrays or XML object, and the JSON arrays or XML object are fed back into the third-party application end.
In one embodiment of the invention, the call parameters information includes parameter list, the tune that api interface is passed to
The HTTP method used in api interface.
The additional aspect and advantage of the present invention will be set forth in part in the description, and will partly become from the following description
Obtain substantially, or recognized by the practice of the present invention.
Brief description of the drawings
The above-mentioned and/or additional aspect and advantage of the present invention will become in the description from combination accompanying drawings below to embodiment
Substantially and it is readily appreciated that, wherein:
Fig. 1 is the flow chart for the method that batch according to embodiments of the present invention calls api interface;
Fig. 2 is the method detail flowchart that batch according to embodiments of the present invention calls api interface;
Fig. 3 is the structural representation of interface interchange sequential relationship comparison diagram according to embodiments of the present invention;
Fig. 4 is the structural representation for the system that batch according to embodiments of the present invention calls api interface;
Fig. 5 is the structural representation at third-party application end according to embodiments of the present invention;With
Fig. 6 is the structural representation of proxy server according to embodiments of the present invention.
Embodiment
Embodiments of the invention are described below in detail, the example of the embodiment is shown in the drawings, wherein from beginning to end
Same or similar label represents same or similar element or the element with same or like function.Below with reference to attached
The embodiment of figure description is exemplary, is only used for explaining the present invention, and is not considered as limiting the invention.
The method that batch calling api interface according to embodiments of the present invention is described below with reference to Fig. 1, comprises the following steps:
Step S110:The call address information and call parameters information of the multiple api interfaces of third-party application end acquisition, and to
Proxy server send batch call request, wherein, batch call request include by multiple api interfaces call address information and
The metamessage array of call parameters information structure.
Wherein, call parameters information include api interface be passed to parameter list, calling api interface used in HTTP
Method.
It can also include:The requirement that third-party application end is called according to batch is added in batch call request calls sequential
Mark.
Step S120:Proxy server multiple returning results according to corresponding to metamessage array from multiple api interfaces acquisition.
Wherein, can also include, proxy server invocation pattern according to corresponding to calling gomma to obtain, and according to right
Multiple returning results corresponding to the invocation pattern and metamessage array from multiple api interfaces acquisition answered.
Also include:The call address information of multiple api interfaces is converted to multiple Intranet call address by proxy server to be believed
Breath.
In one embodiment of the invention, when batch call request do not include call gomma, proxy server with
Concurrent invocation pattern is called;When batch call request includes calling gomma, proxy server is according to multiple api interfaces
Order in metamessage array is called with serial invocation pattern.
Step S130:Proxy server is collected to multiple returning results and sent to third-party application end.
Wherein, proxy server is collected to multiple returning results and sent to third-party application end and further comprised:
Proxy server the returning result of multiple api interfaces is described with preset format to generate multiple description results.
Also include:When batch call request includes calling gomma, proxy server is believed according to multiple api interfaces in member
Multiple description results are put into a JSON array or XML object by the order in breath array, and by JSON arrays or XML pairs
As feeding back to third-party application end.
This method is described in detail with the specific embodiment shown in Fig. 2 below, it is to be understood that described below
Merely for example purpose, not limited to this according to an embodiment of the invention.
Step S210:Third-party application end by the call address information of Open api interfaces, incoming parameter, should use
The data such as HTTP method are packed, and generate the metamessage data corresponding to interface interchange.Specifically, third-party application end will need into
The call address information for each Open api interfaces that row batch calls, call the parameter list being passed to needed for the api interface, adjust
The data such as HTTP method (such as including GET, POST, DELETE, PUT) pass through default form used in the api interface
It is described, wherein preset format is included such as forms such as JSON objects, JSON arrays, XML nodes.Third-party application end forms and connect
Metamessage array corresponding to mouth call request.
Step S220:The metamessage number corresponding to multiple Open api interfaces that third-party application end will need batch to call
Group and for represent multiple Open api interfaces with the presence or absence of call timing requirements gomma information send to agency take
Interface IP address corresponding to business device.
Step S230:Proxy server parse metamessage array, obtain multiple Open api interfaces call address information,
The relevant informations such as incoming parameter, the HTTP method used.Specifically, there is provided interface bulk calls the proxy server of service to receive
Batch call request, according to metamessage array obtain third-party application end calling Open api interfaces call address information,
The relevant information such as specific incoming parameter list and the HTTP method of initiation call request.
Step S240:Domain name part in the call address information of api interface is substituted in corresponding by proxy server
Domain name or IP address of internal network, with Intranet call address information corresponding to generation.
Step S250:Proxy server judges to whether there is calling timing requirements between multiple interfaces.Specifically, agency's clothes
Business device Intranet HTTP request bag data according to corresponding to the information of decomposition generates Open api interfaces calling, it is multiple according to expression
Open api interfaces are judged with the presence or absence of the label information of calling timing requirements.
Step S251:If label information represents that multiple Open api interfaces are not present and calls timing requirements, agency service
Device is called with concurrent invocation pattern, is concurrently sent multiple Intranet HTTP request bag datas to each by concurrent operations
On server corresponding to Open api interfaces.N number of Intranet HTTP request is concurrently initiated, refers to and has sent corresponding to an interface
After Intranet HTTP request bag, immediately begin to send the Intranet HTTP request bag corresponding to next interface, until all N number of interfaces
Intranet HTTP request bag be all sent, just start to receive the returning result of each interface, until the return of all N number of interfaces
As a result untill being all received.
Step S252:If label information represents that multiple Open api interfaces are present and calls timing requirements, according to each
Arrangement of elements order of the Open api interfaces in metamessage array, is serially initiated corresponding to each Open api interfaces successively
Intranet HTTP request.N number of Intranet HTTP request is serially initiated, the Intranet HTTP for referring to send corresponding to an interface please
After seeking bag, wait synchronous block type and receive the returning result of the interface, until receiving returning result, could continue to send
Intranet HTTP request bag corresponding to next interface and its returning result packet to be received is waited, so repeatedly until all
The Intranet HTTP request of N number of interface is all completed.
Step S260:Proxy server sends the server corresponding to Intranet HTTP request bag data to Open api interfaces
Afterwards, the result that the server is returned is received, handles and sends to third-party application end.
Interface bulk calls the agency service end of service receiving the Intranet HTTP request corresponding to Open api interfaces
Returning result after, by the returning result of each api interface with preset format, such as JSON objects or XML node form, carry out
Description, and puts it into JSON arrays or XML object according to order of each interface in metamessage array, and by the JSON
Array or XML object are back to third-party application end.
Step S270:After third-party application terminates the returning result for receiving interface bulk call request, according to each Open
Api interface putting in order in the metamessage array parses to returning result, is connect with obtained each Open API
Returning result corresponding to mouthful.
Closed when needing to call N number of no context data dependence in some service request processing procedure at third-party application end
During the Open api interfaces of system, using this method, N number of Open api interfaces call the time T1 consumed can be by following public affairs
Formula is calculated:
1 public network HTTP/HTTPS Connection Time of T1 ≈+N number of Intranet HTTP Connection Time+N number of interface API business is taking
Processing time+N number of Intranet HTTP request bag at business device end and+1 public network HTTP/HTTPS request bag of transmission time of response bag
With the transmission time of response bag.
Using conventional implementation, the time T2 consumed on this N number of Open api interface calls can be by equation below meter
Draw:
Processing time+N number of public network HTTP/ of the T2 ≈ N number of public network HTTP/HTTPS Connection Time+N number of interface in service end
The transmission time of HTTPS request bag and response bag.
Because the network speed of public network is lower than inner-mesh network speed very more, while each interface is in the processing of server end
Time is also much smaller compared with transmission time of the data on public network, therefore T2/T1 is adjusting close to N, i.e. third-party application
During with the Open api interfaces of N number of no context data dependence relation, nearly N times of lifting will be had using the performance of this method.
If Fig. 3 is to call tri- Open api interfaces of A, B, C of no context data dependence relation to adjust with third-party application
Exemplified by, it compared for applying the calling sequential relationship before and after this method.As shown in figure 3, a be using this method before, A, B, C interface
Initiate to ask to server end successively, and receive the request of server end.B be have call timing condition under using this method when
Order relation, tri- interfaces of A, B, C are called to proxy server batch, and proxy server is sent out to server successively according to sequential relationship
Rise and ask and receive request.C is without calling sequential relationship that this method is applied under timing condition, and tri- interfaces of A, B, C are to agency
Server batch calls, and proxy server initiates to ask by the way of concurrent invocation, while to server.Can draw a, b,
It is in substantially reduction trend that third-party application, which calls the total time-consuming of multiple Open api interfaces, in c.
Batch according to embodiments of the present invention calls the method for api interface more flexible, and allocating time reduces, and improves the
The performance of tripartite's application, and improve Consumer's Experience of the third party developer using the Open api interfaces of open platform.
The system 100 of batch calling api interface according to embodiments of the present invention, including third party are described below with reference to Fig. 4
Application end 110, proxy server 120 and at least one API service end 130.Wherein,
Third-party application end 110 is used to obtaining the call address information and call parameters information of multiple api interfaces, and to generation
Manage server 120 and send batch call request, wherein, batch call request includes the call address information by multiple api interfaces
With the metamessage array of call parameters information structure;Proxy server 120 is used to be obtained from multiple api interfaces according to metamessage array
Multiple returning results corresponding to taking, and multiple returning results are collected and sent to third-party application end 110;It is at least one
API service end 130 is used to provide multiple api interfaces.
Wherein, call parameters information include api interface be passed to parameter list, calling api interface used in HTTP
Method.
Third-party application end 110, which is additionally operable to be added in batch call request according to the requirement that batch calls, calls sequential mark
Note.
Proxy server 120 is additionally operable to the invocation pattern according to corresponding to calling gomma to obtain, and according to corresponding tune
Multiple returning results corresponding to pattern and metamessage array from multiple api interfaces acquisition.Proxy server 120, be additionally operable to by
The call address information of multiple api interfaces is converted to multiple Intranet call address information.Proxy server 120 meets multiple API
The returning result of mouth is described with preset format to generate multiple description results.
In one embodiment of the invention, when batch call request does not include calling gomma, proxy server 120
It is called with concurrent invocation pattern;When batch call request includes calling gomma, proxy server 120 is according to multiple
Order of the api interface in metamessage array is called with serial invocation pattern.
In one embodiment of the invention, when batch call request includes calling gomma, proxy server 120
Multiple description results are put into a JSON array or XML object according to order of multiple api interfaces in metamessage array,
And JSON arrays or XML object are fed back into third-party application end 110.
The system is described in detail specific embodiment below, it is to be understood that described below merely for example
Purpose, according to an embodiment of the invention not limited to this.
Third-party application end 110 is by the call address information of Open api interfaces, incoming parameter, the HTTP method that should be used
Packed etc. data, generate the metamessage data corresponding to interface interchange.Specifically, third-party application end 110 will need to be criticized
The call address information of each Open api interfaces called is measured, the parameter list being passed to needed for the api interface is called, calls and be somebody's turn to do
The data such as HTTP method used in api interface (such as including GET, POST, DELETE, PUT) are carried out by default form
Description, wherein preset format are included such as forms such as JSON objects, JSON arrays, XML nodes.Third-party application end 110 forms and connect
Metamessage array corresponding to mouth call request.Multiple Open api interfaces institutes that third-party application end 110 will need batch to call
Corresponding metamessage array and for represent multiple Open api interfaces with the presence or absence of call timing requirements gomma letter
Breath is sent to interface IP address corresponding to proxy server 120.
Proxy server 120 parses metamessage array, obtains the call address information of multiple Open api interfaces, incoming ginseng
The relevant informations such as number, the HTTP method used.Specifically, there is provided interface bulk calls the proxy server 120 of service to receive and criticized
Measure call request, according to metamessage array obtain third-party application end 110 calling Open api interfaces call address information,
The relevant information such as specific incoming parameter list and the HTTP method of initiation call request.Proxy server 120 is by the tune of api interface
Intranet domain name or IP address of internal network corresponding to the domain name part in address information is substituted for, call ground with Intranet corresponding to generation
Location information.Proxy server 120 judges to whether there is calling timing requirements between multiple interfaces.Specifically, proxy server 120
The Intranet HTTP request bag data according to corresponding to the information of decomposition generates Open api interfaces calling, according to the multiple Open of expression
Api interface is judged with the presence or absence of the label information of calling timing requirements.
(1) if, label information represents that multiple Open api interfaces are not present and calls timing requirements, proxy server 120
It is called with concurrent invocation pattern, is concurrently sent multiple Intranet HTTP request bag datas to each by concurrent operations
On API service end 130 corresponding to Open api interfaces.N number of Intranet HTTP request is concurrently initiated, refers to and has sent an interface
After corresponding Intranet HTTP request bag, immediately begin to send the Intranet HTTP request bag corresponding to next interface, until all N
The Intranet HTTP request bag of individual interface is all sent, and just starts to receive the returning result of each interface, until all N number of interfaces
Returning result be all received untill.
(2) if, label information represent that multiple Open api interfaces are present and call timing requirements, according to each Open
Arrangement of elements order of the api interface in metamessage array, is serially initiated interior corresponding to each Open api interfaces successively
Net HTTP request.N number of Intranet HTTP request is serially initiated, refers to send the Intranet HTTP request bag corresponding to an interface
Afterwards, wait synchronous block type and receive the returning result of the interface, until receiving returning result, could continue to send next
Intranet HTTP request bag corresponding to individual interface and its returning result packet to be received is waited, so repeatedly until all N number of
The Intranet HTTP request of interface is all completed.
Proxy server 120 sends the API service end 130 corresponding to Intranet HTTP request bag data to Open api interfaces
Afterwards, the result of the API service end 130 return is received, handles and sends to third-party application end 110.
Interface bulk call service proxy server 120 receive the Intranet HTTP corresponding to Open api interfaces please
After the returning result asked, by the returning result of each api interface with preset format, such as JSON objects or XML node form, enter
Row description, and put it into according to order of each interface in metamessage array in JSON arrays or XML object, and should
JSON arrays or XML object are back to third-party application end 110.
After third-party application end 110 receives the returning result of interface bulk call request, connect according to each Open API
Mouth putting in order in the metamessage array parses to returning result, right with obtained each Open api interfaces institute
The returning result answered.
When needing to call N number of no context data dependence relation in some service request processing procedure of third-party application
Open api interfaces when, using the system, N number of Open api interfaces call the time T1 consumed to pass through below equation
It is calculated:
1 public network HTTP/HTTPS Connection Time of T1 ≈+N number of Intranet HTTP Connection Time+N number of interface API business is taking
Processing time+N number of Intranet HTTP request bag at business device end and+1 public network HTTP/HTTPS request bag of transmission time of response bag
With the transmission time of response bag.
Using conventional implementation, the time T2 consumed on this N number of Open api interface calls can be by equation below meter
Draw:
Processing time+N number of public network HTTP/ of the T2 ≈ N number of public network HTTP/HTTPS Connection Time+N number of interface in service end
The transmission time of HTTPS request bag and response bag.
Because the network speed of public network is lower than inner-mesh network speed very more, while each interface is in the processing of server end
Time is also much smaller compared with transmission time of the data on public network, therefore T2/T1 is adjusting close to N, i.e. third-party application
During with the Open api interfaces of N number of no context data dependence relation, nearly N times of lifting will be had using the performance of the system.
If Fig. 3 is to call tri- Open api interfaces of A, B, C of no context data dependence relation to adjust with third-party application
Exemplified by, it compared for applying the calling sequential relationship before and after the system.As shown in figure 3, a be using the system before, A, B, C interface
Initiate to ask to server end successively, and receive the request of server end.B be have call timing condition under using the system when
Order relation, tri- interfaces of A, B, C call in batches to proxy server 120, and proxy server 120 is according to sequential relationship successively to clothes
Business device initiates to ask and receive request.C is without the sequential relationship that the system is applied under calling timing condition, tri- interfaces of A, B, C
Called in batches to proxy server 120, proxy server 120 initiates to ask by the way of concurrent invocation, while to server.
The total time-consuming that the multiple Open api interfaces of third-party application calling in a, b, c can be drawn is in substantially reduction trend.
Batch according to embodiments of the present invention calls the systematic comparison of api interface flexible, and allocating time reduces, and improves the
The performance of tripartite's application, and improve Consumer's Experience of the third party developer using the Open api interfaces of open platform.
Third-party application end 200 according to embodiments of the present invention, including acquisition module 210, transmission are described below with reference to Fig. 5
Module 220, receiving module 230 and add module 240.
Acquisition module 210 is used for the call address information and call parameters information for obtaining multiple api interfaces;Sending module
220 are used to send batch call request to proxy server, wherein, batch call request includes the calling by multiple api interfaces
The metamessage array of address information and call parameters information structure;Receiving module 230 is used for Receiving Agent server to be believed according to member
Cease the summarized results for multiple returning results that array obtains.
In one embodiment of the invention, in addition to add module 240, for according to the requirement that batch calls in batch
Gomma is called in addition in call request.
Proxy server invocation pattern according to corresponding to calling gomma to obtain, and according to corresponding invocation pattern and member
Multiple returning results corresponding to information array from multiple api interfaces acquisition.
Wherein, call parameters information include api interface be passed to parameter list, calling api interface used in HTTP
Method.
This third-party application end is described in detail with specific embodiment below, it is to be understood that described below
Merely for example purpose, not limited to this according to an embodiment of the invention.
Acquisition module 210 is by numbers such as the call address information of Open api interfaces, incoming parameter, the HTTP methods that should use
According to packing, the metamessage data corresponding to interface interchange are generated.Specifically, acquisition module 210 will need to carry out batch calling
The call address information of each Open api interfaces, call the parameter list being passed to needed for the api interface, call the api interface
The data such as used HTTP method (such as including GET, POST, DELETE, PUT) are described by default form, its
Middle preset format is included such as forms such as JSON objects, JSON arrays, XML nodes.Acquisition module 210 forms interface interchange request pair
The metamessage array answered.
Add module 240 adds the sequential for expression according to multiple Open api interfaces with the presence or absence of calling timing requirements
Mark.
The metamessage array and sequential corresponding to multiple Open api interfaces that sending module 220 will need batch to call
Mark is sent to interface IP address corresponding to proxy server.
Proxy server parses metamessage array, obtain the call address information of multiple Open api interfaces, incoming parameter,
The relevant informations such as the HTTP method used.Judge to whether there is calling timing requirements between multiple interfaces, it is corresponding respectively to use
Concurrent invocation pattern or serial invocation pattern are called, and proxy server sends Intranet HTTP request bag data to Open
After server corresponding to api interface, the result that the server is returned is received, handles and sends to third-party application
End.
, will be each after proxy server receives the returning result of the Intranet HTTP request corresponding to Open api interfaces
The returning result of api interface is described, and exist according to each interface with preset format, such as JSON objects or XML node form
Order in metamessage array is put it into JSON arrays or XML object, and the JSON arrays or XML object are back to
Third-party application end.
After receiving module 230 receives the returning result of interface bulk call request, exist according to each Open api interfaces
Putting in order in the metamessage array parses to returning result, with corresponding to obtained each Open api interfaces
Returning result.
When needing to call N number of no context data dependence relation in some service request processing procedure of third-party application
Open api interfaces when, according to this third-party application end and its system formed, N number of Open api interfaces are called and consumed
Time T1 can be calculated by below equation:
1 public network HTTP/HTTPS Connection Time of T1 ≈+N number of Intranet HTTP Connection Time+N number of interface API business is taking
Processing time+N number of Intranet HTTP request bag at business device end and+1 public network HTTP/HTTPS request bag of transmission time of response bag
With the transmission time of response bag.
Using conventional implementation, the time T2 consumed on this N number of Open api interface calls can be by equation below meter
Draw:
Processing time+N number of public network HTTP/ of the T2 ≈ N number of public network HTTP/HTTPS Connection Time+N number of interface in service end
The transmission time of HTTPS request bag and response bag.
Because the network speed of public network is lower than inner-mesh network speed very more, while each interface is in the processing of server end
Time is also much smaller compared with transmission time of the data on public network, therefore T2/T1 is adjusting close to N, i.e. third-party application
During with the Open api interfaces of N number of no context data dependence relation, nearly N times of lifting will be had using the performance of the system.
If Fig. 3 is to call tri- Open api interfaces of A, B, C of no context data dependence relation to adjust with third-party application
Exemplified by, it compared for applying the calling sequential relationship before and after the system.As shown in figure 3, a be using the system before, A, B, C interface
Initiate to ask to server end successively, and receive the request of server end.B be have call timing condition under using the system when
Order relation, tri- interfaces of A, B, C are called to proxy server batch, and proxy server is sent out to server successively according to sequential relationship
Rise and ask and receive request.C is without calling sequential relationship that the system is applied under timing condition, and tri- interfaces of A, B, C are to agency
Server batch calls, and proxy server initiates to ask by the way of concurrent invocation, while to server.Can draw a, b,
It is in substantially reduction trend that third-party application, which calls the total time-consuming of multiple Open api interfaces, in c.
The calling of multiple api interfaces is carried out batch calling by third-party application end according to embodiments of the present invention, is reduced
Allocating time, self performance is improved, and improve user of the third party developer using the Open api interfaces of open platform
Experience, flexibility and optimization space are brought to server end.
Proxy server 300 according to embodiments of the present invention is described below with reference to Fig. 6, including receiving module 310, result obtain
Modulus block 320, collect and sending module 330 and modular converter 340.
Wherein, receiving module 310 is used to receive the batch call request that third-party application end is sent to proxy server, its
In, batch call request is included by the call address information of multiple api interfaces and the metamessage array of call parameters information structure;
As a result acquisition module 320 is used for multiple returning results according to corresponding to metamessage array from multiple api interfaces acquisition;Collect and send out
Module 330 is sent to be used to collect multiple returning results and send to third-party application end.
Also include modular converter 340, call ground for the call address information of multiple api interfaces to be converted into multiple Intranets
Location information.
Wherein, have in batch call request and call gomma.Call parameters information includes the ginseng that api interface is passed to
Ordered series of numbers table, call HTTP method used in api interface.
As a result the invocation pattern according to corresponding to calling gomma to obtain of acquisition module 320, and according to corresponding calling mould
Multiple returning results corresponding to formula and metamessage array from multiple api interfaces acquisition.
Collect and sending module 330 returning result of multiple api interfaces is described with preset format it is multiple to generate
Result is described.
In one embodiment of the invention, when batch call request do not include call gomma, proxy server with
Concurrent invocation pattern is called;When batch call request includes calling gomma, proxy server is according to multiple api interfaces
Order in metamessage array is called with serial invocation pattern.
When batch call request include call gomma, collect and sending module 330 according to multiple api interfaces member believe
Multiple description results are put into a JSON array or XML object by the order in breath array, and by JSON arrays or XML pairs
As feeding back to third-party application end.
This proxy server is described in detail with specific embodiment below, it is to be understood that it is described below only
For illustrative purposes, not limited to this according to an embodiment of the invention.
Third-party application end is by the call address information of Open api interfaces, incoming parameter, the HTTP method that should use etc.
Data are packed, and generate the metamessage data corresponding to interface interchange.Specifically, third-party application end will need to carry out batch calling
Each Open api interfaces call address information, call needed for the api interface be passed to parameter list, call the API to connect
The data such as HTTP method (such as including GET, POST, DELETE, PUT) are described by default form used in mouthful,
Wherein preset format is included such as forms such as JSON objects, JSON arrays, XML nodes.Third-party application end forms interface interchange please
Metamessage array corresponding to asking.The metamessage corresponding to multiple Open api interfaces that third-party application end will need batch to call
Array and for represent multiple Open api interfaces with the presence or absence of call timing requirements gomma information send to agency
Interface IP address corresponding to server.
Receiving module 310 receives the batch call request that third-party application end is sent to proxy server, as a result obtains mould
Block 320 parses metamessage array, obtains the call address information, incoming parameter, the HTTP side used of multiple Open api interfaces
The relevant informations such as method.Specifically, the as a result offer of acquisition module 320 interface bulk calls the proxy server of service to receive batch tune
With request, the call address information of the Open api interfaces of third-party application end calling, specific biography are obtained according to metamessage array
Enter parameter list and initiate the relevant informations such as the HTTP method of call request.
Modular converter 340 by the domain name part in the call address information of api interface be substituted for corresponding to Intranet domain name or
IP address of internal network, with Intranet call address information corresponding to generation.
As a result acquisition module 320 judges to whether there is calling timing requirements between multiple interfaces.Specifically, mould is as a result obtained
The Intranet HTTP request bag data according to corresponding to the information of decomposition generates Open api interfaces calling of block 320, it is multiple according to expression
Open api interfaces are judged with the presence or absence of the label information of calling timing requirements.
(1) if, the judge mark information of result acquisition module 320 represent that multiple Open api interfaces are not present when calling
Sequence requirement, proxy server is called with concurrent invocation pattern, by concurrent operations by multiple Intranet HTTP request bag datas
Concurrently send to the server corresponding to each Open api interfaces.N number of Intranet HTTP request is concurrently initiated, refers to transmission
After Intranet HTTP request bag corresponding to a complete interface, immediately begin to send the Intranet HTTP request corresponding to next interface
Bag, until the Intranet HTTP request bag of all N number of interfaces is all sent, just start to receive the returning result of each interface, directly
Untill the returning result of all N number of interfaces is all received.
(2) call sequential will if the judge mark information of result acquisition module 320 represents that multiple Open api interfaces are present
Ask, then the arrangement of elements order according to each Open api interfaces in metamessage array, serially initiates each Open successively
Intranet HTTP request corresponding to api interface.N number of Intranet HTTP request is serially initiated, it is right to refer to have sent an interface institute
After the Intranet HTTP request bag answered, wait synchronous block type and receive the returning result of the interface, knot is returned until receiving
Fruit, it could continue to send the Intranet HTTP request bag corresponding to next interface and wait its returning result packet to be received,
So repeatedly until the Intranet HTTP request of all N number of interfaces is all completed.
Collect and sending module 330 send Intranet HTTP request bag data to Open api interfaces corresponding to server
Afterwards, the result that the server is returned is received, handles and sends to third-party application end.
After the returning result for receiving the Intranet HTTP request corresponding to Open api interfaces, collect and sending module
330 by the returning result of each api interface with preset format, such as JSON objects or XML node form, be described, and press
Put it into according to order of each interface in metamessage array in JSON arrays or XML object, collect and sending module 330 will
The JSON arrays or XML object are back to third-party application end.
After third-party application terminates the returning result for receiving interface bulk call request, exist according to each Open api interfaces
Putting in order in the metamessage array parses to returning result, with corresponding to obtained each Open api interfaces
Returning result.
When needing to call N number of no context data dependence relation in some service request processing procedure of third-party application
Open api interfaces when, using the system including this proxy server, N number of Open api interfaces call the time T1 consumed
It can be calculated by below equation:
1 public network HTTP/HTTPS Connection Time of T1 ≈+N number of Intranet HTTP Connection Time+N number of interface API business is taking
Processing time+N number of Intranet HTTP request bag at business device end and+1 public network HTTP/HTTPS request bag of transmission time of response bag
With the transmission time of response bag.
Using conventional implementation, the time T2 consumed on this N number of Open api interface calls can be by equation below meter
Draw:
Processing time+N number of public network HTTP/ of the T2 ≈ N number of public network HTTP/HTTPS Connection Time+N number of interface in service end
The transmission time of HTTPS request bag and response bag.
Because the network speed of public network is lower than inner-mesh network speed very more, while each interface is in the processing of server end
Time is also much smaller compared with transmission time of the data on public network, therefore T2/T1 is adjusting close to N, i.e. third-party application
During with the Open api interfaces of N number of no context data dependence relation, nearly N times of lifting will be had using the performance of the system.
If Fig. 3 is to call tri- Open api interfaces of A, B, C of no context data dependence relation to adjust with third-party application
Exemplified by, it compared for applying the calling sequential relationship before and after the system.As shown in figure 3, a be using the system before, A, B, C interface
Initiate to ask to server end successively, and receive the request of server end.B be have call timing condition under using the system when
Order relation, tri- interfaces of A, B, C are called to proxy server batch, and proxy server is sent out to server successively according to sequential relationship
Rise and ask and receive request.C is without calling sequential relationship that the system is applied under timing condition, and tri- interfaces of A, B, C are to agency
Server batch calls, and proxy server initiates to ask by the way of concurrent invocation, while to server.Can draw a, b,
It is in substantially reduction trend that third-party application, which calls the total time-consuming of multiple Open api interfaces, in c.
Proxy server according to embodiments of the present invention is parsed and is called according to batch call request, relatively more flexible,
Allocating time reduces compared with conventional method, can lift the performance of third-party application, improve third party developer's use and open
It is laid flat the Consumer's Experience of the Open api interfaces of platform.
In the description of this specification, reference term " one embodiment ", " some embodiments ", " example ", " specifically show
The description of example " or " some examples " etc. means specific features, structure, material or the spy for combining the embodiment or example description
Point is contained at least one embodiment or example of the present invention.In this manual, to the schematic representation of above-mentioned term not
Necessarily refer to identical embodiment or example.Moreover, specific features, structure, material or the feature of description can be any
One or more embodiments or example in combine in an appropriate manner.
Although an embodiment of the present invention has been shown and described, for the ordinary skill in the art, can be with
A variety of changes, modification can be carried out to these embodiments, replace without departing from the principles and spirit of the present invention by understanding
And modification, the scope of the present invention is by appended claims and its equivalent limits.
Claims (19)
1. a kind of method that batch calls api interface, it is characterised in that comprise the following steps:
Third-party application end obtains the call address information and call parameters information of multiple api interfaces, and is sent out to proxy server
Batch call request is sent, wherein, the batch call request includes the call address information and call parameters by multiple api interfaces
The metamessage array of information structure;
The proxy server multiple returning results according to corresponding to the metamessage array from the multiple api interface acquisition;
And
The proxy server is collected to the multiple returning result and sent to the third-party application end, wherein,
The call address information of the multiple api interface is converted to multiple Intranet call address information by the proxy server,
The proxy server returning result of the multiple api interface is described with preset format to generate multiple description knots
Fruit, when the batch call request includes calling gomma, the proxy server is according to the multiple api interface described
The multiple description result is put into a JSON array or XML object by the order in metamessage array, and by described in
JSON arrays or XML object feed back to the third-party application end.
2. the method that batch as claimed in claim 1 calls api interface, it is characterised in that also include:
Added according to the requirement that the batch calls in the batch call request and call sequential mark in the third-party application end
Note.
3. the method that batch as claimed in claim 2 calls api interface, it is characterised in that also include:
Proxy server invocation pattern according to corresponding to calling gomma to obtain, and according to the corresponding invocation pattern
With the metamessage array from the multiple api interface obtain corresponding to multiple returning results.
4. the method that batch as claimed in claim 3 calls api interface, it is characterised in that
When the batch call request does not include calling gomma, the proxy server is adjusted with concurrent invocation pattern
With;And
When the batch call request includes calling gomma, the proxy server is according to the multiple api interface in institute
The order stated in metamessage array is called with serial invocation pattern.
5. the method that the batch as described in claim any one of 1-4 calls api interface, it is characterised in that the call parameters
Information include api interface be passed to parameter list, calling api interface used in HTTP method.
6. the system that a kind of batch calls api interface, it is characterised in that including third-party application end, proxy server and at least
One API service end, wherein,
The third-party application end, for obtaining the call address information and call parameters information of multiple api interfaces, and to described
Proxy server sends batch call request, wherein, the batch call request includes being believed by the call address of multiple api interfaces
The metamessage array of breath and call parameters information structure;
The proxy server, for multiple returns according to corresponding to the metamessage array from the multiple api interface acquisition
As a result, and the multiple returning result is collected and sent to the third-party application end;And
At least one API service end, for providing the multiple api interface, wherein,
The proxy server, it is additionally operable to the call address information of the multiple api interface being converted to multiple Intranets calling ground
Location information, the proxy server returning result of the multiple api interface are described with preset format multiple to generate
Result is described, when the batch call request includes calling gomma, the proxy server is according to the multiple api interface
The multiple description result is put into a JSON array or XML object by the order in the metamessage array, and will
The JSON arrays or XML object feed back to the third-party application end.
7. the system that batch as claimed in claim 6 calls api interface, it is characterised in that the third-party application end, also use
Gomma is called in being added according to the requirement that the batch calls in the batch call request.
8. the system that batch as claimed in claim 7 calls api interface, it is characterised in that the proxy server, be additionally operable to
The invocation pattern according to corresponding to calling gomma to obtain, and according to the corresponding invocation pattern and the metamessage array from
Multiple returning results corresponding to the multiple api interface acquisition.
9. the system that batch as claimed in claim 8 calls api interface, it is characterised in that wherein,
When the batch call request does not include calling gomma, the proxy server is adjusted with concurrent invocation pattern
With;And
When the batch call request includes calling gomma, the proxy server is according to the multiple api interface in institute
The order stated in metamessage array is called with serial invocation pattern.
10. the system that the batch as described in claim any one of 6-9 calls api interface, it is characterised in that the call parameters
Information include api interface be passed to parameter list, calling api interface used in HTTP method.
A kind of 11. third-party application end, it is characterised in that including:
Acquisition module, for obtaining the call address information and call parameters information of multiple api interfaces;
Sending module, for sending batch call request to proxy server, wherein, the batch call request is included by multiple
The call address information of api interface and the metamessage array of call parameters information structure;And
Receiving module, the multiple returning results obtained for receiving the proxy server according to the metamessage array collect
As a result, wherein, the call address information of the multiple api interface is converted to multiple Intranet call address by the proxy server
The returning result of the multiple api interface is described with preset format to generate multiple retouch for information, the proxy server
Result is stated, when the batch call request includes calling gomma, the proxy server exists according to the multiple api interface
The multiple description result is put into a JSON array or XML object by order in the metamessage array, and by institute
State JSON arrays or XML object feeds back to the third-party application end.
12. third-party application end as claimed in claim 11, it is characterised in that also include:
Add module, gomma is called for being added according to the requirement that the batch calls in the batch call request.
13. third-party application end as claimed in claim 12, it is characterised in that the proxy server is according to calling sequential mark
Invocation pattern corresponding to note acquisition, and connect according to the corresponding invocation pattern and the metamessage array from the multiple API
Multiple returning results corresponding to mouth acquisition.
14. third-party application end as claimed in claim 11, it is characterised in that the call parameters information includes api interface
The parameter list that is passed to, call HTTP method used in api interface.
A kind of 15. proxy server, it is characterised in that including:
Receiving module, the batch call request sent for receiving third-party application end to proxy server, wherein, the batch
Call request is included by the call address information of multiple api interfaces and the metamessage array of call parameters information structure;
As a result acquisition module, knot is returned to for multiple according to corresponding to the metamessage array from the multiple api interface acquisition
Fruit;And
Collect and sending module, for being collected to the multiple returning result and being sent to the third-party application end;
Modular converter, for the call address information of the multiple api interface to be converted into multiple Intranet call address information;
It is described collect and sending module the returning result of the multiple api interface is described with preset format it is multiple to generate
Result is described, it is described to collect and sending module is according to the multiple API when the batch call request includes calling gomma
The multiple description result is put into a JSON array or XML object by order of the interface in the metamessage array,
And the JSON arrays or XML object are fed back into the third-party application end.
16. proxy server as claimed in claim 15, it is characterised in that wherein, in the batch call request have and adjust
Use gomma.
17. proxy server as claimed in claim 16, it is characterised in that the result acquisition module is according to calling sequential mark
Invocation pattern corresponding to note acquisition, and connect according to the corresponding invocation pattern and the metamessage array from the multiple API
Multiple returning results corresponding to mouth acquisition.
18. proxy server as claimed in claim 17, it is characterised in that
When the batch call request does not include calling gomma, the proxy server is adjusted with concurrent invocation pattern
With;And
When the batch call request includes calling gomma, the proxy server is according to the multiple api interface in institute
The order stated in metamessage array is called with serial invocation pattern.
19. proxy server as claimed in claim 15, it is characterised in that the call parameters information includes api interface institute
Incoming parameter list, call HTTP method used in api interface.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310217832.4A CN103345420B (en) | 2013-06-03 | 2013-06-03 | Batch calls the mthods, systems and devices of api interface |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310217832.4A CN103345420B (en) | 2013-06-03 | 2013-06-03 | Batch calls the mthods, systems and devices of api interface |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103345420A CN103345420A (en) | 2013-10-09 |
CN103345420B true CN103345420B (en) | 2017-12-22 |
Family
ID=49280218
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310217832.4A Active CN103345420B (en) | 2013-06-03 | 2013-06-03 | Batch calls the mthods, systems and devices of api interface |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103345420B (en) |
Families Citing this family (42)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104852939B (en) * | 2014-02-18 | 2018-07-24 | 中国电信股份有限公司 | A kind of method and system of deployment ability interface |
CN103905551B (en) * | 2014-04-02 | 2018-07-24 | 北京中交兴路车联网科技有限公司 | A kind of service calling method and device |
CN105516215B (en) * | 2014-09-22 | 2018-11-16 | 阿里巴巴集团控股有限公司 | Asynchronous invoking method and device |
CN104580501A (en) * | 2015-01-23 | 2015-04-29 | 广东能龙教育股份有限公司 | Http interface dynamic publishing method and system based on reflex mechanism |
CN104732331B (en) | 2015-02-13 | 2017-04-12 | 腾讯科技(深圳)有限公司 | grouping management method, device and system |
CN106470226B (en) * | 2015-08-18 | 2020-01-03 | 阿里巴巴集团控股有限公司 | Agent method and device for message interaction between client and server |
CN106484603B (en) * | 2015-08-26 | 2019-08-09 | 阿里巴巴集团控股有限公司 | A kind of service test method and device |
CN106802859A (en) * | 2015-11-25 | 2017-06-06 | 北京京东尚科信息技术有限公司 | A kind of method and device of client software test |
CN107231398A (en) * | 2016-03-25 | 2017-10-03 | 阿里巴巴集团控股有限公司 | Information interacting method and device |
CN107423041B (en) * | 2016-03-31 | 2021-05-07 | 阿里巴巴集团控股有限公司 | Method and apparatus for implementing application programming interface configuration and invocation |
CN107888631A (en) * | 2016-09-28 | 2018-04-06 | 北京京东尚科信息技术有限公司 | A kind of interface interchange method and apparatus of configurable combination |
CN107920094B (en) * | 2016-10-08 | 2021-07-16 | 阿里巴巴集团控股有限公司 | Data acquisition method and device, server and network equipment |
CN107918562B (en) * | 2016-10-11 | 2021-11-26 | 北京京东尚科信息技术有限公司 | Unified interface management method and system |
CN106648858A (en) * | 2016-11-29 | 2017-05-10 | 深圳市捷顺科技实业股份有限公司 | Interactive management system for C# interface data |
CN106557698B (en) * | 2016-11-29 | 2019-08-02 | 武汉斗鱼网络科技有限公司 | A kind of component detection method and apparatus in application |
CN107046482B (en) * | 2017-04-25 | 2019-10-11 | 厦门集微科技有限公司 | A kind of management method and device of API service |
CN106959672B (en) * | 2017-04-28 | 2020-07-28 | 深圳市汇川控制技术有限公司 | Industrial motion control system and method based on API |
CN109218371B (en) * | 2017-07-06 | 2021-10-19 | 阿里巴巴集团控股有限公司 | Method and equipment for calling data |
CN107678794B (en) * | 2017-09-22 | 2021-01-01 | 努比亚技术有限公司 | Application program starting interface merging method and mobile terminal |
CN107623788B (en) * | 2017-09-22 | 2020-10-27 | 海南飞特同创科技有限公司 | Method and device for improving application starting speed and computer readable storage medium |
CN107733879A (en) * | 2017-09-29 | 2018-02-23 | 努比亚技术有限公司 | Client terminal start-up method, mobile terminal and computer storage media |
CN107818022B (en) * | 2017-10-25 | 2021-08-24 | 努比亚技术有限公司 | Application program interface merging method, mobile terminal and computer readable storage medium |
CN107748681A (en) * | 2017-10-27 | 2018-03-02 | 努比亚技术有限公司 | A kind of interface merges control method, equipment and computer-readable recording medium |
CN107729215A (en) * | 2017-10-30 | 2018-02-23 | 努比亚技术有限公司 | Interface interchange method, mobile terminal and computer-readable recording medium |
CN107809332A (en) * | 2017-11-10 | 2018-03-16 | 中国民生银行股份有限公司 | Compound interface configures and compound interface call method, device |
CN107832163A (en) * | 2017-11-29 | 2018-03-23 | 努比亚技术有限公司 | A kind of buffering updating method, server and computer-readable recording medium |
CN109901989B (en) * | 2017-12-11 | 2023-12-12 | 阿里巴巴(中国)有限公司 | JSON comparison method and device and electronic equipment |
CN108279985B (en) * | 2017-12-22 | 2021-11-19 | 努比亚技术有限公司 | Interface request protocol transformation method, equipment and computer readable storage medium |
CN108696568B (en) * | 2018-02-23 | 2021-07-06 | 福建天泉教育科技有限公司 | Request batch processing method and terminal |
US10437634B1 (en) | 2018-04-16 | 2019-10-08 | Microsoft Technology Licensing Llc | Independently threading API calls to service a request |
CN109165935A (en) * | 2018-07-02 | 2019-01-08 | 平安科技(深圳)有限公司 | Batch payment method, device, computer equipment and storage medium |
CN110837446A (en) * | 2018-08-16 | 2020-02-25 | 北京嘉楠捷思信息技术有限公司 | Equipment management method and device applied to embedded system, medium and embedded equipment |
CN111142960B (en) * | 2018-11-02 | 2023-11-14 | 中国电信股份有限公司 | Interface providing method, device and system |
CN110134429A (en) * | 2019-04-02 | 2019-08-16 | 惠州学院 | Network information browsing method, device, equipment, storage medium and system |
CN110502319B (en) * | 2019-08-23 | 2021-10-12 | 腾讯科技(深圳)有限公司 | Distributed transaction processing method and device, electronic equipment and storage medium |
CN112732417A (en) * | 2019-10-28 | 2021-04-30 | 北京京东振世信息技术有限公司 | Method and device for processing application request |
CN110838957A (en) * | 2019-11-27 | 2020-02-25 | 深圳开思时代科技有限公司 | API interface debugging method based on server |
CN111552578B (en) * | 2020-04-30 | 2023-08-04 | 成都新潮传媒集团有限公司 | Third party interface calling method and device |
CN112882852A (en) * | 2021-03-25 | 2021-06-01 | 上海科世达-华阳汽车电器有限公司 | Interface data storage method and device and computer readable storage medium |
WO2023024035A1 (en) * | 2021-08-26 | 2023-03-02 | 阿波罗智联(北京)科技有限公司 | Request processing method and apparatus, electronic device, and storage medium |
CN116954761A (en) * | 2022-04-18 | 2023-10-27 | 鼎捷软件股份有限公司 | Automatic service arrangement and execution system and method thereof |
CN115174683B (en) * | 2022-06-29 | 2023-10-13 | 广州鲁邦通智能科技有限公司 | Request method and system for calling query interface |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1867898A (en) * | 2003-10-14 | 2006-11-22 | 国际商业机器公司 | Method and apparatus for processing service requests in a service-oriented architecture |
CN102521408A (en) * | 2011-12-27 | 2012-06-27 | 北京人大金仓信息技术股份有限公司 | Method for accessing flat file by using java database connectivity (JDBC) interface |
CN102880475A (en) * | 2012-10-23 | 2013-01-16 | 上海普元信息技术股份有限公司 | Real-time event handling system and method based on cloud computing in computer software system |
CN102957696A (en) * | 2012-10-25 | 2013-03-06 | 北京奇虎科技有限公司 | Data processing method and device |
-
2013
- 2013-06-03 CN CN201310217832.4A patent/CN103345420B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1867898A (en) * | 2003-10-14 | 2006-11-22 | 国际商业机器公司 | Method and apparatus for processing service requests in a service-oriented architecture |
CN102521408A (en) * | 2011-12-27 | 2012-06-27 | 北京人大金仓信息技术股份有限公司 | Method for accessing flat file by using java database connectivity (JDBC) interface |
CN102880475A (en) * | 2012-10-23 | 2013-01-16 | 上海普元信息技术股份有限公司 | Real-time event handling system and method based on cloud computing in computer software system |
CN102957696A (en) * | 2012-10-25 | 2013-03-06 | 北京奇虎科技有限公司 | Data processing method and device |
Also Published As
Publication number | Publication date |
---|---|
CN103345420A (en) | 2013-10-09 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103345420B (en) | Batch calls the mthods, systems and devices of api interface | |
CN106961741B (en) | A kind of uplink resource allocating method and device | |
CN110351342A (en) | Service order processing method, device, computer equipment and storage medium | |
CN103440574B (en) | Game payment processing method, client and system | |
CN104301443B (en) | A kind of method and system that end ability interface is called on web page | |
US11196677B2 (en) | Heterogeneous multi-protocol stack method, apparatus, and system | |
CN103209407B (en) | The downloading management method of application program, system and mobile terminal in mobile terminal | |
CN104753980B (en) | Data transmission method and relevant apparatus and communication system | |
CN102771164B (en) | Methods and apparatus providing intelligent radio selection for legacy and non-legacy applications | |
CN109699084A (en) | Information transferring method, terminal and the network equipment under unauthorized frequency range | |
CN105634926B (en) | Resource sharing method, device and system | |
CN110519711A (en) | A kind of information push method, device, storage medium and server | |
CN109729544A (en) | Packet loss calculation method, the network equipment and terminal | |
CN107179951A (en) | Remote procedure calling (PRC) method and device | |
CN107181779A (en) | Processing method, the device and system of access request | |
CN106559806A (en) | Double-channel data transmission method, device, network node and mobile terminal | |
CN106933839A (en) | A kind of method for page jump and device | |
CN109189400A (en) | Program dissemination method and device, storage medium, processor | |
CN106790603A (en) | The method of interacting message, apparatus and system | |
EP2846511A1 (en) | Voip client and call implementation method thereof, and user terminal | |
CN102685153B (en) | Resource platform opens the method and resource platform of third party's service | |
CN106357713A (en) | Remote procedure call realizing method, client side device and server device | |
CN109725887A (en) | Data interactive method, device and terminal device based on message research and development frame | |
CN109413224A (en) | Message forwarding method and device | |
CN114721842A (en) | Service calling method and device and electronic equipment |
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 |