CN106254331A - A kind of terminal applies request managing device and method, communication system - Google Patents
A kind of terminal applies request managing device and method, communication system Download PDFInfo
- Publication number
- CN106254331A CN106254331A CN201610617198.7A CN201610617198A CN106254331A CN 106254331 A CN106254331 A CN 106254331A CN 201610617198 A CN201610617198 A CN 201610617198A CN 106254331 A CN106254331 A CN 106254331A
- Authority
- CN
- China
- Prior art keywords
- mode
- state
- full
- terminal
- working mode
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 45
- 238000004891 communication Methods 0.000 title claims abstract description 43
- 230000000903 blocking effect Effects 0.000 claims description 104
- 230000036961 partial effect Effects 0.000 claims description 53
- 238000012545 processing Methods 0.000 claims description 52
- 230000002159 abnormal effect Effects 0.000 claims description 50
- 238000007726 management method Methods 0.000 claims description 44
- 238000012360 testing method Methods 0.000 claims description 6
- 230000004044 response Effects 0.000 abstract description 39
- 230000008569 process Effects 0.000 abstract description 19
- 230000006870 function Effects 0.000 description 16
- 239000003795 chemical substances by application Substances 0.000 description 11
- 238000010586 diagram Methods 0.000 description 10
- 230000002829 reductive effect Effects 0.000 description 7
- 230000007246 mechanism Effects 0.000 description 6
- 238000010295 mobile communication Methods 0.000 description 4
- 238000009825 accumulation Methods 0.000 description 2
- 230000005540 biological transmission Effects 0.000 description 2
- 230000006866 deterioration Effects 0.000 description 2
- 238000012423 maintenance Methods 0.000 description 2
- 230000003211 malignant effect Effects 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 238000005192 partition Methods 0.000 description 2
- 230000000737 periodic effect Effects 0.000 description 2
- 230000002441 reversible effect Effects 0.000 description 2
- 230000007704 transition Effects 0.000 description 2
- 101150012579 ADSL gene Proteins 0.000 description 1
- 102100020775 Adenylosuccinate lyase Human genes 0.000 description 1
- 108700040193 Adenylosuccinate lyases Proteins 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 230000008878 coupling Effects 0.000 description 1
- 238000010168 coupling process Methods 0.000 description 1
- 238000005859 coupling reaction Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000009434 installation Methods 0.000 description 1
- 230000000670 limiting effect Effects 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 230000007774 longterm Effects 0.000 description 1
- 239000000203 mixture Substances 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000003909 pattern recognition Methods 0.000 description 1
- 230000001012 protector Effects 0.000 description 1
- 238000013468 resource allocation Methods 0.000 description 1
- 238000012216 screening Methods 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 230000005236 sound signal Effects 0.000 description 1
- 238000001228 spectrum Methods 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
- 239000010409 thin film Substances 0.000 description 1
- 238000010200 validation analysis Methods 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L65/00—Network arrangements, protocols or services for supporting real-time applications in data packet communication
- H04L65/40—Support for services or applications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L65/00—Network arrangements, protocols or services for supporting real-time applications in data packet communication
- H04L65/10—Architectures or entities
- H04L65/1063—Application servers providing network services
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72403—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Multimedia (AREA)
- Human Computer Interaction (AREA)
- Telephonic Communication Services (AREA)
Abstract
The invention discloses a kind of terminal applies request managing device and method, communication system, the method includes: obtain the current operating conditions of application server, and according to the corresponding relation of default running status Yu mode of operation, configures current operation mode;Receive the terminal applies request of self terminal;According to current operation mode, process the terminal applies request received.The present invention is by obtaining the current operating conditions of application server, and according to the corresponding relation of default running status Yu mode of operation, configuration current operation mode, on this basis, when the terminal applies receiving self terminal is asked, according to current operation mode, process the terminal applies request received;Rather than directly ask all to send to process to application server by all of terminal applies as prior art, reduce the burden of application server, it is also possible to make terminal quickly meet with a response, enhance the experience of user.
Description
Technical Field
The present invention relates to the field of terminal management, and in particular, to a terminal application request management apparatus and method, and a communication system.
Background
With the increasing cost performance of the intelligent terminals, the holding amount of the intelligent terminals is increasing, and in order to provide better services, a plurality of mobile phone manufacturers provide application servers for users to download applications and the like.
Such an application server may have problems in that: since all mobile phones of the same brand need to access the same application server, when the terminal access amount is too large in the same time period, for example, when the version of the mobile phone system is upgraded, the application server will respond too slowly and have no response, and the embodiment at the terminal side cannot be responded at this time, which seriously affects the use experience of the user.
Disclosure of Invention
The invention mainly aims to provide a terminal application request management device and method and a communication system, and aims to solve the problem that an application server cannot respond when terminal application requests are too dense in the prior art.
In order to achieve the above object, the present invention provides a terminal application request management apparatus, including:
the mode configuration module is used for acquiring the current running state of the application server and configuring the current working mode according to the corresponding relation between the preset running state and the working mode, wherein the working mode comprises a full forwarding mode, a partial blocking mode and a full blocking mode;
and the request management module is used for processing the received terminal application request according to the current working mode.
Optionally, the system further includes a fuse, and the mode configuration module is configured to invoke a pairing relationship between the working mode and the state machine state of the fuse, and configure the current state machine state of the fuse according to the current working mode and the pairing relationship.
Optionally, the running state includes access normal and access abnormal, and the corresponding relationship includes that the access normal corresponds to the full forwarding mode, the access abnormal corresponds to the full blocking mode when the duration is less than the threshold, and the access abnormal corresponds to the partial blocking mode when the duration is greater than the threshold; the mode configuration module is used for configuring the current working mode into a full forwarding mode when the running state is access normal, configuring the current working mode into a full blocking mode when the running state is access abnormal and the duration is less than a threshold value, and configuring the current working mode into a partial blocking mode when the running state is access abnormal and the duration is greater than the threshold value; the state machine state comprises a normal state, a semi-fusing state and a full fusing state, and the pairing relationship comprises: the normal state is paired with a full forwarding mode, the semi-fusing state is paired with a partial blocking mode, and the full fusing state is paired with a full blocking mode; the mode configuration module is used for configuring the state machine state of the fuse into a normal state when the current working mode is a full forwarding mode, configuring the state machine state of the fuse into a half-fusing state when the current working mode is a partial blocking mode, and configuring the state machine state of the fuse into a full-fusing state when the current working mode is a full blocking mode.
Optionally, the request management module is configured to forward all received terminal application requests to the application server when the current working mode is a full forwarding mode, forward part of the received terminal application requests to the application server when the current working mode is a partial blocking mode, and reject all received terminal application requests when the current working mode is a full blocking mode.
The invention provides a communication system, comprising a terminal, an application server and a terminal application request management device provided by the invention as proxy equipment, wherein,
the terminal is used for sending a terminal application request to the proxy equipment when the application is required to be requested;
the application server is used for processing the terminal application request forwarded by the proxy equipment and returning a processing result;
the proxy equipment is used for configuring a current working mode according to the current running state of the application server and processing the received terminal application request, wherein the working mode comprises a full forwarding mode, a partial blocking mode and a full blocking mode.
The invention provides a terminal application request management method, which comprises the following steps:
acquiring a current operation state of an application server, and configuring a current working mode according to a preset corresponding relation between the operation state and the working mode, wherein the working mode comprises a full forwarding mode, a partial blocking mode and a full blocking mode;
receiving a terminal application request from a terminal;
and processing the received terminal application request according to the current working mode.
Optionally, configuring the current operating mode includes:
calling a fuse;
calling the pairing relation between the working mode and the state machine state of the fuse;
and configuring the current state of the fuse according to the current working mode and the pairing relation.
Optionally, the state machine state includes a normal state, a semi-fusing state and a full fusing state, and the pairing relationship includes: the normal state is paired with a full forwarding mode, the semi-fusing state is paired with a partial blocking mode, and the full fusing state is paired with a full blocking mode; according to the current working mode and the pairing relationship, configuring the current state machine state of the fuse comprises the following steps:
when the current working mode is a full forwarding mode, configuring the state machine state of the fuse into a normal state;
or,
when the current working mode is a partial blocking mode, configuring the state machine state of the fuse into a semi-fusing state;
or,
and when the current working mode is the full blocking mode, configuring the state machine state of the fuse into a full fusing state.
Optionally, the running state includes access normal and access abnormal, and the corresponding relationship includes that the access normal corresponds to the full forwarding mode, the access abnormal corresponds to the full blocking mode when the duration is less than the threshold, and the access abnormal corresponds to the partial blocking mode when the duration is greater than the threshold; configuring the current working mode according to the corresponding relationship between the preset running state and the working mode comprises the following steps:
when the operation state is normal access, the current working mode is configured to be a full forwarding mode;
or,
when the running state is abnormal access and the duration is less than a threshold value, configuring the current working mode into a full blocking mode;
or,
and when the running state is abnormal access and the duration is greater than a threshold value, configuring the current working mode into a partial blocking mode.
Optionally, processing the received terminal application request according to the current working mode includes:
when the current working mode is a full forwarding mode, forwarding all the received terminal application requests to an application server;
or,
when the current working mode is a partial blocking mode, selecting partial terminal application requests as tests from all the received terminal application requests according to a preset rule, and forwarding the test results to an application server;
or,
and when the current working mode is the full blocking mode, rejecting all the received terminal application requests.
The embodiment of the invention provides a terminal application request management method, which comprises the steps of acquiring the current running state of an application server, configuring the current working mode according to the corresponding relation between the preset running state and the working mode, and processing the received terminal application request according to the current working mode when receiving the terminal application request from a terminal on the basis; instead of directly sending all terminal application requests to the application server for processing as in the prior art, the burden of the application server is reduced, meanwhile, the terminal can quickly obtain response, the problem that the application server cannot respond when the terminal application requests are too dense in the prior art is solved, and the use experience of a user is enhanced.
Drawings
Fig. 1 is a schematic diagram of a hardware structure of an alternative mobile terminal for implementing various embodiments of the present invention;
FIG. 2 is a diagram of a wireless communication system for the mobile terminal shown in FIG. 1;
FIG. 3 is a schematic structural diagram of a terminal application request management apparatus according to the present invention;
FIG. 4 is a schematic diagram of a proxy device according to the present invention;
FIG. 5 is a schematic diagram of another configuration of the proxy device of the present invention;
FIG. 6 is a flowchart of a terminal application request management method according to a first embodiment of the present invention;
FIG. 7 is a flowchart illustrating a second embodiment of a method for managing a terminal application request according to the present invention;
fig. 8 is a schematic diagram of the components of a conventional communication system according to the present invention;
fig. 9 is a schematic diagram of a communication system according to the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
A mobile terminal implementing various embodiments of the present invention will now be described with reference to the accompanying drawings. In the following description, suffixes such as "module", "component", or "unit" used to denote elements are used only for facilitating the explanation of the present invention, and have no specific meaning in themselves. Thus, "module" and "component" may be used in a mixture.
The mobile terminal may be implemented in various forms. For example, the terminal described in the present invention may include a mobile terminal such as a mobile phone, a smart phone, a notebook computer, a digital broadcast receiver, a PDA (personal digital assistant), a PAD (tablet computer), a PMP (portable multimedia player), a navigation device, and the like, and a stationary terminal such as a digital TV, a desktop computer, and the like. In the following, it is assumed that the terminal is a mobile terminal. However, it will be understood by those skilled in the art that the configuration according to the embodiment of the present invention can be applied to a fixed type terminal in addition to elements particularly used for moving purposes.
Fig. 1 is a schematic diagram of a hardware structure of an optional mobile terminal for implementing various embodiments of the present invention.
The mobile terminal 100 may include a wireless communication unit 110, a user input unit 120, an output unit 130, a memory 140, a controller 150, and a power supply unit 160, etc. Fig. 1 illustrates a mobile terminal having various components, but it is to be understood that not all illustrated components are required to be implemented, and that more or fewer components may instead be implemented, the elements of the mobile terminal being described in detail below.
The wireless communication unit 110 typically includes one or more components that allow radio communication between the mobile terminal 100 and a wireless communication system or network to download applications and the like. For example, the wireless communication unit may include at least one of a mobile communication module 111 and a wireless internet module 112.
The mobile communication module 111 transmits and/or receives radio signals to and/or from at least one of a base station (e.g., access point, node B, etc.), an external terminal, and a server. Such radio signals may include voice call signals, video call signals, or various types of data transmitted and/or received according to text and/or multimedia messages. In the present invention, the mobile communication module 111 is mainly used for sending a terminal application request when an application needs to be updated or a new application is requested according to parameters such as user operation/default configuration (e.g., application automatic update, etc.), and is also used for receiving a request response, such as request failure, etc.
The wireless internet module 112 supports wireless internet access of the mobile terminal. The module may be internally or externally coupled to the terminal. The wireless internet access technology to which the module relates may include WLAN (wireless LAN) (Wi-Fi), Wibro (wireless broadband), Wimax (worldwide interoperability for microwave access), HSDPA (high speed downlink packet access), and the like. In the present invention, the wireless internet module 112 is mainly used for sending a terminal application request when an application needs to be updated or a new application is requested according to parameters such as user operation/default configuration (e.g., application automatic update, etc.), and is also used for receiving an application file such as an installation package, wallpaper, etc. returned by the server.
The user input unit 120 may generate key input data to control various operations of the mobile terminal according to a command input by a user. The user input unit 120 allows a user to input various types of information, and may include a keyboard, dome sheet, touch pad (e.g., a touch-sensitive member that detects changes in resistance, pressure, capacitance, and the like due to being touched), scroll wheel, joystick, and the like. In particular, when the touch pad is superimposed on the display module 131 in the form of a layer, a touch screen may be formed. In the present invention, the user input unit 120 is mainly used for receiving operations such as clicking on a display screen by a user and generating a terminal application request.
The output unit 130 may include a display module 131 and the like. The display module 131 may display information processed in the mobile terminal 100. For example, when the mobile terminal 100 is in a phone call mode, the display module 131 may display a User Interface (UI) or a Graphical User Interface (GUI) related to a call or other communication (e.g., text messaging, multimedia file downloading, etc.). When the mobile terminal 100 is in a video call mode or an image capturing mode, the display module 131 may display a captured image and/or a received image, a UI or GUI showing a video or an image and related functions, and the like. In the present invention, the output unit 130 is mainly used for displaying a request response and the like on a display screen.
Meanwhile, when the display module 131 and the touch panel are stacked on each other in the form of layers to form a touch screen, the display module 131 may function as an input device and an output device. The display module 131 may include at least one of a Liquid Crystal Display (LCD), a thin film transistor LCD (TFT-LCD), an Organic Light Emitting Diode (OLED) display, a flexible display, a three-dimensional (3D) display, and the like. Some of these displays may be configured to be transparent to allow a user to view from the outside, which may be referred to as transparent displays, and a typical transparent display may be, for example, a TOLED (transparent organic light emitting diode) display or the like. The mobile terminal 100 may include two or more display modules (or other display devices) according to a particular desired implementation, for example, the mobile terminal may include an external display module (not shown) and an internal display module (not shown). The touch screen may be used to detect a touch input pressure as well as a touch input position and a touch input area.
The memory 140 may store software programs or the like that control the processing and control operations performed by the controller 150, or may temporarily store data that has been or is to be output (e.g., a list of junk files, a list of system files/encrypted files, a list of whitelisted objects, etc.). Also, the memory 140 may store data regarding various ways of vibration and audio signals output when a touch is applied to the touch screen.
The memory 140 may include at least one type of storage medium including a flash memory, a hard disk, a multimedia card, a card-type memory (e.g., SD or DX memory, etc.), a Random Access Memory (RAM), a Static Random Access Memory (SRAM), a read-only memory (ROM), an electrically erasable programmable read-only memory (EEPROM), a programmable read-only memory (PROM), a magnetic memory, a magnetic disk, an optical disk, and so on. Also, the mobile terminal 100 may cooperate with a network storage device that performs a storage function of the memory 140 through a network connection.
The controller 150 generally controls the overall operation of the mobile terminal. For example, the controller 150 performs control and processing related to voice calls, data communications, video calls, and the like. In addition, the controller 150 may include a multimedia module 151 for reproducing (or playing back) multimedia data, and the multimedia module 151 may be constructed within the controller 150 or may be constructed separately from the controller 150. The controller 150 may perform a pattern recognition process to recognize a handwriting input or a picture drawing input performed on the touch screen as a character or an image.
The power supply unit 160 receives external power or internal power and provides appropriate power required to operate the respective elements and components under the control of the controller 150.
The various embodiments described herein may be implemented in a computer-readable medium using, for example, computer software, hardware, or any combination thereof. For a hardware implementation, the embodiments described herein may be implemented using at least one of an Application Specific Integrated Circuit (ASIC), a Digital Signal Processor (DSP), a Digital Signal Processing Device (DSPD), a Programmable Logic Device (PLD), a Field Programmable Gate Array (FPGA), a processor, a controller, a microcontroller, a microprocessor, an electronic unit designed to perform the functions described herein, and in some cases, such embodiments may be implemented in the controller 150. For a software implementation, the implementation such as a process or a function may be implemented with a separate software module that allows performing at least one function or operation. The software codes may be implemented by software applications (or programs) written in any suitable programming language, which may be stored in memory 140 and executed by controller 150.
Up to this point, mobile terminals have been described in terms of their functionality. Hereinafter, a slide-type mobile terminal among various types of mobile terminals, such as a folder-type, bar-type, swing-type, slide-type mobile terminal, and the like, will be described as an example for the sake of brevity. Accordingly, the present invention can be applied to any type of mobile terminal, and is not limited to a slide type mobile terminal.
The mobile terminal 100 as shown in fig. 1 may be configured to operate with communication systems such as wired and wireless communication systems and satellite-based communication systems that transmit data via frames or packets.
A communication system in which a mobile terminal according to the present invention is operable will now be described with reference to fig. 2.
Such communication systems may use different air interfaces and/or physical layers. For example, the air interface used by the communication system includes, for example, Frequency Division Multiple Access (FDMA), Time Division Multiple Access (TDMA), Code Division Multiple Access (CDMA), and Universal Mobile Telecommunications System (UMTS) (in particular, Long Term Evolution (LTE)), global system for mobile communications (GSM), and the like. By way of non-limiting example, the following description relates to a CDMA communication system, but such teachings are equally applicable to other types of systems.
Referring to fig. 2, the CDMA wireless communication system may include a plurality of mobile terminals 100, a plurality of Base Stations (BSs) 270, Base Station Controllers (BSCs) 275, and a Mobile Switching Center (MSC) 280. The MSC280 is configured to interface with a Public Switched Telephone Network (PSTN) 290. The MSC280 is also configured to interface with a BSC275, which may be coupled to the base station 270 via a backhaul. The backhaul may be constructed according to any of several known interfaces including, for example, E1/T1, ATM, IP, PPP, frame Relay, HDSL, ADSL, or xDSL. It will be understood that a system as shown in fig. 2 may include multiple BSCs 275.
Each BS270 may serve one or more sectors (or regions), each sector covered by a multi-directional antenna or an antenna pointing in a particular direction being radially distant from the BS 270. Alternatively, each partition may be covered by two or more antennas for diversity reception. Each BS270 may be configured to support multiple frequency allocations, with each frequency allocation having a particular frequency spectrum (e.g., 1.25MHz,5MHz, etc.).
The intersection of partitions with frequency allocations may be referred to as a CDMA channel. The BS270 may also be referred to as a Base Transceiver Subsystem (BTS) or other equivalent terminology. In such a case, the term "base station" may be used to generically refer to a single BSC275 and at least one BS 270. The base stations may also be referred to as "cells". Alternatively, each sector of a particular BS270 may be referred to as a plurality of cell sites.
As shown in fig. 2, a Broadcast Transmitter (BT)295 transmits a broadcast signal to the mobile terminal 100 operating within the system. In fig. 2, several Global Positioning System (GPS) satellites 300 are shown. The satellite 300 assists in locating at least one of the plurality of mobile terminals 100.
In fig. 2, a plurality of satellites 300 are depicted, but it is understood that useful positioning information may be obtained with any number of satellites. The GPS module 115 as shown in fig. 1 is generally configured to cooperate with satellites 300 to obtain desired positioning information. Other techniques that can track the location of the mobile terminal may be used instead of or in addition to GPS tracking techniques. In addition, at least one GPS satellite 300 may selectively or additionally process satellite DMB transmission.
As a typical operation of the wireless communication system, the BS270 receives reverse link signals from various mobile terminals 100. The mobile terminal 100 is generally engaged in conversations, messaging, and other types of communications. Each reverse link signal received by a particular base station 270 is processed within the particular BS 270. The obtained data is forwarded to the associated BSC 275. The BSC provides call resource allocation and mobility management functions including coordination of soft handoff procedures between BSs 270. The BSCs 275 also route the received data to the MSC280, which provides additional routing services for interfacing with the PSTN 290. Similarly, the PSTN290 interfaces with the MSC280, the MSC interfaces with the BSCs 275, and the BSCs 275 accordingly control the BS270 to transmit forward link signals to the mobile terminal 100.
Based on the above mobile terminal hardware structure and communication system, the present invention provides various embodiments of the method.
As shown in fig. 3, based on the above-mentioned mobile terminal hardware structure and communication system, an embodiment of the terminal application request management apparatus of the present invention is proposed, and specifically, the terminal application request management apparatus provided by the present invention includes:
the mode configuration module 31 is configured to obtain a current operating state of the application server, and configure a current operating mode according to a preset correspondence between the operating state and the operating mode, where the operating mode includes a full forwarding mode, a partial blocking mode, and a full blocking mode.
In practical application, the running state includes normal access and abnormal access. The current operating state of the application server refers to the current operating state of the application server, and may be determined according to whether the application server can normally respond to the terminal application request, for example, when the application server can normally respond to the terminal application request, it indicates that the terminal can normally access the application server, at this time, the current operating state is normal access, correspondingly, if the application server cannot normally respond to the terminal application request, it indicates that the terminal cannot normally access the application server, at this time, even if the terminal sends the terminal application request to the application server, the response of the application server cannot be obtained, at this time, the current operating state is abnormal access.
In practical applications, the following ways may be included for how to obtain the current operating state of the application server:
the method 1 is to actively monitor the running state of the application server in real time, and the mode is mainly used for judging whether the time length for processing a terminal application request and returning a processing result is normal or not after the application server receives the terminal application request under the condition that the application server normally provides a service, for example, under the normal condition, the time length for processing the terminal application request by the application server is 1 second, if the time length for processing the terminal application request by the application server is monitored to be 30 seconds or longer at the time of T0, the running state of the application server is considered to be abnormal access, and if the time length for processing the terminal application request by the application server is monitored to be 1 second at the time of T1, the running state of the application server is considered to be normal access. In practical applications, the terminal application request according to this embodiment may be a real terminal application request transmitted by the terminal, or may be a virtual/simulated terminal application request for testing periodically transmitted by the terminal application request management device.
And the mode 2 is mainly used for actively sending the state information to the terminal application request management device when the application server cannot normally provide the service, for example, when the application server needs to perform operations such as updating maintenance and the like, and informing that the operation state of the application server is that the service cannot be provided and the access is abnormal.
In practical application, the full forwarding mode refers to forwarding all received terminal application requests to the application server, and the working principle and implementation of the mode are simple, and only the terminal application requests are forwarded.
In practical applications, the full blocking mode is to directly block all terminal application requests, and return a request response with a request failure to a corresponding terminal, where the response content of the request response may include a failure reason and a suggestion, for example, it is notified to a user that the failure reason is because many users request the same application at the same time, and it is suggested at what time the user tries, and of course, when generating the request response, different response contents may be generated for different users, for example, it is suggested that a first group of users re-request at 11 points, and it is suggested that a second group of users re-request at 12 points, and the request response may even carry timing information, and this timing information is used to trigger the terminal to automatically re-request at a specified time, and does not need the user to manually trigger the request, so as to enhance the user experience.
In practical application, the partial blocking mode is a transition mode for attempting to recover from the full blocking mode to the full forwarding mode, after the partial blocking mode is in the full blocking mode for a certain time, for example, after 10 minutes, the device tries to enter the full forwarding mode, at this time, the device is in the partial blocking mode, one or more terminal application requests are selected from the received terminal application requests and forwarded to the application server according to preset rules, whether the time length for processing the terminal application requests and returning a processing result is normal after the application server receives one terminal application request is judged, if so, the device enters the full forwarding mode, and if not, the device returns to enter the full blocking mode. In practical application, one or more terminal application requests are selected from the received terminal application requests according to a preset rule, one terminal application request can be selected according to a periodic interval, and the application server can be judged whether the access of the application server is really recovered to be normal or the application server belongs to a falsely normal state which can not normally process a plurality of terminal application requests by contacting and selecting a specified number of terminal application requests. Of course, in the partial blocking mode, for the selected terminal application request, if the response of the application server is not received within the normal response time, the request failure response is directly fed back to the corresponding terminal.
In practical application, the corresponding relation comprises that the access normal mode corresponds to the full forwarding mode, the access abnormal mode corresponds to the full blocking mode when the duration is less than a threshold value, and the access abnormal mode corresponds to the partial blocking mode when the duration is greater than the threshold value; the mode configuration module is used for configuring the current working mode into a full forwarding mode when the running state is access normal, configuring the current working mode into a full blocking mode when the running state is access abnormal and the duration is less than a threshold value, and configuring the current working mode into a partial blocking mode when the running state is access abnormal and the duration is greater than the threshold value.
And the request management module 32 is configured to process the received terminal application request according to the current working mode.
In practical applications, the request management module 32 is configured to forward all the received terminal application requests to the application server when the current working mode is the full forwarding mode, forward part of the received terminal application requests to the application server when the current working mode is the partial blocking mode, and reject all the received terminal application requests when the current working mode is the full blocking mode.
In practical applications, all functional modules of the terminal application request management device can be realized by the cooperation of the processor and the memory.
In practical application, the implementation of the working mode of the terminal application request management device can be realized in a pure software manner or a hardware circuit manner, only a corresponding program is needed for the software implementation manner, and a fuse can be adopted for the hardware circuit implementation manner.
In practical application, the state machine state of the fuse includes a normal state, a half-blown state and a full-blown state, and the pairing relationship includes: the normal state is paired with a full forwarding mode, the semi-fusing state is paired with a partial blocking mode, and the full fusing state is paired with a full blocking mode; the mode configuration module is used for configuring the state machine state of the fuse into a normal state when the current working mode is a full forwarding mode, configuring the state machine state of the fuse into a half-fusing state when the current working mode is a partial blocking mode, and configuring the state machine state of the fuse into a full-fusing state when the current working mode is a full blocking mode.
In the prior art, for a terminal application request from a terminal, no matter whether the application server can normally respond or not, the terminal application request is sent to the application server for processing, and if the application server starts to be abnormal, the received terminal application request is accumulated, so that abnormal deterioration and even crash of the application server are caused, serious loss is caused, especially, the user experience is deteriorated, and the result caused by the loss is hard to imagine. In the embodiment, the running state of the application server is obtained, when the running state of the application server is abnormal in access, the device is set to be in a full blocking mode, all terminal application requests are directly blocked, a request failure response is fed back for each terminal, time waiting for unnecessary telephone charges of terminal users is not needed, new burden cannot be increased for the application server, malignant accumulation cannot be caused, and the application server can be conveniently recovered to be normal as soon as possible.
For example, more and more mobile terminal users begin to use the theme of the mobile phone, so that the background of the mobile phone looks distinctive, and in order to meet the consumption demand, all large terminal equipment manufacturers establish an online theme store for the consumers to download and change the theme of the mobile phone. The reality is that the number of mobile terminals is quite large, and the frequency of theme updating for users is higher and higher. Consumers often encounter unresponsive conditions in online subject stores that affect user satisfaction with mobile terminal device branded services to some extent. In order to solve the above problems, the embodiment may prevent the online theme store from being crashed due to an excessive request of the user through a self-fusing mechanism, so as to improve the satisfaction degree of the user to a certain extent, introduce a self-fusing mechanism in the backend service of the online theme store of the mobile terminal, so as to package the remote services which may cause the request failure, when the remote services are abnormal, the remote services may immediately return an error response to the incoming request, and inform a system administrator, so as to control the error within a local range, prevent the background system from being crashed, thereby improving the stability and reliability of the system, and improving the satisfaction degree of the user.
In summary, the terminal application request management apparatus provided in this embodiment configures the current working mode by acquiring the current running state of the application server and according to the preset corresponding relationship between the running state and the working mode, and on this basis, when a terminal application request from a terminal is received, processes the received terminal application request according to the current working mode; instead of directly sending all terminal application requests to the application server for processing as in the prior art, the burden of the application server is reduced, meanwhile, the terminal can quickly obtain response, the problem that the application server cannot respond when the terminal application requests are too dense in the prior art is solved, and the use experience of a user is enhanced.
In an embodiment of the present invention, the terminal application request management apparatus provided in the present invention may be added to the communication system as shown in fig. 2 as a proxy device, where the communication system includes: at least one terminal, at least one application server, and a terminal application request management apparatus provided by the present invention are provided as proxy devices, which are provided between the terminal and the application server, wherein,
the terminal is used for sending a terminal application request to the proxy equipment when the application is required to be requested;
the application server is used for processing the terminal application request forwarded by the proxy equipment and returning a processing result;
in practical applications, the processing result may be directly sent to the terminal through the communication network or may be sent to the terminal through the proxy device.
The proxy equipment is used for configuring a current working mode according to the current running state of the application server and processing the received terminal application request, wherein the working mode comprises a full forwarding mode, a partial blocking mode and a full blocking mode.
In the communication system provided in this embodiment, the proxy device configures the current operating mode by acquiring the current operating state of the application server and according to the preset corresponding relationship between the operating state and the operating mode, and on this basis, when receiving a terminal application request from the terminal, processes the received terminal application request according to the current operating mode; instead of directly sending all terminal application requests to the application server for processing as in the prior art, the burden of the application server is reduced, meanwhile, the terminal can quickly obtain response, the problem that the application server cannot respond when the terminal application requests are too dense in the prior art is solved, and the use experience of a user is enhanced.
Fig. 4 is a schematic structural diagram of the proxy device of the present invention, and as shown in fig. 4, the proxy device provided in this embodiment at least includes: an Input Output (IO) bus 41, a processor 42, a RAM43, a memory 44, and a communication device 45. Wherein,
the input/output (IO) bus 41 is connected to other components (the processor 42, the memory 43, the memory 44, and the communication device 45) of the terminal to which it belongs, and provides a transmission line for the other components.
The processor 42 typically controls the overall operation of the server to which it belongs. For example, processor 42 performs computations, validation, etc. The processor 42 may be a Central Processing Unit (CPU), among others. In this embodiment, the processor 42 at least needs to have the following functions: acquiring a current operation state of an application server, and configuring a current working mode according to a preset corresponding relation between the operation state and the working mode, wherein the working mode comprises a full forwarding mode, a partial blocking mode and a full blocking mode; and processing the received terminal application request according to the current working mode.
The RAM43 stores processor-readable, processor-executable software code containing instructions for controlling the processor 42 to perform the functions described herein (i.e., software execution functions). In the present embodiment, the RAM43 needs to store at least the programs necessary for implementing the functions described above by the processor 42.
In the terminal file management apparatus provided by the present invention, the software codes for implementing the functions of the calculation module 31, the marking module 32, the screening module 33, the deleting module 34 and the displaying module 35 may be stored in the memory 43, and executed by the processor 42 or compiled and then executed.
The memory 44, which is typically a semiconductor memory unit, includes Random Access Memory (RAM), Read Only Memory (ROM), and CACHE memory (CACHE), of which RAM is the most important. The memory 44 is one of the important components in the computer, and is a bridge for communicating with the CPU, and the operation of all programs in the computer is performed in the memory, and is used for temporarily storing the operation data in the CPU and the data exchanged with an external storage such as a hard disk, and the CPU transfers the data to be operated to the memory for operation as long as the computer is in operation, and the CPU transmits the result after the operation is completed, and the operation of the memory also determines the stable operation of the computer.
The communication device 45, generally including one or more components, is allowed to operate under the control of the processor 42, such as obtaining an operation status of the application server, receiving a terminal application request from the terminal, forwarding the terminal application request from the terminal to the application server, feeding back a request failure response to the terminal corresponding to each terminal application request, and so on.
On the basis of the components shown in fig. 4, the proxy device provided by the present embodiment may operate as follows:
the processor 42 acquires the running state of the application server through the communication device 45;
the processor 42 configures the current working mode according to the corresponding relationship between the preset running state and the working mode;
the communication means 45 receives a terminal application request from the terminal;
the processor 42 processes the received terminal application request according to the current working mode, and generates a processing result, such as direct forwarding, direct blocking, and the like;
the communication device 45 transfers the terminal application request from the terminal to the application server for the terminal application request directly transferred under the control of the processor 42, and feeds back a request failure response and the like to the terminal corresponding to each terminal application request for the terminal application request directly blocked.
The proxy device provided in this embodiment configures the current operating mode by acquiring the current operating state of the application server and according to the preset corresponding relationship between the operating state and the operating mode, and on this basis, when receiving a terminal application request from a terminal, processes the received terminal application request according to the current operating mode; instead of directly sending all terminal application requests to the application server for processing as in the prior art, the burden of the application server is reduced, meanwhile, the terminal can quickly obtain response, the problem that the application server cannot respond when the terminal application requests are too dense in the prior art is solved, and the use experience of a user is enhanced.
Fig. 5 is another schematic structural diagram of the proxy device of the present invention, and as shown in fig. 5, the proxy device provided in this embodiment at least includes: a front-end service agent module 51, a self-fusing module 52, and a back-end service agent module 53, wherein,
the main function of the front-end service agent module 51 is to receive a service request of the mobile terminal and forward the service request to the self-fusing module. And forwarding the processing result to the mobile terminal. The purpose of introducing the front-end service agent is to reduce the coupling between the core module, namely the self-fusing module, and the mobile terminal, so that the functions of the core module, namely the self-fusing module, are more uniform and clear.
The main function of the self-fusing module 52 is that when the application server is abnormal, such as the target service is slow or a lot of time-out occurs, the self-fusing module can actively fuse to prevent the service from being further dragged and broken; if the situation is improved, the access can be automatically recovered. The self-fusing mechanism is internally in the form of a state machine and is divided into a normal state, a fusing state and a semi-fusing state. Under the normal state, the fuse is in a closed state, and at the moment, after the request of the front-end service agent module is received, the request is forwarded to the back-end service agent module. And forwards the results to the front-end service broker module. If the calling is continuously wrong or overtime, the circuit is opened to enter a fusing state, all calling in a subsequent period of time can be rejected, the back-end service is protected, and after a period of time, the protector can try to enter a semi-fusing state. In the semi-blown state, a small number of incoming requests are allowed to attempt, and if the call still fails, the state is returned to the blown state, and if the call succeeds, the state is returned to the circuit closed state.
The main function of the back-end service agent module 53 is to continuously monitor the working state of the back-end service, and if the service is found to be abnormal or the load is too heavy, return an access error message, otherwise forward the request to the responding background service, and return the processing result to the front-end.
The proxy device provided by the embodiment can effectively filter the overload access of the front end by introducing the self-fusing mechanism, and effectively protect the reliable operation of the background service.
As shown in fig. 6, a first embodiment of a terminal application request management method according to the present invention is proposed, and in this embodiment, the terminal application request management method includes the following steps:
s601: and acquiring the current running state of the application server.
In practical application, the running state includes normal access and abnormal access. The current operating state of the application server refers to the current operating state of the application server, and may be determined according to whether the application server can normally respond to the terminal application request, for example, when the application server can normally respond to the terminal application request, it indicates that the terminal can normally access the application server, at this time, the current operating state is normal access, correspondingly, if the application server cannot normally respond to the terminal application request, it indicates that the terminal cannot normally access the application server, at this time, even if the terminal sends the terminal application request to the application server, the response of the application server cannot be obtained, at this time, the current operating state is abnormal access.
In practical applications, the following ways may be included for how to obtain the current operating state of the application server:
the method 1 is to actively monitor the running state of the application server in real time, and the mode is mainly used for judging whether the time length for processing a terminal application request and returning a processing result is normal or not after the application server receives the terminal application request under the condition that the application server normally provides a service, for example, under the normal condition, the time length for processing the terminal application request by the application server is 1 second, if the time length for processing the terminal application request by the application server is monitored to be 30 seconds or longer at the time of T0, the running state of the application server is considered to be abnormal access, and if the time length for processing the terminal application request by the application server is monitored to be 1 second at the time of T1, the running state of the application server is considered to be normal access. In practical applications, the terminal application request according to this embodiment may be a real terminal application request transmitted by the terminal, or may be a virtual/simulated terminal application request for testing periodically transmitted by the terminal application request management device.
And the mode 2 is mainly used for actively sending the state information to the terminal application request management device when the application server cannot normally provide the service, for example, when the application server needs to perform operations such as updating maintenance and the like, and informing that the operation state of the application server is that the service cannot be provided and the access is abnormal.
S602: and configuring the current working mode according to the corresponding relation between the preset running state and the working mode, wherein the working mode comprises a full forwarding mode, a partial blocking mode and a full blocking mode.
In practical application, the full forwarding mode refers to forwarding all received terminal application requests to the application server, and the working principle and implementation of the mode are simple, and only the terminal application requests are forwarded.
In practical applications, the full blocking mode is to directly block all terminal application requests, and return a request response with a request failure to a corresponding terminal, where the response content of the request response may include a failure reason and a suggestion, for example, it is notified to a user that the failure reason is because many users request the same application at the same time, and it is suggested at what time the user tries, and of course, when generating the request response, different response contents may be generated for different users, for example, it is suggested that a first group of users re-request at 11 points, and it is suggested that a second group of users re-request at 12 points, and the request response may even carry timing information, and this timing information is used to trigger the terminal to automatically re-request at a specified time, and does not need the user to manually trigger the request, so as to enhance the user experience.
In practical application, the partial blocking mode is a transition mode for attempting to recover from the full blocking mode to the full forwarding mode, after the partial blocking mode is in the full blocking mode for a certain time, for example, after 10 minutes, the device tries to enter the full forwarding mode, at this time, the device is in the partial blocking mode, one or more terminal application requests are selected from the received terminal application requests and forwarded to the application server according to preset rules, whether the time length for processing the terminal application requests and returning a processing result is normal after the application server receives one terminal application request is judged, if so, the device enters the full forwarding mode, and if not, the device returns to enter the full blocking mode. In practical application, one or more terminal application requests are selected from the received terminal application requests according to a preset rule, one terminal application request can be selected according to a periodic interval, and the application server can be judged whether the access of the application server is really recovered to be normal or the application server belongs to a falsely normal state which can not normally process a plurality of terminal application requests by contacting and selecting a specified number of terminal application requests. Of course, in the partial blocking mode, for the selected terminal application request, if the response of the application server is not received within the normal response time, the request failure response is directly fed back to the corresponding terminal.
In practical application, the corresponding relation comprises that the access normal mode corresponds to the full forwarding mode, the access abnormal mode corresponds to the full blocking mode when the duration is less than a threshold value, and the access abnormal mode corresponds to the partial blocking mode when the duration is greater than the threshold value; when the operation state is access normal, the current working mode is configured to be a full forwarding mode, when the operation state is access abnormal and the duration is less than a threshold value, the current working mode is configured to be a full blocking mode, and when the operation state is access abnormal and the duration is greater than the threshold value, the current working mode is configured to be a partial blocking mode.
In practical application, the method can be implemented by using a fuse, and in this case, the method includes the following steps: calling a fuse; calling the pairing relation between the working mode and the state machine state of the fuse; and configuring the current state of the fuse according to the current working mode and the pairing relation. In practical application, the state machine state of the fuse includes a normal state, a half-blown state and a full-blown state, and the pairing relationship includes: the normal state is paired with a full forwarding mode, the semi-fusing state is paired with a partial blocking mode, and the full fusing state is paired with a full blocking mode; the mode configuration module is used for configuring the state machine state of the fuse into a normal state when the current working mode is a full forwarding mode, configuring the state machine state of the fuse into a half-fusing state when the current working mode is a partial blocking mode, and configuring the state machine state of the fuse into a full-fusing state when the current working mode is a full blocking mode.
S603: a terminal application request is received from a terminal.
A terminal application request is received from a terminal via a communication system as shown in fig. 2.
S604: and processing the received terminal application request according to the current working mode.
In practical application, when the current working mode is the full forwarding mode, all the received terminal application requests are forwarded to the application server, when the current working mode is the partial blocking mode, part of the received terminal application requests are forwarded to the application server, and when the current working mode is the full blocking mode, all the received terminal application requests are rejected.
In the prior art, for a terminal application request from a terminal, no matter whether the application server can normally respond or not, the terminal application request is sent to the application server for processing, and if the application server starts to be abnormal, the received terminal application request is accumulated, so that abnormal deterioration and even crash of the application server are caused, serious loss is caused, especially, the user experience is deteriorated, and the result caused by the loss is hard to imagine. In the embodiment, the running state of the application server is obtained, when the running state of the application server is abnormal in access, the device is set to be in a full blocking mode, all terminal application requests are directly blocked, a request failure response is fed back for each terminal, time waiting for unnecessary telephone charges of terminal users is not needed, new burden cannot be increased for the application server, malignant accumulation cannot be caused, and the application server can be conveniently recovered to be normal as soon as possible.
In summary, the terminal application request management method provided in this embodiment configures the current working mode by obtaining the current running state of the application server and according to the preset corresponding relationship between the running state and the working mode, and on this basis, when a terminal application request from a terminal is received, processes the received terminal application request according to the current working mode; instead of directly sending all terminal application requests to the application server for processing as in the prior art, the burden of the application server is reduced, meanwhile, the terminal can quickly obtain response, the problem that the application server cannot respond when the terminal application requests are too dense in the prior art is solved, and the use experience of a user is enhanced.
As shown in fig. 7, a second embodiment of the terminal application request management method of the present invention is proposed, and in this embodiment, the terminal application request management method includes the following steps:
s701: and proxy equipment is added directly between the terminal and the application server.
In the existing communication architecture between the terminal and the application server, as shown in fig. 8, when a mobile terminal user accesses an online theme store, the theme application may call remote services or resources, and the call of the remote services or resources may fail or suspend without response until a timeout occurs. In extreme cases, a large number of requests may block calls to these exceptional remote services, resulting in some critical system resources being exhausted, thereby causing cascading failures, and thus, stalling the overall system.
In order to solve the problems of the existing communication architecture, the method is characterized in that proxy equipment is directly added on a terminal and an application server, a communication system as shown in fig. 9 is deployed, the proxy equipment adopts a self-fusing mechanism to prevent overload requests of background services, the remote services which may cause request failure are protected by introducing the fusing mechanism, when the remote services are abnormal, an error response can be immediately returned to the incoming requests, a system administrator is informed of the error response, and the error is controlled in a local range, so that the stability and reliability of the system are improved, and the experience of a user is improved.
S702: the proxy equipment acquires the running state of the application server.
The agent device continuously monitors the working state of the back-end service through the back-end service agent module. And if the service is abnormal or the load is too heavy, returning access error information and determining that the running state of the application server is abnormal. Otherwise, determining that the running state of the application server is normal, forwarding the request to the responding background service, and returning the processing result.
S703: the agent device configures an operating mode.
The method comprises the following steps: when the operation state is access normal, the current working mode is configured to be a full forwarding mode, when the operation state is access abnormal and the duration is less than a threshold value, the current working mode is configured to be a full blocking mode, and when the operation state is access abnormal and the duration is greater than the threshold value, the current working mode is configured to be a partial blocking mode.
The method can be realized by the following steps: and when the current working mode is the full forwarding mode, configuring the state machine state of the fuse into a normal state, when the current working mode is the partial blocking mode, configuring the state machine state of the fuse into a semi-fusing state, and when the current working mode is the full blocking mode, configuring the state machine state of the fuse into a full fusing state.
S704: and the agent equipment processes the received terminal application request according to the working mode.
The method comprises the following steps: when the current working mode is a full forwarding mode, forwarding all the received terminal application requests to an application server, when the current working mode is a partial blocking mode, forwarding part of the received terminal application requests to the application server, and when the current working mode is the full blocking mode, rejecting all the received terminal application requests.
The embodiment of the invention provides a terminal application request management method, which comprises the steps that proxy equipment is deployed, the proxy equipment acquires the current running state of an application server, the current working mode is configured according to the corresponding relation between the preset running state and the working mode, and on the basis, when a terminal application request from a terminal is received, the received terminal application request is processed according to the current working mode; instead of directly sending all terminal application requests to the application server for processing as in the prior art, the burden of the application server is reduced, meanwhile, the terminal can quickly obtain response, the problem that the application server cannot respond when the terminal application requests are too dense in the prior art is solved, and the use experience of a user is enhanced.
The terminal application request management method provided by the embodiment of the invention is characterized in that the current operating state of an application server is obtained, and the current operating mode is configured according to the corresponding relation between the preset operating state and the operating mode, and on the basis, when a terminal application request from a terminal is received, the received terminal application request is processed according to the current operating mode; instead of directly sending all terminal application requests to the application server for processing as in the prior art, the burden of the application server is reduced, meanwhile, the terminal can quickly obtain response, the problem that the application server cannot respond when the terminal application requests are too dense in the prior art is solved, and the use experience of a user is enhanced.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.
Claims (10)
1. A terminal application request management apparatus, comprising:
the system comprises a mode configuration module, a data processing module and a data processing module, wherein the mode configuration module is used for acquiring the current running state of an application server and configuring the current working mode according to the corresponding relation between the preset running state and the working mode, and the working mode comprises a full forwarding mode, a partial blocking mode and a full blocking mode;
and the request management module is used for processing the received terminal application request according to the current working mode.
2. The terminal application request management apparatus of claim 1, further comprising a fuse, wherein the mode configuration module is configured to invoke a pairing relationship between an operating mode and a state machine state of the fuse, and configure the current state machine state of the fuse according to the current operating mode and the pairing relationship.
3. The terminal application request management device of claim 2,
the running state comprises normal access and abnormal access, the corresponding relation comprises the normal access corresponding to the full forwarding mode, the abnormal access corresponding to the full blocking mode when the duration is less than a threshold value, and the abnormal access corresponding to the partial blocking mode when the duration is greater than the threshold value; the mode configuration module is used for configuring the current working mode into a full forwarding mode when the running state is access normal, configuring the current working mode into a full blocking mode when the running state is access abnormal and the duration is less than a threshold, and configuring the current working mode into a partial blocking mode when the running state is access abnormal and the duration is greater than the threshold;
the state machine states include a normal state, a semi-fusing state and a full fusing state, and the pairing relationship includes: the normal state is paired with the full forwarding mode, the semi-blown state is paired with the partial blocking mode, and the full blown state is paired with the full blocking mode; the mode configuration module is used for configuring the state machine state of the fuse to be a normal state when the current working mode is a full forwarding mode, configuring the state machine state of the fuse to be a half-fusing state when the current working mode is a partial blocking mode, and configuring the state machine state of the fuse to be a full-fusing state when the current working mode is a full blocking mode.
4. The terminal application request management device according to any one of claims 1 to 3, wherein the request management module is configured to forward all the received terminal application requests to the application server when the current operating mode is a full forwarding mode, forward part of the received terminal application requests to the application server when the current operating mode is a partial blocking mode, and reject all the received terminal application requests when the current operating mode is a full blocking mode.
5. A communication system comprising a terminal, an application server, and the terminal application request management apparatus according to any one of claims 1 to 4 as a proxy device, wherein,
the terminal is used for sending a terminal application request to the proxy equipment when the application is required to be requested;
the application server is used for processing the terminal application request forwarded by the proxy equipment and returning a processing result;
the proxy equipment is used for configuring a current working mode according to the current running state of the application server and processing the received terminal application request, wherein the working mode comprises a full forwarding mode, a partial blocking mode and a full blocking mode.
6. A terminal application request management method is characterized by comprising the following steps:
acquiring a current running state of an application server, and configuring a current working mode according to a preset corresponding relation between the running state and the working mode, wherein the working mode comprises a full forwarding mode, a partial blocking mode and a full blocking mode;
receiving a terminal application request from a terminal;
and processing the received terminal application request according to the current working mode.
7. The terminal application request management method of claim 6, wherein the configuring the current operating mode comprises:
calling a fuse;
calling a pairing relation between a working mode and the state machine state of the fuse;
and configuring the current state machine state of the fuse according to the current working mode and the pairing relation.
8. The method of claim 7, wherein the state machine states include a normal state, a semi-blown state, and a fully blown state, and wherein the pairing relationship comprises: the normal state is paired with the full forwarding mode, the semi-blown state is paired with the partial blocking mode, and the full blown state is paired with the full blocking mode; the configuring the current state machine state of the fuse according to the current working mode and the pairing relationship comprises:
when the current working mode is a full forwarding mode, configuring the state machine state of the fuse into a normal state;
or,
when the current working mode is a partial blocking mode, configuring the state machine state of the fuse into a half-fusing state;
or,
and when the current working mode is a full blocking mode, configuring the state machine state of the fuse into a full fusing state.
9. The terminal application request management method according to claim 6, wherein the running status includes access normal and access abnormal, and the correspondence includes that the access normal corresponds to the full forwarding mode, the access abnormal corresponds to the full blocking mode when the duration is less than a threshold, and the access abnormal corresponds to the partial blocking mode when the duration is greater than the threshold; the configuring the current working mode according to the preset corresponding relationship between the running state and the working mode includes:
when the operation state is normal access, configuring the current working mode into a full forwarding mode;
or,
when the running state is abnormal access and the duration is less than a threshold value, configuring the current working mode into a full-blocking mode;
or,
and when the running state is abnormal access and the duration is greater than a threshold value, configuring the current working mode into a partial blocking mode.
10. The method according to any of claims 6 to 9, wherein said processing the received terminal application request according to the current operation mode comprises:
when the current working mode is a full forwarding mode, forwarding all the received terminal application requests to an application server;
or,
when the current working mode is a partial blocking mode, selecting partial terminal application requests as tests from all the received terminal application requests according to a preset rule, and forwarding the test results to an application server;
or,
and when the current working mode is the full blocking mode, rejecting all the received terminal application requests.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610617198.7A CN106254331A (en) | 2016-07-28 | 2016-07-28 | A kind of terminal applies request managing device and method, communication system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610617198.7A CN106254331A (en) | 2016-07-28 | 2016-07-28 | A kind of terminal applies request managing device and method, communication system |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106254331A true CN106254331A (en) | 2016-12-21 |
Family
ID=57606120
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610617198.7A Pending CN106254331A (en) | 2016-07-28 | 2016-07-28 | A kind of terminal applies request managing device and method, communication system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106254331A (en) |
Cited By (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107171828A (en) * | 2017-04-18 | 2017-09-15 | 北京思特奇信息技术股份有限公司 | It is a kind of to tackle overtime blowout method and the system that far call is relied on |
CN107659431A (en) * | 2017-08-15 | 2018-02-02 | 北京趣拿软件科技有限公司 | Interface processing method, apparatus, storage medium and processor |
CN108009075A (en) * | 2017-11-27 | 2018-05-08 | 南京联创信息科技有限公司 | Dynamic fusing determination methods based on Hystrix frames |
WO2018171287A1 (en) * | 2017-03-22 | 2018-09-27 | 武汉斗鱼网络科技有限公司 | Remote invoking method and remote invoking apparatus |
CN108600354A (en) * | 2018-04-13 | 2018-09-28 | 中国民航信息网络股份有限公司 | System response time fluctuates suppressing method and system |
CN109104336A (en) * | 2018-09-27 | 2018-12-28 | 平安普惠企业管理有限公司 | Service request processing method, device, computer equipment and storage medium |
CN111324477A (en) * | 2020-02-03 | 2020-06-23 | 北京同邦卓益科技有限公司 | Processing method and device for distributed fusing |
CN111343222A (en) * | 2018-12-18 | 2020-06-26 | 珠海格力电器股份有限公司 | Method and device for monitoring subsystem to limit flow, storage medium and server |
CN111770134A (en) * | 2020-05-25 | 2020-10-13 | 国电南瑞科技股份有限公司 | Service fusing method based on service quality |
CN111932235A (en) * | 2019-05-13 | 2020-11-13 | 中国移动通信集团湖北有限公司 | Business processing method, data accessor, state manager and computing equipment |
CN113905091A (en) * | 2021-09-15 | 2022-01-07 | 盐城金堤科技有限公司 | Method and device for processing access request |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2009278532A (en) * | 2008-05-16 | 2009-11-26 | Fujitsu Ltd | Transmission apparatus and congestion control method |
CN101754471A (en) * | 2008-12-09 | 2010-06-23 | 中兴通讯股份有限公司 | Method and device for switching work modes of wireless local area network access device |
CN104767689A (en) * | 2014-01-07 | 2015-07-08 | 腾讯科技(深圳)有限公司 | Method of controlling network access amount and server |
WO2016029195A2 (en) * | 2014-08-22 | 2016-02-25 | Seven Networks, Llc | Mobile device equipped with mobile network congestion recognition to make intelligent decisions regarding connecting to an operator network for optimize user experience |
-
2016
- 2016-07-28 CN CN201610617198.7A patent/CN106254331A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2009278532A (en) * | 2008-05-16 | 2009-11-26 | Fujitsu Ltd | Transmission apparatus and congestion control method |
CN101754471A (en) * | 2008-12-09 | 2010-06-23 | 中兴通讯股份有限公司 | Method and device for switching work modes of wireless local area network access device |
CN104767689A (en) * | 2014-01-07 | 2015-07-08 | 腾讯科技(深圳)有限公司 | Method of controlling network access amount and server |
WO2016029195A2 (en) * | 2014-08-22 | 2016-02-25 | Seven Networks, Llc | Mobile device equipped with mobile network congestion recognition to make intelligent decisions regarding connecting to an operator network for optimize user experience |
Non-Patent Citations (2)
Title |
---|
MATT JACOBS和DAVID GROSS: "Netfrix/Hystrix", 《GITHUB》 * |
YBAK: "防雪崩利器:熔断器Hystirx的原理与使用", 《编程随笔-SEGMENTFAULT思否》 * |
Cited By (17)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2018171287A1 (en) * | 2017-03-22 | 2018-09-27 | 武汉斗鱼网络科技有限公司 | Remote invoking method and remote invoking apparatus |
CN107171828B (en) * | 2017-04-18 | 2020-04-10 | 北京思特奇信息技术股份有限公司 | Overtime fusing method and system for coping with remote call dependence |
CN107171828A (en) * | 2017-04-18 | 2017-09-15 | 北京思特奇信息技术股份有限公司 | It is a kind of to tackle overtime blowout method and the system that far call is relied on |
CN107659431A (en) * | 2017-08-15 | 2018-02-02 | 北京趣拿软件科技有限公司 | Interface processing method, apparatus, storage medium and processor |
CN108009075A (en) * | 2017-11-27 | 2018-05-08 | 南京联创信息科技有限公司 | Dynamic fusing determination methods based on Hystrix frames |
CN108009075B (en) * | 2017-11-27 | 2018-10-09 | 南京联创信息科技有限公司 | Dynamic fusing judgment method based on Hystrix frames |
CN108600354A (en) * | 2018-04-13 | 2018-09-28 | 中国民航信息网络股份有限公司 | System response time fluctuates suppressing method and system |
CN108600354B (en) * | 2018-04-13 | 2020-01-07 | 中国民航信息网络股份有限公司 | System response time fluctuation suppression method and system |
CN109104336A (en) * | 2018-09-27 | 2018-12-28 | 平安普惠企业管理有限公司 | Service request processing method, device, computer equipment and storage medium |
CN111343222A (en) * | 2018-12-18 | 2020-06-26 | 珠海格力电器股份有限公司 | Method and device for monitoring subsystem to limit flow, storage medium and server |
CN111932235A (en) * | 2019-05-13 | 2020-11-13 | 中国移动通信集团湖北有限公司 | Business processing method, data accessor, state manager and computing equipment |
CN111932235B (en) * | 2019-05-13 | 2024-04-19 | 中国移动通信集团湖北有限公司 | Service processing method, data accessor, state manager and computing device |
CN111324477A (en) * | 2020-02-03 | 2020-06-23 | 北京同邦卓益科技有限公司 | Processing method and device for distributed fusing |
CN111770134A (en) * | 2020-05-25 | 2020-10-13 | 国电南瑞科技股份有限公司 | Service fusing method based on service quality |
CN111770134B (en) * | 2020-05-25 | 2024-03-29 | 国电南瑞科技股份有限公司 | Service fusing method based on service quality |
CN113905091A (en) * | 2021-09-15 | 2022-01-07 | 盐城金堤科技有限公司 | Method and device for processing access request |
CN113905091B (en) * | 2021-09-15 | 2023-09-01 | 盐城天眼察微科技有限公司 | Method and device for processing access request |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106254331A (en) | A kind of terminal applies request managing device and method, communication system | |
CN106648725B (en) | Terminal, server and configuration file upgrading method | |
CN106155741B (en) | It is a kind of to avoid processing unit and method of the application program without response | |
CN106844029B (en) | Self-management Android process freezing and unfreezing device and method | |
CN105867789A (en) | Method and method for preventing misoperation | |
CN106775391B (en) | Interface switching device and method | |
CN105740008B (en) | Device and method for forbidding chained start of application program | |
CN106878053A (en) | A kind of config update devices and methods therefor based on ZOOKEEPER | |
CN107066320B (en) | Android process freezing and unfreezing device and method | |
CN106097952B (en) | Terminal display screen resolution adjusting method and terminal | |
CN105611594A (en) | Network switching device and method | |
CN106293343B (en) | Control method and device for shortcut operation function | |
CN105791561A (en) | Mobile terminal control method and device | |
CN105490928A (en) | Mobile terminal and multitask processing method thereof | |
CN105426036A (en) | Interface display upgrade method, apparatus and system for application | |
CN105491224A (en) | Mobile terminal and business request processing method thereof | |
CN106095464B (en) | A kind of method and device of the seamless operation of application program | |
CN105808049B (en) | A kind of control method that realizing mobile terminal and device | |
CN106028286B (en) | Wireless local area network access device and method | |
CN106547565B (en) | Browser exception reporting method and system | |
CN105657733B (en) | Network stability control device and method | |
CN106066865B (en) | Application recommendation device and method | |
CN105430042B (en) | A kind of method, server-side and mobile terminal for realizing data transmission | |
CN106886713A (en) | A kind of risk checking method of terminal, server and installation software | |
CN105722142A (en) | Mobile terminal and multilink-based data streaming method |
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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20161221 |