Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, completeSite preparation description, it is clear that described embodiments are some of the embodiments of the present invention, instead of all the embodiments.Based on this hairEmbodiment in bright, every other implementation obtained by those of ordinary skill in the art without making creative effortsExample, shall fall within the protection scope of the present invention.
Server current-limiting method provided in an embodiment of the present invention based on digital subscriber mark, can be applicable to answering such as Fig. 1With in environment, wherein intelligent terminal is communicated by network with server-side.Wherein, intelligent terminal is including but not limited to variousPersonal computer, laptop, smart phone, tablet computer and portable wearable device.Server-side can be with independentThe server cluster of server either multiple servers composition is realized.Method provided in this embodiment can be applied to cloud serviceOn device.Cloud Server refers to providing the network server of network service for user, it is possible to provide be simple and efficient, securely and reliably, placeReason ability can elastic telescopic calculating service.Method provided in this embodiment can be used for solving the high concurrent feelings of Cloud Server experienceCurrent limliting problem under scape.
In one embodiment, as shown in Fig. 2, a kind of server current-limiting method based on digital subscriber mark is provided, with thisMethod is illustrated for applying the server-side in Fig. 1, is included the following steps:
S10, the access request with digital subscriber mark that intelligent terminal is sent is received, the digital subscriber mark is based onIt logs in the user information of the user account of the intelligent terminal and generates.
In the present embodiment, intelligent terminal can be smart phone, tablet computer, desktop computer or other can networkTerminal device.Intelligent terminal can be logged in user account, can also have no user account login.Digital subscriber mark is based onIt logs in the user information of the user account of the intelligent terminal and generates.User information is to log in the user of the intelligent terminalThe relevant information of account, can be the access information of the user account, be also possible to the configuration information of the user account.User's accountIt number refers to issuing the application program of access request or the login account of the page.It is asked for example, issuing access in certain Bank applicationIt asks, then user account refers to the login account of the Bank application;Access request is issued on a certain search and webpage, then user's accountNumber refer to providing the login account of the website of the search and webpage.It is worth noting that, being counted if user account is made of numberWord user identifier can be identical as user account.For example, an intelligent terminal is smart phone, user account is phone number,Such as 135XXXXXXXX (herein, X represents any one number in 0-9), digital subscriber mark can be all135XXXXXXXX.Access request can based on the intelligent terminal webpage or application end be sent to server.In another realityIt applies in example, digital subscriber mark can be updated by the specified period.
S20, when current limiting switch is opened, obtain current limliting configuration information from server buffer, the current limiting switch is usedIn the flowing of access of control server-side.
In the present embodiment, current limiting switch is used for when the access request number that server receives is greater than default access thresholds,The access request received is shunted.For example, default access thresholds are 10000, when access request number is 50000, visitIt asks that number of request is greater than default access thresholds, opens current limiting switch;When access request number is 6000, access request number is less than defaultAccess thresholds close current limiting switch.When current limiting switch is opened, server obtains current limliting from server buffer and matches confidenceBreath.Caching refers to the buffer area (referred to as Cache) of data exchange, is that a kind of Web content that will need frequently to access is stored inFrom user compared in close, the faster system of access speed, to improve the technology of access to content speed.Server buffer herein can be withRefer to the high speed storing space on cache server, memory or disk.Current limliting configuration information is stored in server buffer, can be by fingerFixed cycle is updated.When current limiting switch is closed, server-side sends data corresponding with access request to intelligent terminalInformation.
Current limliting configuration information is instructed including one or more logic judgment, and the instruction of each logic judgment is used to judgement and visitsIt asks and identifies whether to meet the current limliting configuration information by the digital subscriber of the intelligent terminal of server (namely digital subscriber identifies whetherMatched with current limliting configuration information), and then determine whether the intelligent terminal access server.If the number of intelligent terminal is usedFamily mark meets all logic judgment instructions in current limliting configuration information, then server responds the access request of the intelligent terminalAnd data information corresponding with the access request is sent to the intelligent terminal;If the digital subscriber mark of intelligent terminal is unsatisfactory for patrollingDecision instruction is collected, then server then returns to refusal information to intelligent terminal.
S30, judge that the digital subscriber identifies whether to match with the current limliting configuration information.
In the present embodiment, current limliting configuration information includes one or more logic judgment instruction.Digital subscriber identifiesField of the one or more for differentiation.If the logic judgment that the field in digital subscriber mark meets in current limliting configuration information refers toThe requirement of order, then digital subscriber mark is matched with current limliting configuration information.If the field in digital subscriber mark does not meet current limlitingThe requirement of logic judgment instruction in configuration information, then digital subscriber mark is mismatched with current limliting configuration information.For example, current limlitingIt is 0 that configuration information, which requires the last one digit number of digital subscriber mark, if last position that the digital subscriber in access request identifiesNumber is 0, then the digital subscriber mark of the access request is matched with current limliting configuration information;If the digital subscriber in access request identifiesLast one digit number be 5, then the access request digital subscriber mark with current limliting configuration information mismatch.
If S40, the digital subscriber mark are matched with the current limliting configuration information, to intelligent terminal transmission and instituteState the corresponding data information of access request.
In the present embodiment, is matched when the digital subscriber of intelligent terminal is identified with current limliting configuration information, then allow intelligent terminalConnection is established with server, then sends data information corresponding with access request from server to intelligent terminal.Here, numberIt is believed that breath includes but is not limited to page info or downloading file.
In step S10-S40, the access request with digital subscriber mark that intelligent terminal is sent is received, the number is usedFamily identifies the user information based on the user account for logging in the intelligent terminal and generates, to obtain for judging whether to intelligenceEnergy terminal carries out the digital subscriber mark of current limliting.When current limiting switch is opened, current limliting is obtained from server buffer and matches confidenceBreath, the current limiting switch are used to control the flowing of access of server-side, to obtain the current limliting configuration for handling digital subscriber markInformation.Judge that the digital subscriber identifies whether to match with the current limliting configuration information, is determined whether in a manner of simple matchCurrent limliting is carried out to intelligent terminal.If the digital subscriber mark is matched with the current limliting configuration information, to the intelligent terminalData information corresponding with the access request is sent, to realize the current-limiting function of server, matches the intelligence of current limliting configuration informationEnergy terminal is available to arrive its requested data information.The present embodiment sends out intelligent terminal using simple current limliting configuration informationThe digital subscriber mark that the access request sent includes is judged can quickly judge whether intelligent terminal is the intelligence being allowed toTerminal, and then determine whether that intelligent terminal sends data information corresponding with access request, reduce occupancy server resource,The purpose of current limliting is realized simultaneously.
Optionally, referring to figure 3., before step S10, further includes:
S101, the digital subscriber mark is generated according to the access of intelligent terminal record by the specified period;
S102, digital subscriber mark is sent to the intelligent terminal.
In the present embodiment, the digital subscriber mark of intelligent terminal, which can be periodically (to update every the specified period primary), to be updated's.Server generates new digital subscriber mark, and is sent to intelligent terminal, replaces original digital subscriber mark.In this way, intelligenceEnergy terminal needs to carry replaced digital subscriber mark when sending access request to server.Here, the specified period canTaking human as setting, two weeks, one month or three months can be.It can be set and be updated in the idle stage, such as morning four5 points, the digital subscriber mark of intelligent terminal is generated, reduces server in the load of peak period.
Wherein, digital subscriber identifies settable multiple and different fields, these fields can be divided into two classes, and one kind is static wordSection, another kind of is dynamic field.Static fields according to the machine code of intelligent terminal or can log in the use of the intelligent terminalFamily account generates.Dynamic field can be recorded according to the access of user and be generated.Here, digital subscriber mark can be and haveThe number of multiple numerical digits, field indicate the wherein number of some numerical digit or a few a numerical digits.For example, can distribute the first field withThe use duration of user is associated.It can define four kinds and use duration, such as: " frequently using ", the number of the first corresponding fieldValue is 00;" being commonly used ", the numerical value of the first corresponding field are 01;" less use ", the first corresponding fieldNumerical value be 10;" from being not used ", the numerical value of the first corresponding field is 11.
If intelligent terminal is recorded without available access, the access based on blank is recorded as the intelligent terminal and generates number useFamily mark.For example, intelligent terminal A, when accessing server, no first access record then first sends to service and does not include numberThen the access request of user identifier returns to the digital subscriber mark of intelligent terminal A from server to intelligent terminal A.Intelligence is eventuallyEnd A digital subscriber mark can be 0110000111111111, wherein first eight bits be it is associated with the mark of intelligent terminal A,Eight are then to be recorded by the access of blank and generated afterwards.Likewise, if intelligent terminal B when accessing server, also without firstAccess record, then its digital subscriber generated mark can be 0110001011111111, wherein first eight bits are and intelligent terminalThe mark of B is associated, and latter eight are then to be recorded by the access of blank and generated.
In step S101-S102, the digital subscriber is generated according to the access of intelligent terminal record by the specified periodMark, to regularly update the digital subscriber mark of intelligent terminal.Digital subscriber mark is sent to the intelligent terminal, withIntelligent terminal is set to carry new digital subscriber identification access server-side.
Optionally, before reference Fig. 4, step S20, further includes:
S201, the access record for obtaining the intelligent terminal;
User's alive data in S202, statistics the access record, determines intelligence eventually according to user's alive dataEnliven grade in end;
S203, when generating digital subscriber mark, set the specific field that the digital subscriber identifies to and instituteIt states and enlivens the corresponding number of grade.
Access record can refer to the log recording generated when intelligent terminal accesses server.Access record may include operationUsers' alive data such as duration, number of clicks.In some applications for being related to commodity purchasing or business handling or webpage, userAlive data may include commodity purchasing result or business handling result.
Intelligent terminal is divided into according to user's alive data and different enlivens grade.The designated word that digital subscriber is identifiedSection with enliven grade and be associated with, and determine number corresponding to specific field according to grade is enlivened.For example, enlivening grade can be divided intoIt is especially preferential, preferential and common, respectively correspond 01,02,03, then intelligent terminal enliven grade be it is especially preferential when, generate shouldWhen the digital subscriber mark of intelligent terminal, 01 is set by specific field;Intelligent terminal enliven grade be it is preferential when, generate shouldWhen the digital subscriber mark of intelligent terminal, 02 is set by specific field;Intelligent terminal enliven grade be it is common when, generate shouldWhen the digital subscriber mark of intelligent terminal, 03 is set by specific field.
In step S201-S203, the access record of the intelligent terminal is obtained, is visited with obtaining for evaluating the intelligent terminalAsk the record data of the frequency.User's alive data in the access record is counted, intelligence is determined according to user's alive dataEnergy terminal enlivens grade, is divided into multiple grades to enliven grade for all intelligent terminals, distinguishes the important of intelligent terminalDegree.When generating digital subscriber mark, by the specific field that the digital subscriber identifies be set as with it is described active etc.The corresponding number of grade, so that associated, the server-side reading that enlivens grade of the specific field of digital subscriber mark and intelligent terminalWhat digital subscriber mark can determine intelligent terminal enlivens grade.
Optionally, referring to Fig. 5, the current limliting configuration information includes that the instruction of the first logic judgment and the second logic judgment refer toIt enables;
First logic judgment instructs
Whether S2001, the first specific field for judging the digital subscriber mark are the first designation number;
If the first specific field of S2002, the digital subscriber mark is the first designation number, determine that the number is usedFamily mark is matched with the current limliting configuration information;
Second logic judgment instructs
If the first specific field of S2003, the digital subscriber mark is not the first designation number, judge that the number is usedWhether the second specific field of family mark is the second designation number;
If the second specific field of S2004, the digital subscriber mark is the second designation number, determine that the number is usedFamily mark is matched with the current limliting configuration information.
In the present embodiment, current limliting configuration information may include two logic judgment instructions, and respectively the first logic judgment refers toIt enables and the second logic judgment instructs.The instruction of each logic judgment is for judging the corresponding specific field in digital subscriber markNo is corresponding designation number.For example, the instruction of the first logic judgment is corresponding with the first specific field in digital subscriber mark, useIn judging whether the first specific field is the first designation number;The instruction of second logic judgment refers to second in digital subscriber markIt is corresponding to determine field;For judging whether the second specific field is the second designation number.First designation number may include one orMultiple numbers, e.g., the first designation number can be { 1 }, be also possible to { 1,2 }.Likewise, the second designation number may include oneA or multiple numbers, e.g., the second designation number can be { 3 }, be also possible to { 1,3 }.First specific field and the second designated wordDifferent location of the section in digital subscriber mark, e.g., the total bit of digital subscriber mark are 18, and the first specific field is specifiedIt is 11~12;Second specific field is appointed as 13~14.It is specified corresponding to first designation number and the second designation numberField is different, thus, the first designation number can be identical with the second designation number, be also possible to difference.
Specifically, the first designation number can correspond to the gender of intelligent terminal user in the instruction of the first logic judgment.Such asThe gender of intelligent terminal user is male, and corresponding set of number, such as { 1,2,3,4,5 }, the gender of intelligent terminal user isFemale, corresponding set of number, such as { 6,7,8,9,0 }.
The second logic judgment instruction in, can conversion rate of products and user based on intelligent terminal operation duration ratioIntelligent terminal is divided into multiple conversion grades, corresponding second designation number of each conversion grade by value.For example, conversion gradeIt may include height, in, it is low, it is that high corresponding set of number can be set to 00~19 with conversion grade, with conversion grade isCorresponding set of number can be set to 20~49, be that low corresponding set of number can be set to 50~99 with conversion grade.
In a statistical data, the male to female ratio of intelligent terminal user is 3:1.The conversion grade ratio of male user are as follows:Height, 10%;In, 30%;It is low, 60%.The conversion grade ratio of female user are as follows: it is high, 30%;In, 20%;It is low, 50%.Then may be usedTo calculate optimal distributing strategy, the allocation proportion of men and women user and different conversion grades are determined.Maximum current limliting ratio is 50%,Current limliting configuration information may be configured as:
Whether the first specific field for judging digital subscriber mark is one in { 6,7,8,9,0 };
If the first specific field of digital subscriber mark is one in { 6,7,8,9,0 }, then sent out to the intelligent terminalSend data information corresponding with the access request;
If the first specific field of digital subscriber mark is not any one in { 6,7,8,9,0 }, then digital use is judgedWhether the second specific field of family mark is one in 00-29;
If the second specific field of digital subscriber mark is one in 00-29, to intelligent terminal transmission and instituteState the corresponding data information of access request;
If the second specific field of digital subscriber mark is not one in 00-29, refused to intelligent terminal transmissionExhausted information.
In the above-described embodiments, the shunt ratio of female user is 25%, and the shunt ratio of male user is 22.5%, twoThe sum of person is 47.5%, the maximum current limliting ratio less than 50%.Thus by the setting of above-mentioned current limliting configuration information, meet current limlitingThe requirement of ratio 15%.
Optionally, as shown in fig. 6, described obtain current limliting configuration information from server buffer, comprising:
S204, current time is obtained;
S205, the current limliting configuration information with the current time matches is obtained from server buffer.
In some cases, above-mentioned statistical data is to count to obtain based on different periods.For example, in 18:00-19:59:, the male to female ratio of intelligent terminal user is 3:1;In 20:00-22:59, the male to female ratio of intelligent terminal user is 1:1;?22:00-23:59, the male to female ratio of intelligent terminal user are 1:2.Then can each period access statistical data generate notSame current limliting configuration information.It is needing to obtain the current limliting configuration information with current time matches using current limliting configuration information.ExampleSuch as, current time is 12 noon, then obtains the current limliting configuration information of this period of 12:00-13:59.
Optionally, as shown in fig. 7, before step S20, further includes:
The current access request number of S206, at preset timed intervals interval acquiring and default access thresholds.
Prefixed time interval can be set according to actual needs, such as can be 10 seconds, 30 seconds, 60 seconds.Access is askedNumber is asked to refer to that client is initiated to establish the quantity of connection request to server-side.Performance shadow of the default access thresholds by server-sideIt rings, the maximum number of connections of server-side can not be greater than.Default access thresholds can be set according to actual needs.
S207, current limliting ratio is determined according to the access request number and default access thresholds;
S208, the current limliting configuration information is generated according to the current limliting ratio.
In the present embodiment, current limliting configuration information can be generated according to current limliting ratio.Current limliting ratio may include at two kindsReason mode.The first processing mode calculates estimated current limliting ratio according to access request number and default access thresholds, then again reallyFixed limit stream configuration information.For example, access request number is 10000, presetting access thresholds is 5000, then current limliting ratio setting is50%.In one embodiment, digital subscriber is identified as phone number, can be according to the tail number of phone number in conjunction with current limliting ratioDetermine current limliting configuration information, such as current limliting 10%, current limliting configuration information can be (.*2), then the intelligent terminal that tail number is 2 is to clothesThe access request of business device is allowed to, and tail number is that the intelligent terminal of other numbers is rejected the access request of server.SecondProcessing mode is that the current limliting ratio of different field is determined according to access request number and default access thresholds.For example, access request numberIt is 10000, presetting access thresholds is 5000, and the digital subscriber mark of intelligent terminal includes two fields, one of field listShow that the priority level of intelligent terminal, another field indicate random number, wherein priority level is divided into priority 10%, regular grade90%, then the intelligent terminal that can first distribute priority is addressable intelligent terminal, and actual quantity 2000 is visited remainingThe intelligent terminal share 3000 asked distributes to regular grade intelligent terminal, can take the remainder the field for indicating random number to 8, remainder is0-2 then allows to access, remainder 3-7, then denied access.
In step S206-S208, the current access request number of interval acquiring and default access thresholds at preset timed intervals, can andWhen obtain current access request number.Current limliting ratio is determined according to the access request number and default access thresholds, flexibly to adjustWhole current limliting ratio.The current limliting configuration information is generated according to the current limliting ratio, reasonably to distribute current flow.Due to limitStream configuration information is to be shunted according to digital subscriber mark to intelligent terminal, if sending the intelligent terminal sum of access requestExcessively, it is understood that there may be the intelligent terminal quantity after current limliting is greater than the maximum number of connections of server, needs to regenerate current limliting at this timeConfiguration information.For example, original current limliting configuration information allows 20% intelligent terminal to access, but when the access of intelligent terminal is totalWhen number doubles, need to be automatically regulated to be current limliting configuration information allows 10% intelligent terminal to access, and just can guarantee serverThe high flow capacity that will not be happened suddenly washes away, while guaranteeing that the intelligent terminal being allowed to normally accesses server during current limliting.
Optionally, as shown in figure 8, step S30 includes:
S301, judge number on the specific field of digital subscriber mark whether with set in the current limliting configuration informationThe numerical value for any one digital element in digital collection set is equal;
If the number being arranged in the number and the current limliting configuration information on the specific field of S302, the digital subscriber markThe numerical value of any one digital element in word set is equal, it is determined that the digital subscriber mark and the current limliting configuration informationMatching.
In the present embodiment, the digital collection that is arranged in specific field and current limliting configuration information can according to step S201 orMethod in S202 determines.This step is regarded as the logic judgment instruction of a materialization in current limliting configuration information.For example, intelligenceCan the number on the digital subscriber mark specific field of terminal C be 01, the digital collection being arranged in current limliting configuration information be 01,02,03,04,05,06,07 }, then it is believed that the digital subscriber mark of intelligent terminal C is matched with current limliting configuration information;If intelligence is eventuallyHolding the number on the digital subscriber mark specific field of C is 23, then it is believed that the digital subscriber mark of intelligent terminal C is matched with current limlitingConfidence breath mismatches.
In step S301-S302, judge number on the specific field of digital subscriber mark whether with the current limlitingThe numerical value for any one digital element in digital collection being arranged in configuration information is equal, determines number with simple logic judgmentWhether word user identifier matches with current limliting configuration information, and the server resource of consumption is small.If the digital subscriber mark is specifiedNumber in field is equal with the numerical value of any one digital element in the digital collection being arranged in the current limliting configuration information,It then determines that the digital subscriber mark is matched with the current limliting configuration information, to complete the logic judgment process, and determines numberUser identifier is matched with current limliting configuration information.
Optionally, after step S40, further includes:
If S41, the digital subscriber mark are not matched with the current limliting configuration information, refused to intelligent terminal transmissionExhausted information.
In the present embodiment, when digital subscriber mark and the current limliting configuration information of intelligent terminal mismatch, then intelligent terminal is notConnection is established with server, then sends refusal information from server to intelligent terminal.The particular content for refusing information can rootSet according to actual demand, such as be may be configured as: system upgrade please try again later.
It should be understood that the size of the serial number of each step is not meant that the order of the execution order in above-described embodiment, each processExecution sequence should be determined by its function and internal logic, the implementation process without coping with the embodiment of the present invention constitutes any limitIt is fixed.
In one embodiment, a kind of server current limiting system based on digital subscriber mark, the server current limliting system are providedSystem is corresponded with the server current-limiting method based on digital subscriber mark in above-described embodiment.As shown in figure 9, should be based on numberThe server current limiting system of user identifier includes receiving request module, obtain configuration information module, judgment module and sending dataModule.Detailed description are as follows for each functional module:
Request module 10 is received, it is described for receiving the access request with digital subscriber mark of intelligent terminal transmissionDigital subscriber identifies the user information based on the user account for logging in the intelligent terminal and generates;
Configuration information module 20 is obtained, for obtaining current limliting configuration from server buffer when current limiting switch is openedInformation, the current limiting switch are used to control the flowing of access of server-side;
Judgment module 30, for judging that the digital subscriber identifies whether to match with the current limliting configuration information;
Data module 40 is sent, if matching for digital subscriber mark with the current limliting configuration information, Xiang SuoshuIntelligent terminal sends data information corresponding with the access request.
Optionally, server current limiting system further include:
Identifier generation module, for generating the digital subscriber according to the access of intelligent terminal record by the specified periodMark;
Sending module is identified, for digital subscriber mark to be sent to the intelligent terminal.
Optionally, the identifier generation module includes:
Recording unit is obtained, the access for obtaining the intelligent terminal records;
Stage unit is sentenced for counting user's alive data in the access record according to user's alive dataThat determines intelligent terminal enlivens grade;
Mark unit is generated, the designated word for when generating digital subscriber mark, the digital subscriber to be identifiedSection is set as enlivening the corresponding number of grade with described.
Optionally, the current limliting configuration information includes the instruction of the first logic judgment and the instruction of the second logic judgment;
First logic judgment instructs
Whether the first specific field for judging the digital subscriber mark is the first designation number;
If the first specific field of the digital subscriber mark is the first designation number, the digital subscriber mark is determinedIt is matched with the current limliting configuration information;
Second logic judgment instructs
If the first specific field of the digital subscriber mark is not the first designation number, the digital subscriber mark is judgedThe second specific field whether be the second designation number;
If the second specific field of the digital subscriber mark is the second designation number, the digital subscriber mark is determinedIt is matched with the current limliting configuration information.
Optionally, obtaining configuration information module 20 includes:
Acquisition time unit, for obtaining current time;
Configuration information unit is obtained, matches confidence with the current limliting of the current time matches for obtaining from server bufferBreath.
Optionally, configuration information module 20 is obtained further include:
Access counting unit is obtained, for interval acquiring current access request number and default access thresholds at preset timed intervals;
Current limliting proportional unit is determined, for determining current limliting ratio according to the access request number and default access thresholds;
Configuration information generation unit, for generating the current limliting configuration information according to the current limliting ratio.
Optionally, judgment module 30 includes:
Digital judgement unit, the number on specific field for judging digital subscriber mark whether with the current limlitingThe numerical value for any one digital element in digital collection being arranged in configuration information is equal;
Matching unit is determined, if the number on the specific field of digital subscriber mark matches confidence with the current limlitingThe numerical value for any one digital element in digital collection being arranged in breath is equal, it is determined that digital subscriber mark with it is describedThe matching of current limliting configuration information.
Optionally, judgment module 30 includes:
Refuse unit, if for the digital subscriber mark specific field on number not with the current limliting configuration informationMatching then sends refusal information to the intelligent terminal.
Specific restriction about the server current limiting system identified based on digital subscriber may refer to above for being based onThe restriction of the server current-limiting method of digital subscriber mark, details are not described herein.The above-mentioned server based on digital subscriber markModules in current limiting system can be realized fully or partially through software, hardware and combinations thereof.Above-mentioned each module can be hardPart form is embedded in or independently of in the processor in computer equipment, can also be stored in computer equipment in a software formMemory in, execute the corresponding operation of above modules in order to which processor calls.
In one embodiment, a kind of computer equipment is provided, which can be server, internal junctionComposition can be as shown in Figure 10.The computer equipment include by system bus connect processor, memory, network interface andDatabase.Wherein, the processor of the computer equipment is for providing calculating and control ability.The memory packet of the computer equipmentInclude non-volatile memory medium, built-in storage.The non-volatile memory medium is stored with operating system, computer program and dataLibrary.The built-in storage provides environment for the operation of operating system and computer program in non-volatile memory medium.The calculatingThe database of machine equipment is used to store the data that the server current-limiting method based on digital subscriber mark is related to.The computer is setStandby network interface is used to communicate with external terminal by network connection.To realize when the computer program is executed by processorA kind of server current-limiting method based on digital subscriber mark.
In one embodiment, a kind of computer equipment is provided, including memory, processor and storage are on a memoryAnd the computer program that can be run on a processor, processor perform the steps of when executing computer program
The access request with digital subscriber mark of intelligent terminal transmission is received, the digital subscriber mark is based on loginIn the user account of the intelligent terminal user information and generate;
When current limiting switch is opened, current limliting configuration information is obtained from server buffer, the current limiting switch is for controllingThe flowing of access of server-side processed;
Judge that the digital subscriber identifies whether to match with the current limliting configuration information;
If the digital subscriber mark is matched with the current limliting configuration information, sent and the visit to the intelligent terminalAsk request corresponding data information.
In one embodiment, a kind of computer readable storage medium is provided, computer program is stored thereon with, is calculatedMachine program performs the steps of when being executed by processor
The access request with digital subscriber mark of intelligent terminal transmission is received, the digital subscriber mark is based on loginIn the user account of the intelligent terminal user information and generate;
When current limiting switch is opened, current limliting configuration information is obtained from server buffer, the current limiting switch is for controllingThe flowing of access of server-side processed;
Judge that the digital subscriber identifies whether to match with the current limliting configuration information;
If the digital subscriber mark is matched with the current limliting configuration information, sent and the visit to the intelligent terminalAsk request corresponding data information.
Those of ordinary skill in the art will appreciate that realizing all or part of the process in above-described embodiment method, being can be withRelevant hardware is instructed to complete by computer program, the computer program can be stored in a non-volatile computerIn read/write memory medium, the computer program is when being executed, it may include such as the process of the embodiment of above-mentioned each method.Wherein,To any reference of memory, storage, database or other media used in each embodiment provided herein,Including non-volatile and/or volatile memory.Nonvolatile memory may include read-only memory (ROM), programming ROM(PROM), electrically programmable ROM (EPROM), electrically erasable ROM (EEPROM) or flash memory.Volatile memory may includeRandom access memory (RAM) or external cache.By way of illustration and not limitation, RAM is available in many forms,Such as static state RAM (SRAM), dynamic ram (DRAM), synchronous dram (SDRAM), double data rate sdram (DDRSDRAM), enhancingType SDRAM (ESDRAM), synchronization link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM(RDRAM), direct memory bus dynamic ram (DRDRAM) and memory bus dynamic ram (RDRAM) etc..
It is apparent to those skilled in the art that for convenience of description and succinctly, only with above-mentioned each functionCan unit, module division progress for example, in practical application, can according to need and by above-mentioned function distribution by differentFunctional unit, module are completed, i.e., the internal structure of the system is divided into different functional unit or module, more than completingThe all or part of function of description.
Embodiment described above is merely illustrative of the technical solution of the present invention, rather than its limitations;Although referring to aforementioned realityApplying example, invention is explained in detail, those skilled in the art should understand that: it still can be to aforementioned eachTechnical solution documented by embodiment is modified or equivalent replacement of some of the technical features;And these are modifiedOr replacement, the spirit and scope for technical solution of various embodiments of the present invention that it does not separate the essence of the corresponding technical solution should allIt is included within protection scope of the present invention.