CN105262821A - Interface management apparatus and method - Google Patents

Interface management apparatus and method Download PDF

Info

Publication number
CN105262821A
CN105262821A CN201510718376.0A CN201510718376A CN105262821A CN 105262821 A CN105262821 A CN 105262821A CN 201510718376 A CN201510718376 A CN 201510718376A CN 105262821 A CN105262821 A CN 105262821A
Authority
CN
China
Prior art keywords
interface
server
request information
user
calling
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201510718376.0A
Other languages
Chinese (zh)
Inventor
洪明洁
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Nubia Technology Co Ltd
Original Assignee
Nubia 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 Nubia Technology Co Ltd filed Critical Nubia Technology Co Ltd
Priority to CN201510718376.0A priority Critical patent/CN105262821A/en
Publication of CN105262821A publication Critical patent/CN105262821A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/10Network architectures or network communication protocols for network security for controlling access to devices or network resources

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Hardware Design (AREA)
  • Computer Security & Cryptography (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The present invention discloses an interface management apparatus and an interface management method. The interface management apparatus comprises: a request information receiving module used for receiving a request information of a user for calling an interface at a first server; a judgement module used for judging whether the request information accords with a preset condition; and a request information transmitting module used for transmitting the request information from the first server to a second server corresponding to the interface when the request information accords with the preset condition, so that the second server can process the request information. According to the technical scheme of the interface management apparatus of the present invention, the request information for calling the interface is received at the first server, and whether the calling needs to be limited is analyzed and judged at the first server, in this way, there is no pressure on the second server realizing an interface function, so that the second server processes the request information and does not need to perform the operation for limiting calling of the interface, and the second server can have higher efficiency for processing the request information.

Description

Interface management apparatus and method
Technical field
The present invention relates to electronic information technical field, particularly relate to a kind of interface management apparatus and method.
Background technology
Along with the development of mobile Internet, become series of computation machine data-interface easy to identify (API) to open away the service encapsulates of website, become the idea of current main flow open platform.But how to accomplish to data-interface call be constrained in order to web site architecture design a key node.
When in the face of a large amount of request of data time, existing way as shown in Figure 1A, after developer sends the solicited message of calling interface, be distributed in business (interface) server 12 after being received by Reverse Proxy 11, by this interface interchange of service server 12 person that judges whether Limit exploitation, and after judging not limit this interface interchange of developer, provide interface and finishing service operation.The major defect so done is:
Judge whether that work and the business of restriction interface interchange have nothing to do but complete on service server, this brings a large amount of operating pressures to service server, and then affects the efficiency of service server Processing Interface call request.
Summary of the invention
Main purpose of the present invention is to propose a kind of interface management apparatus and method, the pressure that the process being intended to reduce restriction interface interchange causes the server realizing interface function.
For achieving the above object, the invention provides a kind of interface management apparatus, comprising: solicited message receiver module, for receiving the solicited message of user's calling interface at first server place; Judge module, pre-conditioned for judging whether described request information meets; Solicited message sending module, for when described request information conforms is pre-conditioned, is sent to second server corresponding to described interface by described request information from described first server, by described second server processes said request information.
Alternatively, aforesaid interface management apparatus, described judge module judges whether the identity of described user is default identity, and/or judges whether the identity of described user has the authority calling described interface, and/or judges whether the number of times that described user calls described interface exceedes preset times.
Alternatively, aforesaid interface management apparatus, described judge module from for obtaining the number of times that described user calls described interface the 3rd data cached server, and judges whether to exceed described preset times; Described device also comprises: number of times update module, calls the number of times of described interface for upgrading the described user recorded in described 3rd server.
Alternatively, aforesaid interface management apparatus, also comprises: backup module, and for the time of presetting, the number of times described user recorded in described 3rd server being called described interface is recorded in the 4th server for Backup Data.
Alternatively, aforesaid interface management apparatus, there is not described user when calling the number of times of described interface in described judge module, what obtain that described user calls described interface from described 4th server time counts to described 3rd server in described 3rd server.
Alternatively, aforesaid interface management apparatus, also comprises: result receiver module, for obtaining result to described first server from described second server; Result sending module, for sending to described user by described result.
For achieving the above object, a kind of interface managerial method that the present invention also provides, comprising: the solicited message receiving user's calling interface at first server place; Judge whether described request information meets pre-conditioned; When described request information conforms is pre-conditioned, described request information is sent to second server corresponding to described interface from described first server, by described second server processes said request information.
Alternatively, aforesaid interface managerial method, judge whether described request information meets pre-conditioned, specifically comprise: whether the identity judging described user is default identity, and/or judge whether the identity of described user has the authority calling described interface, and/or judge whether the number of times that described user calls described interface exceedes preset times.
Alternatively, aforesaid interface managerial method, judge whether the number of times that described user calls described interface exceedes preset times, specifically comprises: from for obtaining the number of times that described user calls described interface the 3rd data cached server, and judge whether to exceed described preset times; After described request information is sent to second server corresponding to described interface from described first server, also comprise: upgrade the number of times that the described user recorded in described 3rd server calls described interface.
Alternatively, aforesaid interface managerial method, also comprises: the time of presetting, the number of times described user recorded in described 3rd server being called described interface is recorded in the 4th server for Backup Data.
Alternatively, aforesaid interface managerial method, from for obtaining the number of times that described user calls described interface the 3rd data cached server, specifically comprise: in described 3rd server, there is not described user when calling the number of times of described interface, what obtain that described user calls described interface from described 4th server time counts to described 3rd server.
Alternatively, aforesaid interface managerial method, also comprises: obtain result to described first server from described second server, and described result is sent to described user.
The interface management apparatus that the present invention proposes and method, at least have the following advantages:
According to technical scheme of the present invention, the solicited message of calling interface is received at first server place, and analysis judges whether to call this to limit, analyze being operated in first server of judging to complete, then can not to the second server build-up of pressure realizing interface function, make second server process solicited message can not need to bear the work of restriction interface interchange, then the efficiency of second server process solicited message can be higher.
Accompanying drawing explanation
Figure 1A is the schematic diagram of the restriction interface interchange of prior art;
Figure 1B is the hardware configuration schematic diagram of the mobile terminal realizing each embodiment of the present invention;
Fig. 2 is the wireless communication system schematic diagram of mobile terminal as shown in Figure 1;
Fig. 3 is the block diagram of interface management apparatus according to an embodiment of the invention;
Fig. 4 A is the block diagram of interface management apparatus according to an embodiment of the invention;
Fig. 4 B is the application architecture figure of interface management apparatus according to an embodiment of the invention;
Fig. 5 is the flow chart of interface managerial method according to an embodiment of the invention;
Fig. 6 is the flow chart of interface managerial method according to an embodiment of the invention.
The realization of the object of the invention, functional characteristics and advantage will in conjunction with the embodiments, are described further with reference to accompanying drawing.
Embodiment
Should be appreciated that specific embodiment described herein only in order to explain the present invention, be not intended to limit the present invention.
The mobile terminal realizing each embodiment of the present invention is described referring now to accompanying drawing.In follow-up description, use the suffix of such as " module ", " parts " or " unit " for representing element only in order to be conducive to explanation of the present invention, itself is specific meaning not.Therefore, " module " and " parts " can mixedly use.
Mobile terminal can be implemented in a variety of manners.Such as, the terminal described in the present invention can comprise the such as mobile terminal of mobile phone, smart phone, notebook computer, digit broadcasting receiver, PDA (personal digital assistant), PAD (panel computer), PMP (portable media player), guider etc. and the fixed terminal of such as digital TV, desktop computer etc.Below, suppose that terminal is mobile terminal.But it will be appreciated by those skilled in the art that except the element except being used in particular for mobile object, structure according to the embodiment of the present invention also can be applied to the terminal of fixed type.
Figure 1B is the hardware configuration signal of the mobile terminal realizing each embodiment of the present invention.
Mobile terminal 100 can comprise wireless communication unit 110, A/V (audio/video) input unit 120, user input unit 130, sensing cell 140, output unit 150, memory 160, interface unit 170, controller 180 and power subsystem 190 etc.Figure 1B shows the mobile terminal with various assembly, it should be understood that, does not require to implement all assemblies illustrated.Can alternatively implement more or less assembly.Will be discussed in more detail below the element of mobile terminal.
Wireless communication unit 110 generally includes one or more assembly, and it allows the radio communication between mobile terminal 100 and wireless communication system or network.Such as, wireless communication unit can comprise at least one in broadcast reception module 111, mobile communication module 112, wireless Internet module 113, short range communication module 114 and positional information module 115.
Broadcast reception module 111 via broadcast channel from external broadcasting management server receiving broadcast signal and/or broadcast related information.Broadcast channel can comprise satellite channel and/or terrestrial channel.Broadcast management server can be generate and send the server of broadcast singal and/or broadcast related information or the broadcast singal generated before receiving and/or broadcast related information and send it to the server of terminal.Broadcast singal can comprise TV broadcast singal, radio signals, data broadcasting signal etc.And broadcast singal may further include the broadcast singal combined with TV or radio signals.Broadcast related information also can provide via mobile communications network, and in this case, broadcast related information can be received by mobile communication module 112.Broadcast singal can exist in a variety of manners, such as, it can exist with the form of the electronic service guidebooks (ESG) of the electronic program guides of DMB (DMB) (EPG), digital video broadcast-handheld (DVB-H) etc.Broadcast reception module 111 can by using the broadcast of various types of broadcast system Received signal strength.Especially, broadcast reception module 111 can by using such as multimedia broadcasting-ground (DMB-T), DMB-satellite (DMB-S), digital video broadcasting-hand-held (DVB-H), forward link media (MediaFLO ) the digit broadcasting system receiving digital broadcast of Radio Data System, received terrestrial digital broadcasting integrated service (ISDB-T) etc.Broadcast reception module 111 can be constructed to be applicable to providing the various broadcast system of broadcast singal and above-mentioned digit broadcasting system.The broadcast singal received via broadcast reception module 111 and/or broadcast related information can be stored in memory 160 (or storage medium of other type).
Radio signal is sent at least one in base station (such as, access point, Node B etc.), exterior terminal and server and/or receives radio signals from it by mobile communication module 112.Various types of data that such radio signal can comprise voice call signal, video calling signal or send according to text and/or Multimedia Message and/or receive.
Wireless Internet module 113 supports the Wi-Fi (Wireless Internet Access) of mobile terminal.This module can be inner or be externally couple to terminal.Wi-Fi (Wireless Internet Access) technology involved by this module can comprise WLAN (WLAN) (Wi-Fi), Wibro (WiMAX), Wimax (worldwide interoperability for microwave access), HSDPA (high-speed downlink packet access) etc.
Short range communication module 114 is the modules for supporting junction service.Some examples of short-range communication technology comprise bluetooth tM, radio-frequency (RF) identification (RFID), Infrared Data Association (IrDA), ultra broadband (UWB), purple honeybee tMetc..
Positional information module 115 is the modules of positional information for checking or obtain mobile terminal.The typical case of positional information module is GPS (global positioning system).According to current technology, GPS module 115 calculates from the range information of three or more satellite and correct time information and for the Information application triangulation calculated, thus calculates three-dimensional current location information according to longitude, latitude and pin-point accuracy.Current, the method for calculating location and temporal information uses three satellites and by the error of the position that uses an other satellite correction calculation to go out and temporal information.In addition, GPS module 115 can carry out computational speed information by Continuous plus current location information in real time.
A/V input unit 120 is for audio reception or vision signal.A/V input unit 120 can comprise camera 121 and microphone 1220, and the view data of camera 121 to the static images obtained by image capture apparatus in Video Capture pattern or image capture mode or video processes.Picture frame after process may be displayed on display unit 151.Picture frame after camera 121 processes can be stored in memory 160 (or other storage medium) or via wireless communication unit 110 and send, and can provide two or more cameras 1210 according to the structure of mobile terminal.Such acoustic processing can via microphones sound (voice data) in telephone calling model, logging mode, speech recognition mode etc. operational mode, and can be voice data by microphone 122.Audio frequency (voice) data after process can be converted to the formatted output that can be sent to mobile communication base station via mobile communication module 112 when telephone calling model.Microphone 122 can be implemented various types of noise and eliminate (or suppress) algorithm and receiving and sending to eliminate (or suppression) noise or interference that produce in the process of audio signal.
User input unit 130 can generate key input data to control the various operations of mobile terminal according to the order of user's input.User input unit 130 allows user to input various types of information, and keyboard, the young sheet of pot, touch pad (such as, detecting the touch-sensitive assembly of the change of the resistance, pressure, electric capacity etc. that cause owing to being touched), roller, rocking bar etc. can be comprised.Especially, when touch pad is superimposed upon on display unit 151 as a layer, touch-screen can be formed.
Sensing cell 140 detects the current state of mobile terminal 100, (such as, mobile terminal 100 open or close state), the position of mobile terminal 100, user for mobile terminal 100 contact (namely, touch input) presence or absence, the orientation of mobile terminal 100, the acceleration or deceleration of mobile terminal 100 move and direction etc., and generate order or the signal of the operation for controlling mobile terminal 100.Such as, when mobile terminal 100 is embodied as sliding-type mobile phone, sensing cell 140 can sense this sliding-type phone and open or close.In addition, whether whether sensing cell 140 can detect power subsystem 190 provides electric power or interface unit 170 to couple with external device (ED).Sensing cell 140 can comprise proximity transducer 1410 and will be described this in conjunction with touch-screen below.
Interface unit 170 is used as at least one external device (ED) and is connected the interface that can pass through with mobile terminal 100.Such as, external device (ED) can comprise wired or wireless head-band earphone port, external power source (or battery charger) port, wired or wireless FPDP, memory card port, for connecting the port, audio frequency I/O (I/O) port, video i/o port, ear port etc. of the device with identification module.Identification module can be that storage uses the various information of mobile terminal 100 for authentication of users and can comprise subscriber identification module (UIM), client identification module (SIM), Universal Subscriber identification module (USIM) etc.In addition, the device (hereinafter referred to " recognition device ") with identification module can take the form of smart card, and therefore, recognition device can be connected with mobile terminal 100 via port or other jockey.Interface unit 170 may be used for receive from external device (ED) input (such as, data message, electric power etc.) and the input received be transferred to the one or more element in mobile terminal 100 or may be used for transmitting data between mobile terminal and external device (ED).
In addition, when mobile terminal 100 is connected with external base, interface unit 170 can be used as to allow by it electric power to be provided to the path of mobile terminal 100 from base or can be used as the path that allows to be transferred to mobile terminal by it from the various command signals of base input.The various command signal inputted from base or electric power can be used as and identify whether mobile terminal is arranged on the signal base exactly.Output unit 150 is constructed to provide output signal (such as, audio signal, vision signal, alarm signal, vibration signal etc.) with vision, audio frequency and/or tactile manner.Output unit 150 can comprise display unit 151, dio Output Modules 152, alarm unit 153 etc.
Display unit 151 may be displayed on the information of process in mobile terminal 100.Such as, when mobile terminal 100 is in telephone calling model, display unit 151 can show with call or other communicate (such as, text messaging, multimedia file are downloaded etc.) be correlated with user interface (UI) or graphic user interface (GUI).When mobile terminal 100 is in video calling pattern or image capture mode, display unit 151 can the image of display capture and/or the image of reception, UI or GUI that video or image and correlation function are shown etc.
Meanwhile, when display unit 151 and touch pad as a layer superposed on one another to form touch-screen time, display unit 151 can be used as input unit and output device.Display unit 151 can comprise at least one in liquid crystal display (LCD), thin-film transistor LCD (TFT-LCD), Organic Light Emitting Diode (OLED) display, flexible display, three-dimensional (3D) display etc.Some in these displays can be constructed to transparence and watch from outside to allow user, and this can be called transparent display, and typical transparent display can be such as TOLED (transparent organic light emitting diode) display etc.According to the specific execution mode wanted, mobile terminal 100 can comprise two or more display units (or other display unit), such as, mobile terminal can comprise outernal display unit (not shown) and inner display unit (not shown).Touch-screen can be used for detecting touch input pressure and touch input position and touch and inputs area.
When dio Output Modules 152 can be under the isotypes such as call signal receiving mode, call mode, logging mode, speech recognition mode, broadcast reception mode at mobile terminal, voice data convert audio signals that is that wireless communication unit 110 is received or that store in memory 160 and exporting as sound.And dio Output Modules 152 can provide the audio frequency relevant to the specific function that mobile terminal 100 performs to export (such as, call signal receives sound, message sink sound etc.).Dio Output Modules 152 can comprise loud speaker, buzzer etc.
Alarm unit 153 can provide and export that event informed to mobile terminal 100.Typical event can comprise calling reception, message sink, key signals input, touch input etc.Except audio or video exports, alarm unit 153 can provide in a different manner and export with the generation of notification event.Such as, alarm unit 153 can provide output with the form of vibration, when receive calling, message or some other enter communication (incomingcommunication) time, alarm unit 153 can provide sense of touch to export (that is, vibrating) to notify to user.By providing such sense of touch to export, even if when the mobile phone of user is in the pocket of user, user also can identify the generation of various event.Alarm unit 153 also can provide the output of the generation of notification event via display unit 151 or dio Output Modules 152.
Memory 160 software program that can store process and the control operation performed by controller 180 etc., or temporarily can store oneself through exporting the data (such as, telephone directory, message, still image, video etc.) that maybe will export.And, memory 160 can store about when touch be applied to touch-screen time the vibration of various modes that exports and the data of audio signal.
Memory 160 can comprise the storage medium of at least one type, described storage medium comprises flash memory, hard disk, multimedia card, card-type memory (such as, SD or DX memory etc.), random access storage device (RAM), static random-access memory (SRAM), read-only memory (ROM), Electrically Erasable Read Only Memory (EEPROM), programmable read only memory (PROM), magnetic storage, disk, CD etc.And mobile terminal 100 can be connected the memory function of execute store 160 network storage device with by network cooperates.
Controller 180 controls the overall operation of mobile terminal usually.Such as, controller 180 performs the control relevant to voice call, data communication, video calling etc. and process.In addition, controller 180 can comprise the multi-media module 1810 for reproducing (or playback) multi-medium data, and multi-media module 1810 can be configured in controller 180, or can be configured to be separated with controller 180.Controller 180 can pattern recognition process, is identified as character or image so that input is drawn in the handwriting input performed on the touchscreen or picture.
Power subsystem 190 receives external power or internal power and provides each element of operation and the suitable electric power needed for assembly under the control of controller 180.
Various execution mode described herein can to use such as computer software, the computer-readable medium of hardware or its any combination implements.For hardware implementation, execution mode described herein can by using application-specific IC (ASIC), digital signal processor (DSP), digital signal processing device (DSPD), programmable logic device (PLD), field programmable gate array (FPGA), processor, controller, microcontroller, microprocessor, being designed at least one performed in the electronic unit of function described herein and implementing, in some cases, such execution mode can be implemented in controller 180.For implement software, the execution mode of such as process or function can be implemented with allowing the independent software module performing at least one function or operation.Software code can be implemented by the software application (or program) write with any suitable programming language, and software code can be stored in memory 160 and to be performed by controller 180.
So far, oneself is through the mobile terminal according to its functional description.Below, for the sake of brevity, by the slide type mobile terminal that describes in various types of mobile terminals of such as folded form, board-type, oscillating-type, slide type mobile terminal etc. exemplarily.Therefore, the present invention can be applied to the mobile terminal of any type, and is not limited to slide type mobile terminal.
Mobile terminal 100 as shown in fig. 1b can be constructed to utilize and send the such as wired and wireless communication system of data via frame or grouping and satellite-based communication system operates.
Describe wherein according to the communication system that mobile terminal of the present invention can operate referring now to Fig. 2.
Such communication system can use different air interfaces and/or physical layer.Such as, the air interface used by communication system comprises such as frequency division multiple access (FDMA), time division multiple access (TDMA), code division multiple access (CDMA) and universal mobile telecommunications system (UMTS) (especially, Long Term Evolution (LTE)), global system for mobile communications (GSM) etc.As non-limiting example, description below relates to cdma communication system, but such instruction is equally applicable to the system of other type.
With reference to figure 2, cdma wireless communication system can comprise multiple mobile terminal 100, multiple base station (BS) 270, base station controller (BSC) 275 and mobile switching centre (MSC) 280.MSC280 is constructed to form interface with Public Switched Telephony Network (PSTN) 290.MSC280 is also constructed to form interface with the BSC275 that can be couple to base station 270 via back haul link.Back haul link can construct according to any one in some interfaces that oneself knows, described interface comprises such as E1/T1, ATM, IP, PPP, frame relay, HDSL, ADSL or xDSL.Will be appreciated that system as shown in Figure 2 can comprise multiple BSC2750.
Each BS270 can serve one or more subregion (or region), by multidirectional antenna or point to specific direction each subregion of antenna cover radially away from BS270.Or each subregion can by two or more antenna covers for diversity reception.Each BS270 can be constructed to support multiple parallel compensate, and each parallel compensate has specific frequency spectrum (such as, 1.25MHz, 5MHz etc.).
Subregion can be called as CDMA Channel with intersecting of parallel compensate.BS270 also can be called as base station transceiver subsystem (BTS) or other equivalent terms.Under these circumstances, term " base station " may be used for broadly representing single BSC275 and at least one BS270.Base station also can be called as " cellular station ".Or each subregion of particular B S270 can be called as multiple cellular station.
As shown in Figure 2, broadcast singal is sent to the mobile terminal 100 at operate within systems by broadcsting transmitter (BT) 295.Broadcast reception module 111 is as shown in fig. 1b arranged on mobile terminal 100 and sentences the broadcast singal receiving and sent by BT295.In fig. 2, several global positioning system (GPS) satellite 300 is shown.Satellite 300 helps at least one in the multiple mobile terminal 100 in location.
In fig. 2, depict multiple satellite 300, but understand, the satellite of any number can be utilized to obtain useful locating information.GPS module 115 is as shown in fig. 1b constructed to coordinate to obtain the locating information wanted with satellite 300 usually.Substitute GPS tracking technique or outside GPS tracking technique, can use can other technology of position of tracking mobile terminal.In addition, at least one gps satellite 300 optionally or extraly can process satellite dmb transmission.
As a typical operation of wireless communication system, BS270 receives the reverse link signal from various mobile terminal 100.Mobile terminal 100 participates in call usually, information receiving and transmitting communicates with other type.Each reverse link signal that certain base station 270 receives is processed by particular B S270.The data obtained are forwarded to relevant BSC275.BSC provides call Resourse Distribute and comprises the mobile management function of coordination of the soft switching process between BS270.The data received also are routed to MSC280 by BSC275, and it is provided for the extra route service forming interface with PSTN290.Similarly, PSTN290 and MSC280 forms interface, and MSC and BSC275 forms interface, and BSC275 correspondingly control BS270 so that forward link signals is sent to mobile terminal 100.
Based on above-mentioned mobile terminal hardware configuration and communication system, each embodiment of the inventive method is proposed.
As shown in Figure 3, propose a kind of interface management apparatus in the first embodiment of the present invention, comprising:
Solicited message receiver module 310, for receiving the solicited message of user's calling interface at first server place.In the present embodiment, the function of restriction interface interchange is from each business (interface) server, namely independent in second server, be integrated in first server, wherein first server can be Reverse Proxy, done the restriction of interface interchange by Reverse Proxy, second server only needs the simple realization carrying out interface function.Particularly, aforesaid Reverse Proxy can adopt nginx.
Judge module 320, pre-conditioned for judging whether solicited message meets.
In the present embodiment, do not limit pre-conditioned, specifically can be as follows: judge module 320 judges whether the identity of user is default identity (identification authentication), and/or judge whether the identity of user has the authority (calling scope check) of calling interface, and/or judge whether the number of times of user's calling interface exceedes preset times (restriction of interface interchange number of times).In the present embodiment visible, identification authentication operation, API (interface) calls scope check, the restriction of API Calls number of times can at the enterprising line operate of first server, avoids these to operate in special disposal solicited message and realizes the second server process of interface function.Particularly, based on aforesaid nginx server, directly can transform the existing module in nginx server or be modified by lua module integrated in nginx server, making the function that module wherein has identification authentication operation, API (interface) calls scope check, API Calls number of times limits.
Solicited message sending module 330, for when described request information conforms is pre-conditioned, is sent to second server corresponding to interface by solicited message from first server, by second server process solicited message.In the present embodiment, the quantity of second server can be one or more, divides the interface requests sent to process to first server, without the need to doing other business.
According to the technical scheme of the present embodiment, the restriction of interface interchange is separated with the realization of interface function, second server judges operation without the need to doing the more multipair analysis in interface interchange restriction, and the function i ntegration of interface interchange restriction is in first server, one or more second server unification is by first server carrys out control interface, first server height is reused, is conducive to reducing maintenance cost.
As shown in Figure 4 A, propose a kind of interface management apparatus in the second embodiment of the present invention, comprising:
Solicited message receiver module 410, for receiving the solicited message of user's calling interface at first server place.
Judge module 420, from the number of times for obtaining user's calling interface the 3rd data cached server, and judges whether to exceed preset times.Wherein, when judge module 420 does not exist the number of times of user's calling interface in the 3rd server, obtain the secondary of user's calling interface from the 4th server and count to the 3rd server.In the present embodiment, the quantity of the 3rd server can be multiple, forms server cluster, particularly, the caching server of such as redis can be adopted to build the larger cache cluster of bearing capacity, form redis cluster, and done the storage of interface number of times by redis cluster.In the present embodiment, 4th server can comprise a main database server, one from database server for backuping, when can find only not comprise interface interchange number of times in redis cluster, just need from the 4th server, obtain the interface interchange number of times wherein recorded, this is conducive to decreasing the frequent operation to database in the 4th server.
Solicited message sending module 430, for when described request information conforms is pre-conditioned, is sent to second server corresponding to interface by solicited message from first server, by second server process solicited message.According to the technical scheme of the present embodiment, by interface management and interface business systematic position, second server judges operation without the need to doing the more multipair analysis in interface restriction, and interface management is integrated in first server, one or more second server unification is by first server carrys out management interface, first server height is reused, is conducive to reducing maintenance cost.
Number of times update module 440, for upgrading the number of times of the user's calling interface recorded in the 3rd server.In the present embodiment, after each successful calling interface of user, all need the number of times upgrading user's calling interface in the 3rd server of such as redis cluster.
Backup module 450, for the time of presetting, is recorded to the number of times of the user's calling interface recorded in the 3rd server in the 4th server for Backup Data.In the present embodiment, interface interchange number of times is synchronized to the 4th server at certain hour by aforesaid redis cluster, reduces the frequent operation to data in the 4th server; Data syn-chronization can be carried out at certain hour between master and slave database server, correct to ensure the data of preserving in master and slave database server.
Based on foregoing, after first server (as nginx) receives request message, first the process of identification authentication is carried out, current identification authentication can adopt general author2.0 agreement, interface interchange person need send according to the protocols, data of author2.0 in the process of calling interface, and first server carries out identification authentication checking; Identification authentication has verified that laggard line interface call number detects, judge whether interface interchange number of times exceedes the number of times of restriction, if exceeded, limit this request, if do not exceeded, allow this interface interchange, the counting of call number is put in redis buffer memory simultaneously, now namely message can be distributed in business (interface) server, at this moment business (interface) the server request flow process that only needs Processing Interface to call; Based on the time rule preset, can within the regular hour, the count synchronization of buffer memory be updated in database, decrease database manipulation frequently.In sum, realize the framework of the technical scheme of the present embodiment as shown in Figure 4 B, visible exist significantly difference compared with Figure 1A, and an embody rule scene based on the technical scheme of Fig. 4 B the present embodiment is as follows: interface developers initiates the solicited message of calling interface; Reverse Proxy 41 is (as nginx, first server) obtain solicited message, and carry out identification authentication according to solicited message, call scope check, the inspection operation of the restriction interface interchange such as interface interchange number of times inspection, wherein, the number of times of developer's calling interface is recorded in redis caching server 43; If this request is by aforementioned inspection operation, then required parameter is distributed to business (interface) server 42 to process, and in redis caching server 43, upgrading the number of times of user's calling interface, the number of times of user's calling interface can be synchronized in backup database server 44 by certain hour by redis caching server 43; If this request is by detecting operation above, then limit the request of this calling interface, and docking port developer returns and unsuccessfully points out.
On the basis of previous embodiment, interface management apparatus can further include:
Result receiver module, for obtaining result to first server from second server.
Result sending module, for sending to user by result.
According to the technical scheme of the present embodiment, the result obtained after second server can being realized interface function sends to user.
As shown in Figure 5, propose a kind of interface managerial method in the third embodiment of the present invention, comprising:
Step 510, receives the solicited message of user's calling interface at first server place.In the present embodiment, the function of restriction interface interchange is from each business (interface) server, namely independent in second server, be integrated in first server, wherein first server can be Reverse Proxy, done the restriction of interface interchange by Reverse Proxy, second server only needs the simple realization carrying out interface function.Particularly, aforesaid Reverse Proxy can adopt nginx.
Step 520, judges whether solicited message meets pre-conditioned.
In the present embodiment, do not limit pre-conditioned, specifically can be as follows: judge module 320 judges whether the identity of user is default identity (identification authentication), and/or judge whether the identity of user has the authority (calling scope check) of calling interface, and/or judge whether the number of times of user's calling interface exceedes preset times (restriction of interface interchange number of times).In the present embodiment visible, identification authentication operation, API (interface) calls scope check, the restriction of API Calls number of times can at the enterprising line operate of first server, avoids these to operate in special disposal solicited message and realizes the second server process of interface function.Particularly, based on aforesaid nginx server, directly can transform the existing module in nginx server or be modified by lua module integrated in nginx server, making the function that module wherein has identification authentication operation, API (interface) calls scope check, API Calls number of times limits.
Step 530, when described request information conforms is pre-conditioned, is sent to second server corresponding to interface by solicited message from first server, by second server process solicited message.In the present embodiment, the quantity of second server can be one or more, divides the interface requests sent to process to first server, without the need to doing other business.
According to the technical scheme of the present embodiment, the restriction of interface interchange is separated with the realization of interface function, second server judges operation without the need to doing the more multipair analysis in interface interchange restriction, and the function i ntegration of interface interchange restriction is in first server, one or more second server unification is by first server carrys out control interface, first server height is reused, is conducive to reducing maintenance cost.
As shown in Figure 6, propose a kind of interface managerial method in the fourth embodiment of the present invention, comprising:
Step 610, receives the solicited message of user's calling interface at first server place.
Step 620, from the number of times for obtaining user's calling interface the 3rd data cached server, and judges whether to exceed preset times.Wherein, when judge module 420 does not exist the number of times of user's calling interface in the 3rd server, obtain the secondary of user's calling interface from the 4th server and count to the 3rd server.In the present embodiment, the quantity of the 3rd server can be multiple, forms server cluster, particularly, the caching server of such as redis can be adopted to build the larger cache cluster of bearing capacity, form redis cluster, and done the storage of interface number of times by redis cluster.In the present embodiment, 4th server can comprise a main database server, one from database server for backuping, when can find only not comprise interface interchange number of times in redis cluster, just need from the 4th server, obtain the interface interchange number of times wherein recorded, this is conducive to reducing the frequent operation to database in the 4th server.
Step 630, when described request information conforms is pre-conditioned, is sent to second server corresponding to interface by solicited message from first server, by second server process solicited message.According to the technical scheme of the present embodiment, by interface management and interface business systematic position, second server judges operation without the need to doing the more multipair analysis in interface restriction, and interface management is integrated in first server, one or more second server unification is by first server carrys out management interface, first server height is reused, is conducive to reducing maintenance cost.
Step 640, upgrades the number of times of the user's calling interface recorded in the 3rd server.In the present embodiment, after each successful calling interface of user, all need the number of times upgrading user's calling interface in the 3rd server of such as redis cluster.
Step 650, the time of presetting, is recorded to the number of times of the user's calling interface recorded in the 3rd server in the 4th server for Backup Data.In the present embodiment, interface interchange number of times is synchronized to the 4th server at certain hour by aforesaid redis cluster, decreases the frequent operation to database in the 4th server; Data syn-chronization can be carried out at certain hour between master and slave database server, correct to ensure the data of preserving in master and slave database server.
Based on foregoing, after first server (as nginx) receives request message, first the process of identification authentication is carried out, current identification authentication can adopt general author2.0 agreement, interface interchange person need send according to the protocols, data of author2.0 in the process of calling interface, and first server carries out identification authentication checking; Identification authentication has verified that laggard line interface call number detects, judge whether interface interchange number of times exceedes the number of times of restriction, if exceeded, limit this request, if do not exceeded, allow this interface interchange, the counting of call number is put in redis buffer memory simultaneously, now namely message can be distributed in business (interface) server, at this moment business (interface) the server request flow process that only needs Processing Interface to call; Based on the time rule preset, can within the regular hour, the count synchronization of buffer memory be updated in database, decrease database manipulation frequently.In sum, realize the framework of the technical scheme of the present embodiment as shown in Figure 4 B, visible exist significantly difference compared with Figure 1A, and an embody rule scene based on the technical scheme of Fig. 4 B the present embodiment is as follows: interface developers initiates the solicited message of calling interface; Reverse Proxy 41 is (as nginx, first server) obtain solicited message, and carry out identification authentication according to solicited message, call scope check, the inspection operation of the restriction interface interchange such as interface interchange number of times inspection, wherein, the number of times of developer's calling interface is recorded in redis caching server 43; If this request is by aforementioned inspection operation, then required parameter is distributed to business (interface) server 42 to process, and in redis caching server 43, upgrading the number of times of user's calling interface, the number of times of user's calling interface can be synchronized in backup database server 44 by certain hour by redis caching server 43; If this request is by detecting operation above, then limit the request of this calling interface, and docking port developer returns and unsuccessfully points out.
On the basis of previous embodiment, interface managerial method can further include:
Obtain result to first server from second server, and result sends to user.
According to the technical scheme of the present embodiment, the result obtained after second server can being realized interface function sends to user.
It should be noted that, in this article, term " comprises ", " comprising " or its any other variant are intended to contain comprising of nonexcludability, thus make to comprise the process of a series of key element, method, article or device and not only comprise those key elements, but also comprise other key elements clearly do not listed, or also comprise by the intrinsic key element of this process, method, article or device.When not more restrictions, the key element limited by statement " comprising ... ", and be not precluded within process, method, article or the device comprising this key element and also there is other identical element.
The invention described above embodiment sequence number, just to describing, does not represent the quality of embodiment.
Through the above description of the embodiments, those skilled in the art can be well understood to the mode that above-described embodiment method can add required general hardware platform by software and realize, hardware can certainly be passed through, but in a lot of situation, the former is better execution mode.Based on such understanding, technical scheme of the present invention can embody with the form of software product the part that prior art contributes in essence in other words, this computer software product is stored in a storage medium (as ROM/RAM, magnetic disc, CD), comprising some instructions in order to make a station terminal equipment (can be mobile phone, computer, server, air conditioner, or the network equipment etc.) perform method described in each embodiment of the present invention.
These are only the preferred embodiments of the present invention; not thereby the scope of the claims of the present invention is limited; every utilize specification of the present invention and accompanying drawing content to do equivalent structure or equivalent flow process conversion; or be directly or indirectly used in other relevant technical fields, be all in like manner included in scope of patent protection of the present invention.

Claims (10)

1. an interface management apparatus, is characterized in that, comprising:
Solicited message receiver module, for receiving the solicited message of user's calling interface at first server place;
Judge module, pre-conditioned for judging whether described request information meets;
Solicited message sending module, for when described request information conforms is pre-conditioned, is sent to second server corresponding to described interface by described request information from described first server, by described second server processes said request information.
2. interface management apparatus according to claim 1, is characterized in that,
Described judge module judges whether the identity of described user is default identity, and/or judges whether the identity of described user has the authority calling described interface, and/or judges whether the number of times that described user calls described interface exceedes preset times.
3. interface management apparatus according to claim 2, is characterized in that,
Described judge module from for obtaining the number of times that described user calls described interface the 3rd data cached server, and judges whether to exceed described preset times;
Described device also comprises:
Number of times update module, calls the number of times of described interface for upgrading the described user recorded in described 3rd server.
4. interface management apparatus according to claim 3, is characterized in that, also comprises:
Backup module, for the time of presetting, the number of times described user recorded in described 3rd server being called described interface is recorded in the 4th server for Backup Data.
5. interface management apparatus according to claim 4, is characterized in that,
There is not described user when calling the number of times of described interface in described judge module, what obtain that described user calls described interface from described 4th server time counts to described 3rd server in described 3rd server.
6. an interface managerial method, is characterized in that, comprising:
The solicited message of user's calling interface is received at first server place;
Judge whether described request information meets pre-conditioned;
When described request information conforms is pre-conditioned, described request information is sent to second server corresponding to described interface from described first server, by described second server processes said request information.
7. interface managerial method according to claim 6, is characterized in that, judges whether described request information meets pre-conditioned, specifically comprises:
Whether the identity judging described user is default identity, and/or judges whether the identity of described user has the authority calling described interface, and/or judges whether the number of times that described user calls described interface exceedes preset times.
8. interface managerial method according to claim 7, is characterized in that, judges whether the number of times that described user calls described interface exceedes preset times, specifically comprises:
From for obtaining the number of times that described user calls described interface the 3rd data cached server, and judge whether to exceed described preset times;
After described request information is sent to second server corresponding to described interface from described first server, also comprise:
Upgrade the number of times that the described user recorded in described 3rd server calls described interface.
9. interface managerial method according to claim 8, is characterized in that, also comprises:
The time of presetting, the number of times described user recorded in described 3rd server being called described interface is recorded in the 4th server for Backup Data.
10. interface managerial method according to claim 9, is characterized in that, from for obtaining the number of times that described user calls described interface the 3rd data cached server, specifically comprises:
In described 3rd server, there is not described user when calling the number of times of described interface, what obtain that described user calls described interface from described 4th server time counts to described 3rd server.
CN201510718376.0A 2015-10-29 2015-10-29 Interface management apparatus and method Pending CN105262821A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510718376.0A CN105262821A (en) 2015-10-29 2015-10-29 Interface management apparatus and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510718376.0A CN105262821A (en) 2015-10-29 2015-10-29 Interface management apparatus and method

Publications (1)

Publication Number Publication Date
CN105262821A true CN105262821A (en) 2016-01-20

Family

ID=55102325

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510718376.0A Pending CN105262821A (en) 2015-10-29 2015-10-29 Interface management apparatus and method

Country Status (1)

Country Link
CN (1) CN105262821A (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105893150A (en) * 2016-03-31 2016-08-24 腾讯科技(深圳)有限公司 Interface calling frequency control and interface calling request processing method and device
CN106254537A (en) * 2016-09-22 2016-12-21 北京小米移动软件有限公司 Interface interchange method and apparatus
CN107682255A (en) * 2017-11-17 2018-02-09 腾讯科技(深圳)有限公司 Method for message transmission, device and storage medium
CN108416591A (en) * 2018-02-28 2018-08-17 四川新网银行股份有限公司 A kind of method that transaction active current limliting is realized by api interface in financial transaction
CN110149313A (en) * 2019-04-12 2019-08-20 平安普惠企业管理有限公司 Data sharing method, electronic device and computer readable storage medium
WO2019237587A1 (en) * 2018-06-13 2019-12-19 平安科技(深圳)有限公司 Script execution method, server management system and storage medium
CN112104671A (en) * 2020-11-12 2020-12-18 深圳壹账通智能科技有限公司 Interface authorization monitoring method and device, computer equipment and storage medium
CN114679452A (en) * 2022-03-01 2022-06-28 北京金山云网络技术有限公司 Interface calling method and device, electronic equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7519812B2 (en) * 2004-02-19 2009-04-14 International Business Machines Corporation Architecture and design for central authentication and authorization in an on-demand utility environment
CN101515932A (en) * 2009-03-23 2009-08-26 中兴通讯股份有限公司 Method and system for accessing Web service safely
CN103428166A (en) * 2012-05-16 2013-12-04 腾讯科技(深圳)有限公司 Multi-SNS platform unified access method and system applied by third party
CN104360846A (en) * 2014-10-27 2015-02-18 江西博微新技术有限公司 OSGi-based adaptive design method for authority management of Web application development platform based on OSGi

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7519812B2 (en) * 2004-02-19 2009-04-14 International Business Machines Corporation Architecture and design for central authentication and authorization in an on-demand utility environment
CN101515932A (en) * 2009-03-23 2009-08-26 中兴通讯股份有限公司 Method and system for accessing Web service safely
CN103428166A (en) * 2012-05-16 2013-12-04 腾讯科技(深圳)有限公司 Multi-SNS platform unified access method and system applied by third party
CN104360846A (en) * 2014-10-27 2015-02-18 江西博微新技术有限公司 OSGi-based adaptive design method for authority management of Web application development platform based on OSGi

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105893150A (en) * 2016-03-31 2016-08-24 腾讯科技(深圳)有限公司 Interface calling frequency control and interface calling request processing method and device
CN105893150B (en) * 2016-03-31 2021-04-20 腾讯科技(深圳)有限公司 Interface calling frequency control method and device and interface calling request processing method and device
CN106254537A (en) * 2016-09-22 2016-12-21 北京小米移动软件有限公司 Interface interchange method and apparatus
CN107682255A (en) * 2017-11-17 2018-02-09 腾讯科技(深圳)有限公司 Method for message transmission, device and storage medium
CN107682255B (en) * 2017-11-17 2021-04-16 腾讯科技(深圳)有限公司 Message transmission method, device and storage medium
CN108416591A (en) * 2018-02-28 2018-08-17 四川新网银行股份有限公司 A kind of method that transaction active current limliting is realized by api interface in financial transaction
CN108416591B (en) * 2018-02-28 2021-11-02 四川新网银行股份有限公司 Method for realizing transaction active current limiting through API (application program interface) in financial transaction
WO2019237587A1 (en) * 2018-06-13 2019-12-19 平安科技(深圳)有限公司 Script execution method, server management system and storage medium
CN110149313A (en) * 2019-04-12 2019-08-20 平安普惠企业管理有限公司 Data sharing method, electronic device and computer readable storage medium
CN110149313B (en) * 2019-04-12 2023-10-13 上海申磊信息科技有限公司 Data sharing method, electronic device and computer readable storage medium
CN112104671A (en) * 2020-11-12 2020-12-18 深圳壹账通智能科技有限公司 Interface authorization monitoring method and device, computer equipment and storage medium
CN114679452A (en) * 2022-03-01 2022-06-28 北京金山云网络技术有限公司 Interface calling method and device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
CN105262821A (en) Interface management apparatus and method
CN105187521A (en) Service processing device and method
CN104883658A (en) Virtual card information processing method and system
CN104700839B (en) The method that multi-channel sound gathers, device, mobile phone and system
CN104935747A (en) Processing method and device for application icon, and terminal
CN105183308A (en) Picture display method and apparatus
CN105282245A (en) Server-crossing message pushing system and method
CN104731512A (en) Method, device and terminal for sharing pictures
CN105159700A (en) Application self-start control apparatus and method
CN105306457A (en) Data caching device and method
CN104850443A (en) Method for shutting down false start-up application program and mobile terminal
CN104809213A (en) Method, device and system for starting application software client
CN104915227A (en) Multi-source and multithread software upgrading method and system
CN105094612A (en) Object selecting method and device
CN104820555A (en) Transverse and vertical screen modes switching method and device, and terminal
CN104657181A (en) Method and device for mounting application program
CN105100416A (en) Event reminding method and wearable device
CN104951236A (en) Wallpaper configuration method for terminal device, and terminal device
CN105095051A (en) Method and device for reminding working state of background application program
CN104881218A (en) Mobile terminal screen scrolling method and mobile terminal screen scrolling device
CN104898940A (en) Picture processing method and device
CN105094893A (en) Method, equipment and system for installing payment application program
CN105138400A (en) Application self-starting management method and apparatus
CN105278995A (en) Management method of application, system, server and mobile terminal
CN105138871A (en) Unlocking method and apparatus for mobile terminal and mobile terminal

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20160120

RJ01 Rejection of invention patent application after publication