CN108023936A - A kind of distributed interface access control method and system - Google Patents
A kind of distributed interface access control method and system Download PDFInfo
- Publication number
- CN108023936A CN108023936A CN201711089247.5A CN201711089247A CN108023936A CN 108023936 A CN108023936 A CN 108023936A CN 201711089247 A CN201711089247 A CN 201711089247A CN 108023936 A CN108023936 A CN 108023936A
- Authority
- CN
- China
- Prior art keywords
- request
- distributed
- object information
- statistics
- central server
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/1001—Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers
- H04L67/1004—Server selection for load balancing
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/1097—Protocols in which an application is distributed across nodes in the network for distributed storage of data in networks, e.g. transport arrangements for network file system [NFS], storage area networks [SAN] or network attached storage [NAS]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/60—Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources
- H04L67/63—Routing a service request depending on the request content or context
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer And Data Communications (AREA)
Abstract
The invention discloses a kind of distributed interface access control method and system, wherein, this method includes:Distributed Request Processing server cluster receives multiple vendor terminals and sends multiple call requests, processing of joining the team is carried out to multiple call requests, and request is counted correspondingly with call request according to first in first out generation, statistics request is sent to statistics central server according to time order and function;Statistics central server processing current statistic is asked to obtain currently processed number, judge currently processed number whether more than the first preset times, if exceed, refusal execute instruction corresponding with current statistic request is then fed back to Distributed Request Processing server cluster, if not exceeded, execute instruction immediately corresponding with current statistic request is then fed back to Distributed Request Processing server cluster.The Servers-all to Distributed Request Processing server cluster of the present invention carries out unified maintenance, reduces server and delays the probability of machine, so as to improve job stability.
Description
Technical field
The present invention relates to field of communication technology, more particularly to a kind of distributed interface access control method and system.
Background technology
As the vendor terminal that supply chain is docked is more and more, the call request of the vendor terminal received and tune
With frequency, exponentially property increases, and therefore, during using a server to handle all call requests, excessively slow processing speed is
Through that cannot meet the needs of users.
To solve the above-mentioned problems, extend in a horizontal manner, so that there is Distributed Request Processing server cluster.But
It is that existing Distributed Request Processing server cluster can only limit the call number of each server, therefore,
Receive substantial amounts of call request and each server calling limited number of times it is excessive when, Distributed Request Processing server set
Certain server is likely to occur the problem of delaying machine in group, so as to reduce the working stability of Distributed Request Processing server cluster
Property.
The content of the invention
It is an object of the invention to provide a kind of distributed interface access control method and system, to solve existing distribution
Formula asks processing server cluster, is easy to the problem of machine of delaying and low job stability occur.
To solve the above-mentioned problems, the present invention provides a kind of distributed interface access control method, it includes step as follows
Suddenly:
Distributed Request Processing server cluster receives multiple vendor terminals and sends multiple call requests, each supply
Business's terminal-pair answers at least one call request;
Distributed Request Processing server cluster carries out processing of joining the team to multiple call requests, and according to first in first out
Call request is handled, request is counted with generation correspondingly with call request;
Distributed Request Processing server cluster sends statistics request to statistics central server according to time order and function;
Count central server processing current statistic request, to obtain currently processed number, currently processed number it is initial
It is worth for 0;
Whether statistics central server judges currently processed number more than the first preset times, if currently processed number exceedes
First preset times, then feed back refusal execute instruction corresponding with current statistic request to Distributed Request Processing server set
Group, if currently processed number feeds back execute instruction immediately corresponding with current statistic request extremely not less than the first preset times
Distributed Request Processing server cluster.
As a further improvement on the present invention, statistics central server is also stored with a variety of default object informations, each
Default object information corresponds to second preset times;
Central server processing current statistic request is counted, to obtain currently processed number the step of includes:
Statistics central server obtains existing object information according to current statistic acquisition request;
Statistics central server judges whether to preset object information with the first object of existing object information matches;
If presetting object information in the presence of the first object with existing object information matches, object will be preset with first object
The corresponding number of processes of information adds 1 to be used as currently processed number;
Count central server processing current statistic request, the step of to obtain currently processed number after, further include:
Statistics central server determines to preset corresponding second preset times of object information with first object pre- as first
If number.
As a further improvement on the present invention, it is further included:
After being spaced preset time period, statistics central server currently processed time corresponding with default object information to each
Number carries out return-to-zero.
As a further improvement on the present invention, it is further included:
When statistics central server gets number revision instruction input by user, revision information input by user is received,
Revision information includes revision object information and revision number;
Determine that corresponding second target of revision object information presets object information;
Corresponding second preset times of object information are preset according to revision number pair and the second target to revise.
As a further improvement on the present invention, instant execute instruction is fed back to the step of Distributed Request Processing server cluster
After rapid, further include:
Distributed Request Processing server cluster calculates the load factor of each server, Distributed Request Processing server
Cluster includes multiple servers;
The interaction of Distributed Request Processing server cluster is minimum to load factor with the corresponding call request of current statistic request
Server handled.
To solve the above-mentioned problems, present invention also offers a kind of distributed interface access control system, it is included at least
One vendor terminal, Distributed Request Processing server cluster and statistics central server, wherein, Distributed Request Processing clothes
Business device cluster includes:
Receiving module, sends multiple call requests, each vendor terminal is corresponded to for receiving multiple vendor terminals
At least one call request;
Queue processing module, for carrying out processing of joining the team to multiple call requests, and is handled according to first in first out
Call request, request is counted with generation correspondingly with call request;
Sending module, for sending statistics request to statistics central server according to time order and function;
Statistics central server includes:
Current number acquisition module, for handling current statistic request, to obtain currently processed number, currently processed number
Initial value be 0;
Statistical disposition module, for whether judging currently processed number more than the first preset times, if currently processed number
More than the first preset times, then refusal execute instruction corresponding with current statistic request is fed back to Distributed Request Processing server
Cluster, if currently processed number feeds back instant execute instruction corresponding with current statistic request not less than the first preset times
To Distributed Request Processing server cluster.
As a further improvement on the present invention, statistics central server further includes:
Memory module, for storing a variety of default object informations, each default object information corresponds to one second and presets
Number;
Current number acquisition module, including:
Object information acquiring unit, for obtaining existing object information according to current statistic acquisition request;
Object information matching unit, for judging whether that the first object with existing object information matches presets object
Information;
Current number acquiring unit, if for presetting object information in the presence of the first object with existing object information matches,
The corresponding number of processes of object information will be then preset with first object adds 1 to be used as currently processed number;
Statistics central server further includes:
Threshold determination module, for determining to preset corresponding second preset times of object information as first with first object
Preset times.
As a further improvement on the present invention, statistics central server further includes:
Return-to-zero module, after being spaced preset time period, to each current place corresponding with default object information
Manage number and carry out return-to-zero.
As a further improvement on the present invention, statistics central server further includes:
Revision information receiving module, during for getting restrictive condition revision instruction input by user, receives user's input
Revision information, revision information include revision object information and revision number;
Object determining module is revised, for determining that corresponding second target of revision object information presets object information;
Number revises module, second default time corresponding for presetting object information with the second target according to revision number pair
Number is revised.
As a further improvement on the present invention, Distributed Request Processing server cluster further includes:
Load factor computing module, for calculating the load factor of each server, Distributed Request Processing server cluster
Including multiple servers;
Processing module is performed, for interaction and the current statistic corresponding call request of request to the minimum server of load factor
Handled.
Compared with prior art, when Distributed Request Processing server cluster of the invention receives call request, by life
Into corresponding statistics request send to statistics central server carry out statistical disposition, so as to count central server according to
The number of processes of the overall call request of statistical result control Distributed Request Processing server cluster, so as to reach to distribution
The Servers-all of request processing server cluster carries out the effect of unified maintenance, reduces Distributed Request Processing server set
There is the probability for the machine of delaying in server in group, and then improves the job stability of Distributed Request Processing server cluster.
Brief description of the drawings
Fig. 1 is the flow diagram of distributed interface access control method one embodiment of the present invention;
Fig. 2 is the flow diagram of second embodiment of distributed interface access control method of the present invention;
Fig. 3 is the flow diagram of the 3rd embodiment of distributed interface access control method of the present invention;
Fig. 4 is the flow diagram that flow one embodiment is revised in distributed interface access control method of the present invention;
Fig. 5 is the flow diagram of the 4th embodiment of distributed interface access control method of the present invention;
Fig. 6 is the circuit theory schematic diagram of distributed interface access control system one embodiment of the present invention;
Fig. 7 is first implementation of Distributed Request Processing server cluster in distributed interface access control system of the present invention
The high-level schematic functional block diagram of example;
Fig. 8 is the function mould that central server one embodiment is counted in distributed interface access control system of the present invention
Block schematic diagram;
Fig. 9 is the function mould that second embodiment of central server is counted in distributed interface access control system of the present invention
Block schematic diagram;
Figure 10 is the function of current number acquisition module one embodiment in distributed interface access control system of the present invention
Module diagram;
Figure 11 is the function that the 3rd embodiment of central server is counted in distributed interface access control system of the present invention
Module diagram;
Figure 12 is the function that the 4th embodiment of central server is counted in distributed interface access control system of the present invention
Module diagram;
Figure 13 is second reality of Distributed Request Processing server cluster in distributed interface access control system of the present invention
Apply the high-level schematic functional block diagram of example.
Embodiment
In order to make the purpose , technical scheme and advantage of the present invention be clearer, with reference to the accompanying drawings and embodiments, it is right
The present invention is further elaborated.It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, and
It is not used to limit the present invention.
Fig. 1 illustrates one embodiment of distributed interface access control method of the present invention.In the present embodiment, the distribution
Formula interface access control method includes the following steps:
Step S1, Distributed Request Processing server cluster receive multiple vendor terminals and send multiple call requests, often
One vendor terminal corresponds at least one call request.
Specifically, it is assumed that there is vendor terminal A, B and C.Wherein, vendor terminal A have sent call request A1.Supply
Business's terminal B have sent call request B1 and B2.Vendor terminal C have sent call request C1.
Step S2, Distributed Request Processing server cluster carry out processing of joining the team to multiple call requests, and according to advanced
First go out principle processing call request, request is counted with generation correspondingly with call request.
Specifically, it is assumed that the order for receiving call request is A1, B1, C1, B2, then the queue produced is A1, B1, C1,
B2.Meanwhile the corresponding statistics request of generation is T1, T2, T3, T4.
Step S3, Distributed Request Processing server cluster send statistics request to statistics center service according to time order and function
Device.
Step S4, statistics central server processing current statistic request, to obtain currently processed number, currently processed number
Initial value be 0.
Step S5, whether statistics central server judges currently processed number more than the first preset times, if currently processed
Number then performs step S6 more than the first preset times.If currently processed number performs step not less than the first preset times
S7。
Step S6, statistics central server feedback refusal execute instruction corresponding with current statistic request to distributed request
Processing server cluster.
Step S7, statistics central server feedback execute instruction immediately corresponding with current statistic request to distributed request
Processing server cluster.
Specifically, for technical scheme detailed further, it is assumed that the first preset times are 3.Handle successively
Statistics request T1, T2, T3, T4.
When receive statistics request T1 when, currently processed number be 1, due to currently processed 1 < 3 of number, so, feedback with
Current statistic asks corresponding execute instruction immediately to Distributed Request Processing server cluster.
When receive statistics request T2 when, currently processed number be 2, due to currently processed 2 < 3 of number, so, feedback with
Current statistic asks corresponding execute instruction immediately to Distributed Request Processing server cluster.
When receive statistics request T3 when, currently processed number be 3, due to currently processed number 3=3, so, feedback with
Current statistic asks corresponding execute instruction immediately to Distributed Request Processing server cluster.
When receive statistics request T4 when, currently processed number be 4, due to currently processed 4 > 3 of number, so, feedback with
The corresponding execute instruction of refusing of current statistic request is to Distributed Request Processing server cluster.
When the Distributed Request Processing server cluster of the present embodiment receives call request, by the corresponding of generation
Statistics request sends to statistics central server and carries out statistical disposition, to count central server according to statistical result control point
The number of processes of the overall call request of cloth request processing server cluster, so as to reach to Distributed Request Processing server
The Servers-all of cluster carries out the effect of unified maintenance, reduces server in Distributed Request Processing server cluster and occurs
Delay the probability of machine, and then improve the job stability of Distributed Request Processing server cluster.
The distributed interface access control method of the present invention is applied to using for distributed interface access control system
Cheng Zhong, different applications need to set different limited number of times, therefore, on the basis of above-described embodiment, other implementations
In example, statistics central server is also stored with a variety of default object informations, each default object information correspond to one it is second pre-
If number.It should be noted that the default object information in the present embodiment can be supplier information or interface is believed
Breath, i.e. different limited number of times can be both set according to different suppliers, can also be set according to different interfaces different
Limited number of times.
Specifically, include referring to Fig. 2, step S4:
Step S40, statistics central server obtain existing object information according to current statistic acquisition request.
Specifically, it is assumed that there is vendor terminal A, B and C.Wherein, vendor terminal A have sent call request A1, application
Object is a1.Vendor terminal B have sent call request B1 and B2, wherein, the application of B1 is a1, and the application of B2 is
a2.Vendor terminal C have sent call request Cl, and it is a1 to remove application.
Step S41, statistics central server judge whether to preset pair with the first object of existing object information matches
Image information.If presetting object information in the presence of the first object with existing object information matches, step S42 is performed.
Step S42, the corresponding number of processes of object information will be preset with first object and adds 1 to be used as currently processed number.
Specifically, in order to which technical scheme detailed further, successively processing count request T1, T2, T3, T4.
When receiving statistics request T1, it is a1 that first object, which presets object information, and currently processed number 0 plus 1 are changed into 1.
When receiving statistics request T2, it is a1 that first object, which presets object information, and currently processed number 1 plus 1 are changed into 2.
When receiving statistics request T3, first object presets the non-a1 of object information, and currently processed number is still 2.
When receiving statistics request T4, it is a1 that first object, which presets object information, and currently processed number 2 adds 1 to be changed into 3.
Further, after step S4, further include:
Step S10, statistics central server determine that presetting corresponding second preset times of object information with first object makees
For the first preset times.Step S5 is performed after step S10.
Specifically, it is assumed that the second preset times are 2, then the second preset times replace the first preset times, then first is default
Number is 2.
The present embodiment is directed to different applications, sets different limited number of times, i.e. the second preset times, has reached not
The purpose of the different control of same application, so as to improve using experience degree.In addition, in Distributed Request Processing server
In the case that total number of processes of cluster is certain, different applications sets different limited number of times, avoids when identical
Between section, largely handle the call request of some application, and have ignored the call request of other application object phenomenon hair
It is raw, the equilibrium degree of the call request processing of all applications is improved, so as to further improve user experience.
The distributed interface access control method of the present invention is applied to using for distributed interface access control system
, it is necessary to cause the access of distributed interface more flexibly and efficient in journey, therefore, on the basis of above-described embodiment, other realities
Apply in example, referring to Fig. 3, further included before step S40:
Step S20, statistics central server record timing statistics initial time is T1.
After step S6 and step S7, further include:
Step S21, statistics central server record current time is T2.
Step S22, statistics central server judge to be spaced whether duration T=T2-T1 exceedes preset time period.If during interval
Long T exceedes preset time period, then performs step S23.If being spaced duration T not less than preset time period, step S40 is performed.
Step S23, statistics central server return each currently processed number corresponding with default object information
Zero processing.Perform step S20.
The present embodiment carries out return-to-zero by being spaced preset time period, therefore, after reaching limited number of times, distributed interface
Access control system can carry out recovery processing automatically, so as to further improve user experience.In addition, distributed interface
Access control system temporally carries out limitation processing, causes the access of distributed interface more reasonable, flexible and efficient.
The distributed interface access control method of the present invention is applied to using for distributed interface access control system
Cheng Zhong, different user demand of different periods, therefore, it is necessary to meet the needs of user increasingly changes, therefore, in above-mentioned reality
On the basis of applying example, in other embodiment, referring to Fig. 4, which further includes:
Step S30, when statistics central server gets number revision instruction input by user, receives input by user repair
Information is ordered, revision information includes revision object information and revision number.
Step S31, statistics central server determine that corresponding second target of revision object information presets object information.
Specifically, statistics central server judges whether and the revision matched default object information of object information.
Step S32, statistics central server preset object information corresponding second according to revision number pair with the second target
Preset times are revised.
The present embodiment in real time can be revised the second preset times according to the demand of user, to meet that user becomes in real time
The demand of change, so that the expansion performance of distributed interface access control system of the present invention is improved, and user experience degree.
The distributed interface access control method of the present invention is applied to using for distributed interface access control system
, it is necessary to avoid the load factor of individual server in Distributed Request Processing server cluster excessive in journey, therefore, above-described embodiment
On the basis of, in other embodiment, referring to Fig. 5, after step S7, further include:
Step S50, Distributed Request Processing server cluster calculate the load factor of each server, at distributed request
Reason server cluster includes multiple servers.
Step S51, Distributed Request Processing server cluster interaction with the current statistic corresponding call request of request to bear
The minimum server of load rate is handled.
When the Distributed Request Processing server cluster of the present embodiment receives instant execute instruction, each service is calculated
The load factor of device, and interaction is handled with the current statistic corresponding call request of request to the minimum server of load factor, is kept away
Individual server is exempted from the case where load factor is excessive, processing call request has been continued to, so as to further avoid server
Delay the possibility of machine, so as to further improve the job stability of distributed interface access control system.
Fig. 6 illustrates one embodiment of distributed interface access control system of the present invention.In the present embodiment, the distribution
Formula interface access control system includes at least one vendor terminal 1, Distributed Request Processing server cluster 2 and statistics center
Server 3, Distributed Request Processing server cluster 2 include multiple servers 20.
Wherein, receiving module 21, queue processing module 22 are included referring to Fig. 7, Distributed Request Processing server cluster 2
With sending module 23.
Receiving module 21, sends multiple call requests, each vendor terminal 1 for receiving multiple vendor terminals 1
Corresponding at least one call request;Queue processing module 22, for carrying out processing of joining the team to multiple call requests, and according to elder generation
Into principle processing call request is first gone out, request is counted with generation correspondingly with call request;Sending module 23, for according to
Time order and function sends statistics request to statistics central server 3.
Further, current number acquisition module 30 and statistical disposition module are included referring to Fig. 8, statistics central server 3
31。
Current number acquisition module 30, it is currently processed secondary to obtain currently processed number for handling current statistic request
Several initial values is 0;Statistical disposition module 31, for whether judging currently processed number more than the first preset times, if currently
Number of processes is then fed back at refusal execute instruction to distributed request corresponding with current statistic request more than the first preset times
Server cluster 2 is managed, if currently processed number is fed back corresponding with current statistic request instant not less than the first preset times
Execute instruction is to Distributed Request Processing server cluster 2.
On the basis of above-described embodiment, in other embodiment, referring to Fig. 9, statistics central server 3 further includes storage mould
Block 40 and threshold determination module 41.
Memory module 40, for storing a variety of default object informations, each default object information correspond to one it is second pre-
If number.
Further, object information acquiring unit 301, object information are included referring to Figure 10, current number acquisition module 30
Matching unit 302 and current number acquiring unit 303.
Object information acquiring unit 301, for obtaining existing object information according to current statistic acquisition request;Object information
Matching unit 302, for judging whether that the first object with existing object information matches presets object information;Current number
Acquiring unit 303, if for presetting object information in the presence of the first object with existing object information matches, will be with first object
The default corresponding number of processes of object information adds 1 to be used as currently processed number.
Threshold determination module 41, for determining that presetting corresponding second preset times of object information with first object is used as the
One preset times.
On the basis of above-described embodiment, in other embodiment, referring to Figure 11, statistics central server 3 further includes zero
Processing module 50.
Return-to-zero module 50, it is corresponding with default object information current to each after being spaced preset time period
Number of processes carries out return-to-zero.
On the basis of above-described embodiment, in other embodiment, referring to Figure 12, statistics central server 3 further includes revision
Information receiving module 60, revision object determining module 61 and number revision module 62.
Revision information receiving module 60, during for getting restrictive condition revision instruction input by user, it is defeated to receive user
The revision information entered, revision information include revision object information and revision number;Object determining module 61 is revised, for determining to repair
Order corresponding second target of object information and preset object information;Number revises module 62, for according to revision number pair and second
Target is preset corresponding second preset times of object information and is revised.
On the basis of above-described embodiment, in other embodiment, referring to Figure 13, Distributed Request Processing server cluster 2
Further include load factor computing module 70 and perform processing module 71.
Load factor computing module 70, for calculating the load factor of each server, Distributed Request Processing server set
Group 2 includes multiple servers;Processing module 71 is performed, for interaction and the current statistic corresponding call request of request to load factor
Minimum server is handled.
On each module in above-mentioned five embodiments distributed interface access control system realize technical solution other are thin
Save, reference can be made to the description in the distributed interface access control method in above-described embodiment, details are not described herein again.
It should be noted that each embodiment in this specification is described by the way of progressive, each embodiment weight
Point explanation is all difference with other embodiment, between each embodiment identical similar part mutually referring to.
For device class embodiment, since it is substantially similar to embodiment of the method, so description is fairly simple, related part ginseng
See the part explanation of embodiment of the method.
The embodiment of invention is described in detail above, but it is only used as example, and the present invention is not intended to limit
With specific embodiments described above.For a person skilled in the art, any equivalent modifications carried out to the invention
Or substitute also all among scope of the invention, therefore, the equalization made in the case where not departing from the spirit and principles in the present invention scope
Conversion and modification, improvement etc., all should be contained within the scope of the invention.
Claims (10)
1. a kind of distributed interface access control method, it is characterised in that it includes the following steps:
Distributed Request Processing server cluster receives multiple vendor terminals and sends multiple call requests, each supplier is whole
The corresponding at least one call request in end;
The Distributed Request Processing server cluster carries out processing of joining the team to the multiple call request, and according to first in first out
The principle processing call request, request is counted with generation correspondingly with the call request;
The Distributed Request Processing server cluster sends the statistics request to statistics central server according to time order and function;
The statistics central server processing current statistic request, to obtain currently processed number, the currently processed number
Initial value is 0;
Whether the statistics central server judges the currently processed number more than the first preset times, if described currently processed
For number more than the first preset times, then feeding back refusal execute instruction corresponding with current statistic request to the distribution please
Processing server cluster is sought, if the currently processed number please with the current statistic not less than the first preset times, feedback
Corresponding execute instruction immediately is sought to the Distributed Request Processing server cluster.
2. distributed interface access control method according to claim 1, it is characterised in that the statistics central server
A variety of default object informations are also stored with, each described default object information corresponds to second preset times;
The statistics central server processing current statistic request, to obtain currently processed number the step of, include:
The statistics central server obtains existing object information according to the current statistic acquisition request;
The statistics central server judges whether to preset object letter with the first object of the existing object information matches
Breath;
If presetting object information in the presence of the first object with the existing object information matches, object will be preset with first object
The corresponding number of processes of information adds 1 to be used as the currently processed number;
The statistics central server processing current statistic request, the step of to obtain currently processed number after, further include:
The statistics central server determines to preset corresponding second preset times of object information as institute with the first object
State the first preset times.
3. distributed interface access control method according to claim 2, it is characterised in that it is further included:
After being spaced preset time period, the statistics central server is to each current place corresponding with the default object information
Manage number and carry out return-to-zero.
4. distributed interface access control method according to claim 2, it is characterised in that it is further included:
When the statistics central server gets number revision instruction input by user, revision information input by user is received,
The revision information includes revision object information and revision number;
Determine that corresponding second target of the revision object information presets object information;
Corresponding second preset times of object information are preset according to revision number pair and second target to revise.
5. distributed interface access control method according to claim 1, it is characterised in that the feedback performs immediately to be referred to
After order to the step of Distributed Request Processing server cluster, further include:
The Distributed Request Processing server cluster calculates the load factor of each server, the Distributed Request Processing clothes
Business device cluster includes multiple servers;
The Distributed Request Processing server cluster interaction and the current statistic corresponding call request of request to load factor
Minimum server is handled.
6. a kind of distributed interface access control system, it is characterised in that it includes at least one vendor terminal, distribution is asked
Processing server cluster and statistics central server are asked, wherein, the Distributed Request Processing server cluster includes:
Receiving module, sends multiple call requests, each vendor terminal corresponds at least for receiving multiple vendor terminals
One call request;
Queue processing module, for carrying out processing of joining the team to the multiple call request, and is handled according to first in first out
The call request, request is counted with generation correspondingly with the call request;
Sending module, for sending the statistics request to the statistics central server according to time order and function;
The statistics central server includes:
Current number acquisition module, for handling current statistic request, to obtain currently processed number, the currently processed number
Initial value be 0;
Statistical disposition module, for whether judging the currently processed number more than the first preset times, if described currently processed
For number more than the first preset times, then feeding back refusal execute instruction corresponding with current statistic request to the distribution please
Processing server cluster is sought, if the currently processed number please with the current statistic not less than the first preset times, feedback
Corresponding execute instruction immediately is sought to the Distributed Request Processing server cluster.
7. distributed interface access control system according to claim 6, it is characterised in that the statistics central server
Further include:
Memory module, for storing a variety of default object informations, each described default object information corresponds to one second and presets
Number;
The current number acquisition module, including:
Object information acquiring unit, for obtaining existing object information according to the current statistic acquisition request;
Object information matching unit, for judging whether that the first object with the existing object information matches presets object
Information;
Current number acquiring unit, if for presetting object information in the presence of the first object with the existing object information matches,
The corresponding number of processes of object information will be then preset with first object adds 1 to be used as the currently processed number;
The statistics central server further includes:
Threshold determination module, described in determining to preset the conduct of object information corresponding second preset times with the first object
First preset times.
8. distributed interface access control system according to claim 7, it is characterised in that the statistics central server
Further include:
Return-to-zero module, after being spaced preset time period, to each current place corresponding with the default object information
Manage number and carry out return-to-zero.
9. distributed interface access control system according to claim 7, it is characterised in that the statistics central server
Further include:
Revision information receiving module, during for getting restrictive condition revision instruction input by user, receives input by user repaiies
Information is ordered, the revision information includes revision object information and revision number;
Object determining module is revised, for determining that corresponding second target of the revision object information presets object information;
Number revises module, corresponding second pre- for presetting object information according to revision number pair and second target
If number is revised.
10. distributed interface access control system according to claim 6, it is characterised in that at the distributed request
Reason server cluster further includes:
Load factor computing module, for calculating the load factor of each server, the Distributed Request Processing server cluster
Including multiple servers;
Processing module is performed, for interaction and the current statistic corresponding call request of request to the minimum server of load factor
Handled.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711089247.5A CN108023936B (en) | 2017-11-07 | 2017-11-07 | Distributed interface access control method and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711089247.5A CN108023936B (en) | 2017-11-07 | 2017-11-07 | Distributed interface access control method and system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108023936A true CN108023936A (en) | 2018-05-11 |
CN108023936B CN108023936B (en) | 2021-02-05 |
Family
ID=62079734
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711089247.5A Active CN108023936B (en) | 2017-11-07 | 2017-11-07 | Distributed interface access control method and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108023936B (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108769162A (en) * | 2018-05-16 | 2018-11-06 | 上海携程商务有限公司 | Distributed message equalization processing method, device, electronic equipment, storage medium |
CN110609855A (en) * | 2018-05-29 | 2019-12-24 | 北京三快在线科技有限公司 | Query processing and query rate threshold determination method and distributed query system |
CN110910233A (en) * | 2019-11-27 | 2020-03-24 | 王向远 | Internet financial platform credit risk monitoring method and device and electronic equipment |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2007017987A1 (en) * | 2005-08-08 | 2007-02-15 | Megachips Corporation | Method of viewing image of pan and tilt function-equipped network camera from portable terminal, and pan and tilt function-equipped network camera |
CN102831014A (en) * | 2012-07-30 | 2012-12-19 | 华中科技大学 | Method for prompting IO (input/output) parallelism and reducing small IO delay by utilizing multiple request queues |
CN102929693A (en) * | 2012-09-18 | 2013-02-13 | 杭州华为数字技术有限公司 | Performance evaluation method and device for servers of whole equipment cabinet |
US8949449B2 (en) * | 2008-10-15 | 2015-02-03 | Aster Risk Management Llc | Methods and systems for controlling fragment load on shared links |
CN105025080A (en) * | 2015-06-02 | 2015-11-04 | 深圳市创梦天地科技有限公司 | Overload protection method for distributed system and servers |
CN106209682A (en) * | 2016-07-08 | 2016-12-07 | 北京百度网讯科技有限公司 | Business scheduling method, device and system |
CN106445709A (en) * | 2016-10-24 | 2017-02-22 | 深圳有麦科技有限公司 | Method and system for invoking servers in distributed manner |
CN107181788A (en) * | 2017-03-31 | 2017-09-19 | 北京奇艺世纪科技有限公司 | A kind of task processing method and device |
-
2017
- 2017-11-07 CN CN201711089247.5A patent/CN108023936B/en active Active
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2007017987A1 (en) * | 2005-08-08 | 2007-02-15 | Megachips Corporation | Method of viewing image of pan and tilt function-equipped network camera from portable terminal, and pan and tilt function-equipped network camera |
US8949449B2 (en) * | 2008-10-15 | 2015-02-03 | Aster Risk Management Llc | Methods and systems for controlling fragment load on shared links |
CN102831014A (en) * | 2012-07-30 | 2012-12-19 | 华中科技大学 | Method for prompting IO (input/output) parallelism and reducing small IO delay by utilizing multiple request queues |
CN102929693A (en) * | 2012-09-18 | 2013-02-13 | 杭州华为数字技术有限公司 | Performance evaluation method and device for servers of whole equipment cabinet |
CN105025080A (en) * | 2015-06-02 | 2015-11-04 | 深圳市创梦天地科技有限公司 | Overload protection method for distributed system and servers |
CN106209682A (en) * | 2016-07-08 | 2016-12-07 | 北京百度网讯科技有限公司 | Business scheduling method, device and system |
CN106445709A (en) * | 2016-10-24 | 2017-02-22 | 深圳有麦科技有限公司 | Method and system for invoking servers in distributed manner |
CN107181788A (en) * | 2017-03-31 | 2017-09-19 | 北京奇艺世纪科技有限公司 | A kind of task processing method and device |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108769162A (en) * | 2018-05-16 | 2018-11-06 | 上海携程商务有限公司 | Distributed message equalization processing method, device, electronic equipment, storage medium |
CN108769162B (en) * | 2018-05-16 | 2021-01-12 | 上海携程商务有限公司 | Distributed message equalization processing method and device, electronic equipment and storage medium |
CN110609855A (en) * | 2018-05-29 | 2019-12-24 | 北京三快在线科技有限公司 | Query processing and query rate threshold determination method and distributed query system |
CN110609855B (en) * | 2018-05-29 | 2021-06-04 | 北京三快在线科技有限公司 | Query processing and query rate threshold determination method and distributed query system |
CN110910233A (en) * | 2019-11-27 | 2020-03-24 | 王向远 | Internet financial platform credit risk monitoring method and device and electronic equipment |
CN110910233B (en) * | 2019-11-27 | 2022-07-29 | 华炫鼎盛(北京)科技有限公司 | Internet financial platform credit risk monitoring method and device and electronic equipment |
Also Published As
Publication number | Publication date |
---|---|
CN108023936B (en) | 2021-02-05 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11876856B2 (en) | Method for computational-power sharing and related device | |
CN111061560B (en) | Cloud rendering resource scheduling method and device, electronic equipment and storage medium | |
CN109669758A (en) | Concocting method, device, equipment and the storage medium of server resource | |
CN108023936A (en) | A kind of distributed interface access control method and system | |
CN107612844B (en) | Method for relieving server pulse pressure, server and client | |
CN108540568B (en) | Computing capacity sharing method and intelligent equipment | |
CN108650667A (en) | Terminal scheduling method and apparatus | |
CN102523422B (en) | Multi-party communication control system, multi-party communication system and multi-party communication processing method | |
CN103731448A (en) | Method and system for compressing picture | |
CN110166524A (en) | Switching method, device, equipment and the storage medium of data center | |
CN111107229B (en) | Outbound prediction method and device for intelligent customer service | |
CN110149377A (en) | A kind of video service node resource allocation methods, system, device and storage medium | |
CN104796561A (en) | Agent distribution method, CTI (Computer Telephony Integration) equipment, terminal and agent distribution system | |
CN113342849B (en) | Data auditing method and device, electronic equipment and storage medium | |
CN107295054A (en) | The management method and device of cloud conferencing resource | |
US8725868B2 (en) | Interactive service management | |
CN113535398B (en) | Resource allocation adjustment method, device, electronic equipment and readable storage medium | |
CN113328906B (en) | Flow real-time monitoring method and device, storage medium and electronic equipment | |
CN108259605B (en) | Data calling system and method based on multiple data centers | |
CN109413117B (en) | Distributed data calculation method, device, server and computer storage medium | |
CN108540950B (en) | Flow management method and device of double-card terminal and mobile terminal | |
CN108200185B (en) | Method and device for realizing load balance | |
CN112380040B (en) | Message processing method and device, electronic equipment and storage medium | |
CN108307206A (en) | A kind of distribution method and device of live streaming encoding tasks | |
CN112153138A (en) | Traffic scheduling method and device, electronic equipment and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |