CN108388475A - A kind of method and system based on terminal type provisioning API resource - Google Patents

A kind of method and system based on terminal type provisioning API resource Download PDF

Info

Publication number
CN108388475A
CN108388475A CN201810165245.8A CN201810165245A CN108388475A CN 108388475 A CN108388475 A CN 108388475A CN 201810165245 A CN201810165245 A CN 201810165245A CN 108388475 A CN108388475 A CN 108388475A
Authority
CN
China
Prior art keywords
api
terminal
request
application interface
service
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
CN201810165245.8A
Other languages
Chinese (zh)
Other versions
CN108388475B (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.)
Heilongjiang Zhenning Technology Co ltd
Original Assignee
GUANGZHOU DEVICEGATE INFORMATION TECHNOLOGY 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 GUANGZHOU DEVICEGATE INFORMATION TECHNOLOGY Co Ltd filed Critical GUANGZHOU DEVICEGATE INFORMATION TECHNOLOGY Co Ltd
Priority to CN201810165245.8A priority Critical patent/CN108388475B/en
Publication of CN108388475A publication Critical patent/CN108388475A/en
Application granted granted Critical
Publication of CN108388475B publication Critical patent/CN108388475B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • 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/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • 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/48Program initiating; Program switching, e.g. by interrupt
    • G06F9/4806Task transfer initiation or dispatching
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/02Network architectures or network communication protocols for network security for separating internal from external traffic, e.g. firewalls
    • H04L63/0227Filtering policies
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/60Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources

Abstract

The invention discloses a kind of method and system based on terminal type provisioning API resource, method includes:The API resource request messages of corresponding terminal transmission are received within the scope of preset duration based on each application interface;The API request packet is sent to API server;API server applies for the legitimacy of API based on the API service requests verification user in API request packet;The API service type is sent to each application interface by the API server, and each interface in each application interface calculates occupancy weights of the API request packet on corresponding application interface based on API service type;The user terminal corresponding to the API service request by legitimate verification pushes API service response message.Through the embodiment of the present invention, some illegal API requests are filtered out, API user is enable rationally to utilize server resource, then legal API service request is pushed on user terminal.

Description

A kind of method and system based on terminal type provisioning API resource
Technical field
The present invention relates to information technology fields, and in particular to a kind of method based on terminal type provisioning API resource and is System.
Background technology
The common application programming interface of industrial quarters (Application Programming Interface, API) is pacified Be with management platform entirely it is a set of operate in data center, cloud service center application software, for the API producer, API consume The roles such as person, API managers provide API gateway, API portals, API life cycle managements, API monitoring, API key managements And the assembly functions such as API practicality situation analysis, Fig. 1 show the structural schematic diagram of API safety and management platform.API safety with Management platform operation system environments include:Meet J2EE specifications middleware (such as:Tomcat, Weblogic etc.), Oracle or Mysql databases.It is different that application programming interfaces API is directly invoked from traditional application program, and information centre needs API safety and management software are first enabled, application program can pass through one before calling the application programming interfaces (API) in resource A API gateway, the gateway can realize safe access control and the dynamic call to API, i.e. API nets according to certain scheduling strategy Module is closed to be responsible for carrying out route agent, performance distribution to entire API resources.
As shown in Fig. 2, API gateway is operated in as intermediate node between application program and server A PI resources, play The important function of API scheduling of resource and control.For example assume 1 API background system, 100 concurrent requests of maximum support per second, More than this numerical value, system will collapse, therefore limit request.If there are 20 consumers to subscribe at present, ask within average 1 second 1 is asked, peak value request 10 per second, then the request each subscribed to will be limited at 10 or less.Industry generally uses at present Every layer of service association is arranged by service-level agreement (Service-Level Agreement, SLA) in a kind of " air throttle " technology The maximum available request number of view.For example, maximum 5000 requests, secondary service are 50 maximum per hour per hour for level-one service Request.Such as set some API maximum can call number be 50, each Connection Time is 60000 milliseconds.Therefore work as and apply It when the routine call API is more than 50 times, does not allow for recalling, this application journey to certain specific transactions frequent operations It is inappropriate for sequence.
Provisioning API resource is realized using services configuration protocol shown in Fig. 2 in the prior art, it is many invalid to cause API is finally fed back and is responded on API server, and since network identity possessed by different terminals type and API take The involved personalization of business request also can be different, how to filter out some invalid API requests and configured according to terminal type In corresponding API resources to terminal, needs to be optimized system and scheme itself and just may be implemented.
Invention content
Technical scheme of the present invention preferably provisioning API resource cannot realize that API resource distributions are right to institute primarily directed to API On the user terminal answered, each resource end data is obtained according to a time length using elder generation, filters out some illegal API requests, It is realizing weight computing, API user is enable rationally to utilize server resource, legal API service is then asked into push Onto user terminal.
The present invention provides a kind of method based on terminal type provisioning API resource, the method includes:
The API resource request messages of corresponding terminal transmission, institute are received within the scope of preset duration based on each application interface State the network identity and API service request that API resource request messages include counterpart terminal;
Each application interface is asked according to the API of the corresponding terminal of preset duration range generation in each application interface Packet is sought, and the API request packet is sent to API server;
API server applies for the legitimacy of API based on the API service requests verification user in API request packet;
After the API service request of user passes through legitimate verification, it is corresponding eventually that API server is based on network identity acquisition The API service type at end, the API service type are configured by the terminal type of counterpart terminal;
The API service type is sent to each application interface by the API server, in each application interface Each interface calculates occupancy weights of the API request packet on corresponding application interface based on API service type;
Use services configuration protocol for each interface provisioning API visit capacity in each application programming interfaces;
The user terminal corresponding to the API service request by legitimate verification pushes API service response message.
Each application interface is asked according to the API of the corresponding terminal of preset duration range generation in each application interface The packet is asked to include:
Within the scope of the preset duration, each application interface counts corresponding terminal hair within the scope of preset duration The API resource request message quantity sent;
When preset duration range reaches, by the network identity of corresponding terminal, API service request, resource request message Quantity and duration value are encapsulated in API request packet with data structure.
Each interface in each application interface calculates the API request packet corresponding based on API service type Application interface on occupancy weights include:
Obtain the target type and network identity of terminal corresponding to API service type;
Right to occupation of the API request packet on corresponding application interface is calculated based on target type and network identity Value.
It is described that API request packet the accounting on corresponding application interface is calculated based on target type and network identity Include with weights:
Weight coefficient is occupied accordingly based on the target type and network identification match;
Right to occupation of the API request packet on corresponding application interface is calculated based on the occupancy weight coefficient Value.
The user terminal corresponding to the API service request by legitimate verification pushes API service and includes:
According to the terminal capability parameters where API service acquisition request each user terminal;
The API service response message is split according to the terminal capability parameters where user terminal;
The API service response message generated after fractionation is sent to user terminal.
Correspondingly, the present invention also provides a kind of system based on terminal type provisioning API resource, the system comprises:
API gateway, the API resources sent for receiving corresponding terminal within the scope of preset duration based on each application interface Request message, the API resource request messages include network identity and the API service request of counterpart terminal;Each application connects Each application interface generates the API request packet of corresponding terminal according to the preset duration range in mouthful, and by the API request Packet is sent to API server
API server, the legitimacy for applying for API based on the API service requests verification user in API request packet; The API service request of user is by the way that after legitimate verification, API server obtains the API clothes of counterpart terminal based on network identity Service type, the API service type are configured by the terminal type of counterpart terminal;And the API service type is sent To each application interface;
The API gateway is used to calculate the API based on API service type based on each interface in each application interface Occupancy weights of the request bag on corresponding application interface;Use services configuration protocol in each application programming interfaces Each interface provisioning API visit capacity;The user terminal corresponding to the API service request by legitimate verification pushes API service Response message.
The API gateway is additionally operable within the scope of the preset duration, and each application interface is in preset duration range The API resource request message quantity that terminal corresponding to interior statistics is sent;When preset duration range reaches, by corresponding terminal Network identity, API service request, resource request message quantity and duration value are encapsulated in API request packet with data structure.
The API gateway is additionally operable to obtain the target type and network identity of terminal corresponding to API service type;And base Occupancy weights of the API request packet on corresponding application interface are calculated in target type and network identity.
The API gateway is additionally operable to occupy weight coefficient accordingly based on the target type and network identification match;Base Occupancy weights of the API request packet on corresponding application interface are calculated in the occupancy weight coefficient.
The API gateway is additionally operable to according to the terminal capability parameters where API service acquisition request each user terminal;Root The API service response message is split according to the terminal capability parameters where user terminal;The API service that will be generated after fractionation Response message is sent to user terminal.
Technical solution of the present invention of the embodiment of the present invention is primarily based on each application interface and realizes API resources in preset time Collection, terminal type involved by object, API service request, network identity to API resource requests etc. formed an API Request bag, server-side filter out the API request of some incongruent safety standards after receiving request bag, in server end Packet, then the occupancy weights on each application interface shared by terminal, base are calculated for legal API request packet by each application interface It completes to push API service to corresponding user terminal in services configuration protocol.Under this pattern, API service can be passed through Device reduces invalid API applications, can also according to involved by terminal type and the configurations such as network identity reasonably occupy weights, The feedback effect rate for effectively promoting entire API gateway also reduces invalid API and occupies weights, promotes API gateway to effectively eventually The API Allocation Efficiencies at end.
Description of the drawings
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technology description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this Some embodiments of invention for those of ordinary skill in the art without creative efforts, can be with Other attached drawings are obtained according to these attached drawings.
Fig. 1 is API safety in the prior art and management platform structural schematic diagram;
Fig. 2 is the system structure diagram in the prior art based on SAL provisioning API visit capacities;
Fig. 3 is the system structure diagram based on terminal type provisioning API resource in the embodiment of the present invention;
Fig. 4 is the method flow diagram based on terminal type provisioning API resource in the embodiment of the present invention.
Specific implementation mode
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation describes, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on Embodiment in the present invention, those of ordinary skill in the art are obtained all other without creative efforts Embodiment shall fall within the protection scope of the present invention.
The system of dynamic configuration API Access amount as shown in Figure 3, including API gateway, multiple application terminals, multiple services Device etc., API gateway are connected to multiple application terminals and multiple servers, wherein:It is whole with application that API gateway manages multiple servers Service between end there are multiple api interfaces to be communicated with corresponding application terminal on API gateway, these application terminals are general The terminal of all types of addressable networks, such as mobile phone, PAD, PC etc. store on each server in multiple servers multiple API completes the tune of corresponding API application programs by API resource request messages of the API gateway transmitted by application terminal With.Gateway is equipped with multiple api interfaces, is connect with multiple application terminals, the calling for receiving API application programs is multiple Api interface receives the API resource request messages that corresponding terminal is sent within the scope of preset duration based on each application interface, respectively answers The API request packet of corresponding terminal is generated according to the preset duration range with each application interface in interface;Multiple API services Device, for storing API resources;There are multiple api interfaces on API gateway or multiple api interfaces can be connected to, and be connected to Multiple API servers, wherein:
API gateway, the API resources sent for receiving corresponding terminal within the scope of preset duration based on each application interface Request message, the API resource request messages include network identity and the API service request of counterpart terminal;Each application connects Each application interface generates the API request packet of corresponding terminal according to the preset duration range in mouthful, and by the API request Packet is sent to API server;
API server, the legitimacy for applying for API based on the API service requests verification user in API request packet; The API service request of user is by the way that after legitimate verification, API server obtains the API clothes of counterpart terminal based on network identity Service type, the API service type are configured by the terminal type of counterpart terminal;And the API service type is sent To each application interface;
API gateway is asked for calculating the API based on API service type based on each interface in each application interface Seek occupancy weights of the packet on corresponding application interface;Use services configuration protocol to be every in each application programming interfaces One interface provisioning API visit capacity;The user terminal corresponding to the API service request by legitimate verification pushes API service and answers Answer message.
Application program calls the API being deployed on different server by API gateway, and application program is mounted in accordingly On application terminal, and application terminal is based on corresponding interface and sends corresponding API resource requests to API gateway.The skill of the present invention Art scheme is realized using services configuration protocol file in API gateway management.API gateway can be when default In long range, the API resources that corresponding application terminal is sent are counted within the scope of preset duration based on each application interface and are asked Seek message number;When preset duration range reaches, the network identity of corresponding terminal, API service request, resource request are disappeared Breath quantity and duration value are encapsulated in API request packet with data structure.
API gateway is in the target type and network identity for obtaining terminal corresponding to API service type;And it is based on target class Type and network identity calculate occupancy weights of the API request packet on corresponding application interface.
API gateway is based on the target type and network identification match occupies weight coefficient accordingly;Based on the occupancy Weight coefficient calculates occupancy weights of the API request packet on corresponding application interface.
API gateway is according to the terminal capability parameters where API service acquisition request each user terminal;According to user terminal institute Terminal capability parameters the API service response message is split;The API service response message generated after fractionation is sent out It is sent to user terminal.
Correspondingly, Fig. 4 shows the method flow diagram based on terminal type provisioning API resource in the embodiment of the present invention, Specifically comprise the following steps:
S401, the API resource requests for being received corresponding terminal transmission within the scope of preset duration based on each application interface are disappeared Breath;
It should be noted that the API resource request messages that application terminal is sent are received within the scope of api interface preset duration, It is handled as unit of millisecond, for example 50ms or 10ms etc. is that a unit is received, foot for this response time Enough cope with the time demand of each application terminal.It is general that the API request message transmitted by each application terminal is received based on application interface Include that the network identity of counterpart terminal and API service request, network identity here generally may relate to arrive application terminal Network state involved by MAC Address and MAC Address can get the application corresponding to the MAC Address eventually by MAC Address Relevant performance parameter, such as the network responding ability etc. involved by involved application terminal are held, and API service request is Refer to the API request object involved by application terminal.Application terminal and involved is generally ignored in API service request involved at present And terminal actual performance or network response etc., in API request message by network identity and API service request be reported to clothes Business end may be implemented various to distribute process rationally.
, can be within the scope of preset duration in specific implementation process, each application interface counts within the scope of preset duration The API resource request message quantity that corresponding terminal is sent;When preset duration range reaches, by the network mark of corresponding terminal Know, API service is asked, resource request message quantity and duration value are encapsulated in API request packet, entire API request with data structure Packet covers the SOT state of termination needed for entire API resources, also covers request object.
Each application interface generates the API of corresponding terminal according to the preset duration range in S402, each application interface Request bag, and API request packet is sent to API server;
It should be noted that within the scope of the preset duration, each application interface in each application interface is when default The API resource request message quantity that the corresponding terminal of statistics is sent in long range;It, will be corresponding when preset duration range reaches Terminal type, API resource request messages, resource request message quantity and duration value are encapsulated in API request packet with data structure.This A little data form an API request packet can be subject to dissection process in API gateway, and these API request packets are on API gateway After completing dissection process, on being sent to corresponding API server according to the requested API server of API request packet.
S403, API server apply for the legitimacy of API based on the API service requests verification user in API request packet, if Then enter S404 by verifying;
After API server receives API request packet, it is necessary first to complete legitimate verification process to API request packet, such as The request of these API services of fruit can illustrate that the request of these API services is effective by the verification of corresponding API server, and API service request cannot illustrate that the request of these API services is invalid, can not have to enter next step by verification Occupy weights calculating process, it is only necessary to the connection such as null or other invalid connection status are fed back, it is invalid to reduce API service asks the calculation processes in API gateway, also avoids the resource consumption etc. for consuming each application interface, API gateway.
S404, API server obtain the API service type of counterpart terminal based on network identity, and API server will be described API service type is sent to each application interface;
Only legal user just can be resolved out, these API service types be resolved on API server with Afterwards, you can API service type is sent to the calculating process for completing to occupy weights on each application interface, to realize API Access The configuration process of amount.
Each interface in S405, each application interface calculates API request packet based on API service type and is answered in corresponding With the occupancy weights on interface;
Each API service type is sent on each corresponding application interface by API server first, is then answered by each The target type and network identity of terminal corresponding to API service type, target are obtained with interface or associated API gateway Type generally relates to processing capacity of terminal, such as various hardware synthesis parameters etc., and network identity generally relate to pair The network formats answered, for example be 2G, 3G, 4G, WIFI etc. network communication standard etc., corresponding to the combination configuration between the two Occupancy weights relationship, i.e., the API request packet is calculated in corresponding application interface based on target type and network identity On occupancy weights.
For example weight coefficient is occupied based on the target type and network identification match accordingly;Based on the occupancy weights Coefficient calculates occupancy weights etc. of the API request packet on corresponding application interface.For example target type is tablet Computer or mobile terminal, whole network standard is different, corresponding to api interface from the API request packet of acquisition, occupied by Type or resource matched coefficient are all different, according to respectively corresponding occupancy weight coefficient or different terminals class Coefficient ratio possessed by type is also different, then different according to coefficient ratio possessed by each terminal type, you can realizes that application connects Occupancy weight computing on mouth.
S406, use services configuration protocol for each interface provisioning API visit capacity in each application programming interfaces;
S407, to asked by the API service of legitimate verification corresponding user terminal push API service response and disappear Breath.
It, can be according to the terminal capability parameters where API service acquisition request each user terminal in specific implementation process; The API service response message is split according to the terminal capability parameters where user terminal;The API generated after fractionation is taken Business response message is sent to user terminal etc..
In specific implementation process, it is possible to determine that API resource request message quantity is not up to presetting message number threshold value, and The available API resource transfers number obtained is more than default available API resource transfer number threshold values.
In specific implementation process, the API resource request messages that can be sent according to each application terminal obtain each respectively The performance parameter of a terminal, and reach according to the performance parameter the corresponding API of all terminals of parameter preset threshold value Resource request message generates high priority requests packet;High priority requests packet is sent to API server, and receives API service The API resource response messages that device is sent;According to the end corresponding to the API resource request messages for including in high priority requests packet End, splits resource response message;The sub- message of API resource responses generated after fractionation is sent to performance parameter and reaches pre- The corresponding terminal of setting parameter threshold value.
In specific implementation process, can obtain performance parameter be not up to parameter preset threshold value all terminals it is corresponding API resource request messages;The corresponding API resource requests of all terminals that parameter preset threshold value is not up to according to performance parameter disappear Breath generates low priority request packet;After high priority requests packet is sent to API server, low priority request packet is obtained Corresponding transmission parameter;Parameter threshold level is sent if sending parameter and reaching default, low priority request packet is sent to API clothes Business device, and receive the API resource response messages of API server transmission;It is asked according to the API resources for including in low priority request packet The terminal corresponding to message is sought, API resource response messages are split;The sub- message of API resource responses that will be generated after fractionation It is sent to the corresponding terminal that performance parameter is not up to parameter preset threshold value.
To sum up, the embodiment of the present invention is primarily based on the collection that each application interface realizes API resources in preset time, right Terminal type, API service request, network identity involved by the object of API resource requests etc. form an API request packet, clothes End be engaged in after receiving request bag, filters out the API request packet of some incongruent safety standards in server end, then by each Application interface calculates the occupancy weights on each application interface shared by terminal for legal API request packet, is based on services Configuration protocol is completed to push API service to corresponding user terminal.Under this pattern, it is invalid to be reduced by API server API applications, can also according to involved by terminal type and the configurations such as network identity reasonably occupy weights, effectively promoted whole The feedback effect rate of a API gateway also reduces invalid API and occupies weights, promotes API gateway and is provided to the API of effective terminal Source allocative efficiency.
One of ordinary skill in the art will appreciate that all or part of step in the various methods of above-described embodiment is can It is completed with instructing relevant hardware by program, which can be stored in a computer readable storage medium, storage Medium may include:Read-only memory (ROM, Read Only Memory), random access memory (RAM, Random Access Memory), disk or CD etc..
The method and system based on terminal type provisioning API resource are provided for the embodiments of the invention above to have carried out in detail Thin to introduce, principle and implementation of the present invention are described for specific case used herein, and above example is said The bright method and its core concept for being merely used to help understand the present invention;Meanwhile for those of ordinary skill in the art, foundation The thought of the present invention, there will be changes in the specific implementation manner and application range, in conclusion the content of the present specification is not It is interpreted as limitation of the present invention.

Claims (10)

1. a kind of method based on terminal type provisioning API resource, which is characterized in that the method includes:
The API resource request messages of corresponding terminal transmission, the API are received within the scope of preset duration based on each application interface Resource request message includes network identity and the API service request of counterpart terminal;
Each application interface generates the API request of corresponding terminal according to the preset duration range in each application interface Packet, and the API request packet is sent to API server;
API server applies for the legitimacy of API based on the API service requests verification user in API request packet;
After the API service request of user passes through legitimate verification, API server obtains counterpart terminal based on network identity API service type, the API service type are configured by the terminal type of counterpart terminal;
The API service type is sent to each application interface by the API server, each in each application interface Interface calculates occupancy weights of the API request packet on corresponding application interface based on API service type;
Use services configuration protocol for each interface provisioning API visit capacity in each application programming interfaces;
The user terminal corresponding to the API service request by legitimate verification pushes API service response message.
2. the method as described in claim 1, which is characterized in that each application interface is according to described pre- in each application interface If the API request packet that duration range generates corresponding terminal includes:
Within the scope of the preset duration, each application interface counts what corresponding terminal was sent within the scope of preset duration API resource request message quantity;
When preset duration range reaches, by the network identity of corresponding terminal, API service request, resource request message quantity API request packet is encapsulated in data structure with duration value.
3. method as claimed in claim 2, which is characterized in that each interface in each application interface is based on API service Type calculates occupancy weights of the API request packet on corresponding application interface:
Obtain the target type and network identity of terminal corresponding to API service type;
Occupancy weights of the API request packet on corresponding application interface are calculated based on target type and network identity.
4. method as claimed in claim 3, which is characterized in that it is described calculated based on target type and network identity it is described Occupancy weights of the API request packet on corresponding application interface include:
Weight coefficient is occupied accordingly based on the target type and network identification match;
Occupancy weights of the API request packet on corresponding application interface are calculated based on the occupancy weight coefficient.
5. such as Claims 1-4 any one of them method, which is characterized in that the API service to by legitimate verification The corresponding user terminal of request pushes API service:
According to the terminal capability parameters where API service acquisition request each user terminal;
The API service response message is split according to the terminal capability parameters where user terminal;
The API service response message generated after fractionation is sent to user terminal.
6. a kind of system based on terminal type provisioning API resource, which is characterized in that the system comprises:
API gateway, the API resource requests sent for receiving corresponding terminal within the scope of preset duration based on each application interface Message, the API resource request messages include network identity and the API service request of counterpart terminal;In each application interface Each application interface generates the API request packet of corresponding terminal according to the preset duration range, and the API request packet is sent out Give API server
API server, the legitimacy for applying for API based on the API service requests verification user in API request packet;In user API service request by the way that after legitimate verification, API server obtains the API service class of counterpart terminal based on network identity Type, the API service type are configured by the terminal type of counterpart terminal;And the API service type is sent to institute State each application interface;
The API gateway is used to calculate the API request based on API service type based on each interface in each application interface Wrap the occupancy weights on corresponding application interface;Use services configuration protocol to be each in each application programming interfaces Interface provisioning API visit capacity;The user terminal corresponding to the API service request by legitimate verification pushes API service response Message.
7. system as claimed in claim 6, which is characterized in that the API gateway is additionally operable within the scope of the preset duration, Each application interface counts the API resource request message quantity that corresponding terminal is sent within the scope of preset duration;Pre- If duration range reaches, by the network identity of corresponding terminal, API service request, resource request message quantity and duration value It is encapsulated in API request packet with data structure.
8. system as claimed in claim 7, which is characterized in that the API gateway is additionally operable to obtain corresponding to API service type The target type and network identity of terminal;And based on target type and network identity calculate the API request packet pair Occupancy weights on the application interface answered.
9. system as claimed in claim 8, which is characterized in that the API gateway is additionally operable to be based on the target type and net Network mark matching is corresponding to occupy weight coefficient;The API request packet is calculated corresponding based on the occupancy weight coefficient Application interface on occupancy weights.
10. such as claim 6 to 9 any one of them system, which is characterized in that the API gateway is additionally operable to according to API service Terminal capability parameters where each user terminal of acquisition request take the API according to the terminal capability parameters where user terminal Business response message is split;The API service response message generated after fractionation is sent to user terminal.
CN201810165245.8A 2018-02-27 2018-02-27 Method and system for configuring API (application program interface) resources based on terminal type Active CN108388475B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810165245.8A CN108388475B (en) 2018-02-27 2018-02-27 Method and system for configuring API (application program interface) resources based on terminal type

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810165245.8A CN108388475B (en) 2018-02-27 2018-02-27 Method and system for configuring API (application program interface) resources based on terminal type

Publications (2)

Publication Number Publication Date
CN108388475A true CN108388475A (en) 2018-08-10
CN108388475B CN108388475B (en) 2021-06-29

Family

ID=63069436

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810165245.8A Active CN108388475B (en) 2018-02-27 2018-02-27 Method and system for configuring API (application program interface) resources based on terminal type

Country Status (1)

Country Link
CN (1) CN108388475B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110955978A (en) * 2019-12-02 2020-04-03 北京达美盛科技有限公司 Method for realizing three-dimensional visual multi-service multi-terminal fusion
WO2022002141A1 (en) * 2020-06-30 2022-01-06 中兴通讯股份有限公司 Application program interface calling method and device, storage medium, and electronic device

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030188044A1 (en) * 2002-03-28 2003-10-02 International Business Machines Corporation System and method for verifying superscalar computer architectures
CN103379090A (en) * 2012-04-12 2013-10-30 腾讯科技(北京)有限公司 Open platform access frequency control method and system and frequency server
CN104168133A (en) * 2014-07-11 2014-11-26 广州联智信息科技有限公司 Method and system for dynamic API page view configuration, and gateway
CN104580095A (en) * 2013-10-22 2015-04-29 华为软件技术有限公司 API resource acquisition method and device
CN106105100A (en) * 2014-03-18 2016-11-09 Twc专利信托公司 Low delay, high capacity, high power capacity API gateway
CN107659460A (en) * 2017-11-09 2018-02-02 广东技术师范学院 A kind of method of provisioning API visit capacity

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030188044A1 (en) * 2002-03-28 2003-10-02 International Business Machines Corporation System and method for verifying superscalar computer architectures
CN103379090A (en) * 2012-04-12 2013-10-30 腾讯科技(北京)有限公司 Open platform access frequency control method and system and frequency server
CN104580095A (en) * 2013-10-22 2015-04-29 华为软件技术有限公司 API resource acquisition method and device
CN106105100A (en) * 2014-03-18 2016-11-09 Twc专利信托公司 Low delay, high capacity, high power capacity API gateway
CN104168133A (en) * 2014-07-11 2014-11-26 广州联智信息科技有限公司 Method and system for dynamic API page view configuration, and gateway
CN107659460A (en) * 2017-11-09 2018-02-02 广东技术师范学院 A kind of method of provisioning API visit capacity

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
王瑜 等: ""面向服务管控的API网关设计与实现"", 《计算机科学》 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110955978A (en) * 2019-12-02 2020-04-03 北京达美盛科技有限公司 Method for realizing three-dimensional visual multi-service multi-terminal fusion
WO2022002141A1 (en) * 2020-06-30 2022-01-06 中兴通讯股份有限公司 Application program interface calling method and device, storage medium, and electronic device

Also Published As

Publication number Publication date
CN108388475B (en) 2021-06-29

Similar Documents

Publication Publication Date Title
US11277522B2 (en) Service domain charging systems and methods
EP3632145B1 (en) Subscription management service data feeds
CN109618002B (en) Micro-service gateway optimization method, device and storage medium
CN110447247A (en) Service ability at user equipment is open
CN104410982B (en) Terminal polymerization and reconstructing method in a kind of Wireless Heterogeneous Networks
CN105208585A (en) Scheduling information configuration method, configuration parameter processing method, scheduling information configuration device and configuration parameter processing device
CN103621023A (en) QoS processing method, application server, QoS control network element and mobile network
CN104170502A (en) Resource allocation
CN102202281A (en) Ticket processing method and system
KR20210143563A (en) Apparatus and method for providing deterministic communication in mobile network
CN112437153A (en) Equipment linkage processing method and device
CN110519761A (en) Verification method, device, electronic equipment and the storage medium of subscriber identification card
CN109729139A (en) Access request retransmission method, device, equipment and readable storage medium storing program for executing
CN107659460A (en) A kind of method of provisioning API visit capacity
CN108388475A (en) A kind of method and system based on terminal type provisioning API resource
CN103916444A (en) Method for displaying number information through cloud model
CN108184008A (en) A kind of terminal Communication Performance Evaluation method and apparatus
CN109766245A (en) A kind of method and relevant apparatus of shared terminal resource
KR102602073B1 (en) Service registration based on service capability requirements and preferences
CN104980509B (en) The data transmission method without fixed public network IP based on wireless data transmission terminal
CN106797321B (en) A kind of background traffic method for down loading, equipment and system
CN108064087B (en) DRX cycle configuration method, terminal, access network equipment and storage medium
US10616792B2 (en) Communications system and networking method of application driven network, and controller
CN107466018A (en) The data transferring method and terminal device of a kind of terminal device
CN108200661A (en) RRC Connection Releases method, terminal, access network equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20210507

Address after: 523400 Gao Mei Electronics, new town science and Technology Industrial Park, Liaobu Town, Dongguan, Guangdong

Applicant after: Zhou Cuimin

Address before: 510630 2nd floor, building 38, Youtong community, 139 Zhongshan Avenue West, Tianhe District, Guangzhou City, Guangdong Province

Applicant before: GUANGZHOU DEVICEGATE INFORMATION TECHNOLOGY Co.,Ltd.

GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20220907

Address after: Block D, 23rd Floor, Xizhen Building, No. 33, Songshan Road, Nangang Concentration Zone, Harbin Development Zone, Harbin, Heilongjiang 150040

Patentee after: Heilongjiang Zhenning Technology Co.,Ltd.

Address before: 523400 Gao Mei Electronics, new town science and Technology Industrial Park, Liaobu Town, Dongguan, Guangdong

Patentee before: Zhou Cuimin

PE01 Entry into force of the registration of the contract for pledge of patent right
PE01 Entry into force of the registration of the contract for pledge of patent right

Denomination of invention: A Method and System for Configuring API Resources Based on Terminal Types

Effective date of registration: 20231013

Granted publication date: 20210629

Pledgee: Heilongjiang Xinzheng financing guarantee Group Co.,Ltd.

Pledgor: Heilongjiang Zhenning Technology Co.,Ltd.

Registration number: Y2023230000086