CN108023936B - Distributed interface access control method and system - Google Patents

Distributed interface access control method and system Download PDF

Info

Publication number
CN108023936B
CN108023936B CN201711089247.5A CN201711089247A CN108023936B CN 108023936 B CN108023936 B CN 108023936B CN 201711089247 A CN201711089247 A CN 201711089247A CN 108023936 B CN108023936 B CN 108023936B
Authority
CN
China
Prior art keywords
current
processing
statistical
request
object information
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.)
Active
Application number
CN201711089247.5A
Other languages
Chinese (zh)
Other versions
CN108023936A (en
Inventor
许毅文
江祖库
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Tianxia Fangcang Technology Co ltd
Original Assignee
Shenzhen Tianxia Fangcang Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Tianxia Fangcang Technology Co ltd filed Critical Shenzhen Tianxia Fangcang Technology Co ltd
Priority to CN201711089247.5A priority Critical patent/CN108023936B/en
Publication of CN108023936A publication Critical patent/CN108023936A/en
Application granted granted Critical
Publication of CN108023936B publication Critical patent/CN108023936B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1001Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers
    • H04L67/1004Server selection for load balancing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1097Protocols 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]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/60Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources
    • H04L67/63Routing 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 distributed interface access control method and a system, wherein the method comprises the following steps: the distributed request processing server cluster receives a plurality of calling requests sent by a plurality of supplier terminals, carries out enqueue processing on the calling requests, generates statistical requests corresponding to the calling requests one by one according to a first-in first-out principle, and sends the statistical requests to the statistical center server according to time sequence; the statistical center server processes the current statistical request to obtain the current processing times, judges whether the current processing times exceeds a first preset time, if so, feeds back an execution refusing instruction corresponding to the current statistical request to the distributed request processing server cluster, and if not, feeds back an instant execution instruction corresponding to the current statistical request to the distributed request processing server cluster. The invention uniformly maintains all the servers of the distributed request processing server cluster, reduces the probability of the downtime of the servers, and thereby improves the working stability.

Description

Distributed interface access control method and system
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a distributed interface access control method and system.
Background
As the number of supplier terminals connected to the supply chain increases, the received calling requests and calling frequency of the supplier terminals increase exponentially, so that when one server is used for processing all calling requests, the processing rate is too slow to meet the requirements of users.
To solve the above problem, it is expanded in a horizontal manner, so that a cluster of distributed request processing servers occurs. However, the existing distributed request processing server cluster can only limit the number of times of calling of each server, so that when a large number of call requests are received and the number of times of call limitation of each server is too large, some servers in the distributed request processing server cluster may be down, thereby reducing the working stability of the distributed request processing server cluster.
Disclosure of Invention
The invention aims to provide a distributed interface access control method and a distributed interface access control system, which are used for solving the problems that the existing distributed request processing server cluster is easy to be down and low in working stability.
In order to solve the above problem, the present invention provides a distributed interface access control method, which includes the following steps:
the distributed request processing server cluster receives a plurality of calling requests sent by a plurality of supplier terminals, and each supplier terminal corresponds to at least one calling request;
the distributed request processing server cluster performs enqueuing processing on a plurality of call requests and processes the call requests according to a first-in first-out principle so as to generate statistical requests corresponding to the call requests one by one;
the distributed request processing server cluster sends statistical requests to the statistical center server according to time sequence;
the statistical center server processes the current statistical request to obtain the current processing times, wherein the initial value of the current processing times is 0;
the statistical center server judges whether the current processing times exceed a first preset time, if the current processing times exceed the first preset time, an execution refusing instruction corresponding to the current statistical request is fed back to the distributed request processing server cluster, and if the current processing times do not exceed the first preset time, an instant execution instruction corresponding to the current statistical request is fed back to the distributed request processing server cluster.
As a further improvement of the present invention, the statistics center server further stores a plurality of preset object information, each of which corresponds to a second preset number of times;
the step of processing the current statistical request by the statistical center server to obtain the current processing times comprises the following steps:
the statistical center server obtains current object information according to the current statistical request;
the statistical center server judges whether first target preset object information matched with the current object information exists or not;
if first target preset object information matched with the current object information exists, adding 1 to the processing times corresponding to the first target preset object information to serve as the current processing times;
after the step of processing the current statistical request by the statistical center server to obtain the current processing times, the method further comprises the following steps:
and the statistical center server determines a second preset frequency corresponding to the first target preset object information as a first preset frequency.
As a further improvement of the present invention, it further comprises:
and after a preset time period, the statistical center server performs zero-returning processing on each current processing frequency corresponding to the preset object information.
As a further improvement of the present invention, it further comprises:
when the statistics center server acquires a number revision instruction input by a user, receiving revision information input by the user, wherein the revision information comprises revision object information and revision number;
determining second target preset object information corresponding to the revision object information;
revising a second preset number of times corresponding to the second target preset object information according to the revising number of times.
As a further improvement of the present invention, after the step of feeding back the instant execution instruction to the distributed request processing server cluster, the method further includes:
the distributed request processing server cluster calculates the load rate of each server, and comprises a plurality of servers;
and the distributed request processing server cluster interacts with the call request corresponding to the current statistical request to the server with the lowest load rate for processing.
In order to solve the above problem, the present invention further provides a distributed interface access control system, which includes at least one provider terminal, a distributed request processing server cluster and a statistics center server, wherein the distributed request processing server cluster includes:
the system comprises a receiving module, a calling module and a calling module, wherein the receiving module is used for receiving a plurality of calling requests sent by a plurality of supplier terminals, and each supplier terminal corresponds to at least one calling request;
the queuing processing module is used for carrying out queuing processing on the plurality of call requests and processing the call requests according to a first-in first-out principle so as to generate statistical requests corresponding to the call requests one to one;
the sending module is used for sending the statistical request to the statistical center server according to time sequence;
the statistics center server includes:
the current time obtaining module is used for processing the current statistical request to obtain the current processing time, and the initial value of the current processing time is 0;
and the statistical processing module is used for judging whether the current processing times exceed a first preset time, feeding back an execution refusing instruction corresponding to the current statistical request to the distributed request processing server cluster if the current processing times exceed the first preset time, and feeding back an instant execution instruction corresponding to the current statistical request to the distributed request processing server cluster if the current processing times do not exceed the first preset time.
As a further improvement of the present invention, the statistics center server further comprises:
the storage module is used for storing a plurality of kinds of preset object information, and each kind of preset object information corresponds to a second preset number of times;
the current times obtaining module comprises:
the object information acquisition unit is used for acquiring current object information according to the current statistical request;
the object information matching unit is used for judging whether first target preset object information matched with the current object information exists or not;
a current time obtaining unit, configured to add 1 to a processing time corresponding to first target preset object information as a current processing time if there is first target preset object information that matches the current object information;
the statistical center server further comprises:
and the threshold value determining module is used for determining a second preset frequency corresponding to the first target preset object information as a first preset frequency.
As a further improvement of the present invention, the statistics center server further comprises:
and the zeroing processing module is used for carrying out zeroing processing on each current processing frequency corresponding to the preset object information after a preset time period is separated.
As a further improvement of the present invention, the statistics center server further comprises:
the revision information receiving module is used for receiving revision information input by a user when a restriction condition revision instruction input by the user is acquired, and the revision information comprises revision object information and revision times;
the revision object determining module is used for determining second target preset object information corresponding to the revision object information;
and the number revising module is used for revising the second preset number corresponding to the second target preset object information according to the revising number.
As a further improvement of the present invention, the distributed request processing server cluster further comprises:
the load rate calculation module is used for calculating the load rate of each server, and the distributed request processing server cluster comprises a plurality of servers;
and the execution processing module is used for interacting the call request corresponding to the current statistical request to the server with the lowest load rate for processing.
Compared with the prior art, the distributed request processing server cluster sends the generated statistical request corresponding to the generated statistical request to the statistical center server for statistical processing when receiving the call request, so that the statistical center server controls the processing times of the whole call request of the distributed request processing server cluster according to the statistical result, the effect of uniformly maintaining all the servers of the distributed request processing server cluster is achieved, the probability of downtime of the servers in the distributed request processing server cluster is reduced, and the working stability of the distributed request processing server cluster is further improved.
Drawings
FIG. 1 is a schematic flow chart of a distributed interface access control method according to a first embodiment of the present invention;
FIG. 2 is a flowchart illustrating a distributed interface access control method according to a second embodiment of the present invention;
FIG. 3 is a flowchart illustrating a distributed interface access control method according to a third embodiment of the present invention;
FIG. 4 is a schematic flow chart diagram illustrating one embodiment of a revision flow in the distributed interface access control method of the present invention;
FIG. 5 is a flowchart illustrating a distributed interface access control method according to a fourth embodiment of the present invention;
FIG. 6 is a block diagram of a distributed interface access control system according to an embodiment of the present invention;
FIG. 7 is a functional block diagram of a first embodiment of a cluster of distributed request processing servers in the distributed interface access control system according to the present invention;
FIG. 8 is a functional block diagram of a first embodiment of a statistics center server in the distributed interface access control system of the present invention;
FIG. 9 is a functional block diagram of a second embodiment of a statistics center server in the distributed interface access control system of the present invention;
FIG. 10 is a functional block diagram of an embodiment of a current times obtaining module in the distributed interface access control system according to the present invention;
FIG. 11 is a functional block diagram of a statistical center server in a distributed interface access control system according to a third embodiment of the present invention;
FIG. 12 is a functional block diagram of a statistical center server in a distributed interface access control system according to a fourth embodiment of the present invention;
fig. 13 is a functional block diagram of a distributed request processing server cluster in a distributed interface access control system according to a second embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
Fig. 1 illustrates an embodiment of a distributed interface access control method of the present invention. In this embodiment, the distributed interface access control method includes the following steps:
step S1, the distributed request processing server cluster receives a plurality of invocation requests sent by a plurality of provider terminals, where each provider terminal corresponds to at least one invocation request.
Specifically, assume that there are provider terminals A, B and C. Where the provider terminal a sends a call request a 1. The provider terminal B sends invocation requests B1 and B2. The provider terminal C sends a call request C1.
Step S2, the distributed request processing server cluster enqueues the plurality of call requests and processes the call requests according to the first-in first-out principle to generate statistical requests corresponding to the call requests one to one.
Specifically, assuming that the order of receiving call requests is a1, B1, C1, B2, the resulting queues are a1, B1, C1, B2. Meanwhile, the corresponding statistical requests are generated as T1, T2, T3, T4.
And step S3, the distributed request processing server cluster sends the statistical request to the statistical center server according to time sequence.
In step S4, the statistics center server processes the current statistics request to obtain the current processing times, where an initial value of the current processing times is 0.
In step S5, the statistics center server determines whether the current processing frequency exceeds a first preset frequency, and if the current processing frequency exceeds the first preset frequency, step S6 is executed. If the current processing time does not exceed the first preset time, step S7 is executed.
Step S6, the statistics center server feeds back a rejected execution instruction corresponding to the current statistics request to the distributed request processing server cluster.
Step S7, the statistics center server feeds back an instant execution instruction corresponding to the current statistics request to the distributed request processing server cluster.
Specifically, for explaining the technical solution of the present invention in more detail, it is assumed that the first preset number of times is 3. And processing the statistical requests T1, T2, T3 and T4 in sequence.
When the statistical request T1 is received, the current processing frequency is 1, and the current processing frequency 1 is less than 3, so that the instant execution instruction corresponding to the current statistical request is fed back to the distributed request processing server cluster.
When the statistical request T2 is received, the current processing frequency is 2, and since the current processing frequency is 2 < 3, the instant execution instruction corresponding to the current statistical request is fed back to the distributed request processing server cluster.
When the statistical request T3 is received, the current processing time is 3, and since the current processing time 3 is 3, the immediate execution instruction corresponding to the current statistical request is fed back to the distributed request processing server cluster.
When the statistical request T4 is received, the current processing time is 4, and since the current processing time 4 is greater than 3, the execution rejection instruction corresponding to the current statistical request is fed back to the distributed request processing server cluster.
When the distributed request processing server cluster receives the call request, the generated statistical request corresponding to the call request is sent to the statistical center server for statistical processing, so that the statistical center server controls the processing times of the whole call request of the distributed request processing server cluster according to the statistical result, the effect of uniformly maintaining all the servers of the distributed request processing server cluster is achieved, the probability of downtime of the servers in the distributed request processing server cluster is reduced, and the working stability of the distributed request processing server cluster is improved.
When the distributed interface access control method of the present invention is applied to the use process of the distributed interface access control system, different application objects need to set different limiting times, so on the basis of the above embodiment, in other embodiments, the statistical center server further stores a plurality of preset object information, and each preset object information corresponds to a second preset time. It should be noted that the preset object information in this embodiment may be provider information or interface information, that is, different limiting times may be set according to different providers, or different limiting times may be set according to different interfaces.
Specifically, referring to fig. 2, step S4 includes:
and step S40, the statistical center server obtains the current object information according to the current statistical request.
Specifically, assume that there are provider terminals A, B and C. The provider terminal a sends a call request a1, and the application object is a 1. The provider terminal B sends call requests B1 and B2, where the application object of B1 is a1 and the application object of B2 is a 2. The provider terminal C sends a call request Cl to apply the object a 1.
In step S41, the statistics center server determines whether there is first target preset object information matching the current object information. If there is the first target preset object information matching the current object information, step S42 is executed.
In step S42, 1 is added to the number of times of processing corresponding to the first target preset object information as the current number of times of processing.
Specifically, to describe the technical solution of the present invention in more detail, the statistical requests T1, T2, T3, and T4 are processed in sequence.
When the statistical request T1 is received, the first target preset object information is a1, and the current processing number of times 0 plus 1 becomes 1.
When the statistical request T2 is received, the first target preset object information is a1, and the current processing number of times 1 plus 1 becomes 2.
When the statistical request T3 is received, the first target preset object information is not a1, and the current number of times of processing is still 2.
When the statistical request T4 is received, the first target preset object information is a1, and the current processing number 2 plus 1 becomes 3.
Further, after step S4, the method further includes:
in step S10, the statistical center server determines a second preset number of times corresponding to the first target preset object information as a first preset number of times. Step S5 is performed after step S10.
Specifically, if the second preset number is 2, the second preset number replaces the first preset number, and the first preset number is 2.
The embodiment sets different limiting times, namely the second preset times, for different application objects, so that the purpose of controlling different application objects differently is achieved, and the use experience is improved. In addition, under the condition that the total processing times of the distributed request processing server cluster is certain, different application objects set different limiting times, the phenomenon that a large number of calling requests of one application object are processed in the same time period, and calling requests of other application objects are ignored is avoided, the balance degree of processing the calling requests of all the application objects is improved, and therefore user experience is further improved.
When the distributed interface access control method of the present invention is applied to the use process of the distributed interface access control system, it is necessary to make the access of the distributed interface more flexible and efficient, and therefore, on the basis of the foregoing embodiment, in another embodiment, referring to fig. 3, before step S40, the method further includes:
in step S20, the statistics center server records the statistics time as T1.
After step S6 and step S7, the method further includes:
in step S21, the statistics center server records the current time as T2.
In step S22, the statistics center server determines whether the interval duration T is T2-T1 and exceeds a preset time period. If the interval duration T exceeds the preset time period, step S23 is executed. If the interval duration T does not exceed the preset time period, step S40 is executed.
Step S23, the statistical center server performs zeroing processing on each current processing frequency corresponding to the preset object information. Step S20 is executed.
The embodiment performs zeroing processing at preset time intervals, so that the distributed interface access control system can automatically perform recovery processing after the limited times are reached, thereby further improving the user experience. In addition, the distributed interface access control system carries out limitation processing according to time, so that the access of the distributed interface is more reasonable, flexible and efficient.
In the application process of the distributed interface access control system, the distributed interface access control method of the present invention is applied to different user requirements in different time periods, and therefore, the requirements that users change day by day need to be met, and therefore, on the basis of the above embodiment, in other embodiments, referring to fig. 4, the distributed interface access control method further includes:
step S30, when the statistics center server obtains the number of times revision instruction input by the user, it receives revision information input by the user, and the revision information includes revision object information and revision number.
In step S31, the statistics center server determines second target preset object information corresponding to the revision object information.
Specifically, the statistics center server determines whether there is preset object information matching the revision object information.
In step S32, the statistics center server revises a second preset number of times corresponding to the second target preset object information according to the revised number of times.
According to the embodiment, the second preset times can be revised in real time according to the requirements of the user so as to meet the requirements of the user on real-time change, and therefore the expanding performance of the distributed interface access control system and the user use experience degree are improved.
When the distributed interface access control method of the present invention is applied to the use process of the distributed interface access control system, it is necessary to avoid that the load rate of individual servers in the distributed request processing server cluster is too high, and therefore, on the basis of the foregoing embodiment, in other embodiments, referring to fig. 5, after step S7, the method further includes:
in step S50, the distributed request processing server cluster calculates a load ratio of each server, and the distributed request processing server cluster includes a plurality of servers.
Step S51, the distributed request processing server cluster interacts with the call request corresponding to the current statistical request to the server with the lowest load rate for processing.
When the distributed request processing server cluster receives the instant execution instruction, the load rate of each server is calculated, and the call request corresponding to the current statistical request is interacted to the server with the lowest load rate for processing, so that the problem that an individual server continues to process the call request under the condition of overhigh load rate is avoided, the possibility of downtime of the server is further avoided, and the working stability of the distributed interface access control system is further improved.
Fig. 6 illustrates one embodiment of a distributed interface access control system of the present invention. In this embodiment, the distributed interface access control system includes at least one provider terminal 1, a distributed request processing server cluster 2, and a statistics center server 3, and the distributed request processing server cluster 2 includes a plurality of servers 20.
Referring to fig. 7, the distributed request processing server cluster 2 includes a receiving module 21, a queuing processing module 22, and a sending module 23.
A receiving module 21, configured to receive multiple invocation requests sent by multiple provider terminals 1, where each provider terminal 1 corresponds to at least one invocation request; the queuing processing module 22 is configured to perform queuing processing on the plurality of call requests, and process the call requests according to a first-in first-out principle to generate statistical requests corresponding to the call requests one to one; and the sending module 23 is configured to send the statistical request to the statistical center server 3 according to time sequence.
Further, referring to fig. 8, the statistics center server 3 includes a current number acquisition module 30 and a statistics processing module 31.
A current time obtaining module 30, configured to process the current statistical request to obtain a current processing time, where an initial value of the current processing time is 0; the statistical processing module 31 is configured to determine whether the current processing frequency exceeds a first preset frequency, feed back an execution refusing instruction corresponding to the current statistical request to the distributed request processing server cluster 2 if the current processing frequency exceeds the first preset frequency, and feed back an instant execution instruction corresponding to the current statistical request to the distributed request processing server cluster 2 if the current processing frequency does not exceed the first preset frequency.
On the basis of the above embodiment, in other embodiments, referring to fig. 9, the statistical center server 3 further includes a storage module 40 and a threshold determination module 41.
The storage module 40 is configured to store multiple types of preset object information, where each type of preset object information corresponds to a second preset number of times.
Further, referring to fig. 10, the current times acquisition module 30 includes an object information acquisition unit 301, an object information matching unit 302, and a current times acquisition unit 303.
An object information obtaining unit 301, configured to obtain current object information according to the current statistical request; an object information matching unit 302, configured to determine whether there is first target preset object information that matches current object information; a current number obtaining unit 303, configured to add 1 to the processing number corresponding to the first target preset object information to serve as the current processing number if there is first target preset object information that matches the current object information.
The threshold determining module 41 is configured to determine a second preset number corresponding to the first target preset object information as the first preset number.
On the basis of the above embodiment, in other embodiments, referring to fig. 11, the statistics center server 3 further includes a zeroing processing module 50.
And a zeroing processing module 50, configured to perform zeroing processing on each current processing frequency corresponding to the preset object information at intervals of a preset time period.
On the basis of the above embodiment, in other embodiments, referring to fig. 12, the statistics center server 3 further includes a revision information receiving module 60, a revision object determining module 61, and a number-of-times revising module 62.
A revision information receiving module 60, configured to receive revision information input by a user when a constraint condition revision instruction input by the user is acquired, where the revision information includes revision object information and revision times; a revision object determining module 61 for determining second target preset object information corresponding to the revision object information; a number revision module 62 for revising a second preset number corresponding to the second target preset object information according to the revision number.
On the basis of the above embodiment, in other embodiments, referring to fig. 13, the distributed request processing server cluster 2 further includes a load rate calculation module 70 and an execution processing module 71.
A load rate calculation module 70, configured to calculate a load rate of each server, where the distributed request processing server cluster 2 includes a plurality of servers; and the execution processing module 71 is configured to interact the call request corresponding to the current statistical request to the server with the lowest load rate for processing.
For other details of the technical solution for implementing each module in the distributed interface access control system in the five embodiments, reference may be made to the description of the distributed interface access control method in the embodiments, and details are not described here again.
It should be noted that, in the present specification, the embodiments are all described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments may be referred to each other. For the device-like embodiment, since it is basically similar to the method embodiment, the description is simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
The above detailed description of the embodiments of the present invention is provided as an example, and the present invention is not limited to the above described embodiments. It will be apparent to those skilled in the art that any equivalent modifications or substitutions can be made within the scope of the present invention, and thus, equivalent changes and modifications, improvements, etc. made without departing from the spirit and scope of the present invention should be included in the scope of the present invention.

Claims (10)

1. A distributed interface access control method, comprising the steps of:
the distributed request processing server cluster receives a plurality of calling requests sent by a plurality of supplier terminals, and each supplier terminal corresponds to at least one calling request;
the distributed request processing server cluster performs enqueuing processing on the plurality of call requests and processes the call requests according to a first-in first-out principle so as to generate statistical requests corresponding to the call requests one by one;
the distributed request processing server cluster sends the statistical request to a statistical center server according to time sequence;
the statistical center server processes the current statistical request to obtain the current processing times, wherein the initial value of the current processing times is 0;
the statistical center server judges whether the current processing times exceed a first preset time, if the current processing times exceed the first preset time, an execution refusing instruction corresponding to the current statistical request is fed back to the distributed request processing server cluster, and if the current processing times do not exceed the first preset time, an instant execution instruction corresponding to the current statistical request is fed back to the distributed request processing server cluster.
2. The distributed interface access control method according to claim 1, wherein the statistics center server further stores a plurality of preset object information, and each preset object information corresponds to a second preset number of times;
the step of processing the current statistical request by the statistical center server to obtain the current processing times comprises the following steps:
the statistical center server obtains current object information according to the current statistical request;
the statistical center server judges whether first target preset object information matched with the current object information exists or not;
if first target preset object information matched with the current object information exists, adding 1 to the processing times corresponding to the first target preset object information to serve as the current processing times;
after the step of processing the current statistical request by the statistical center server to obtain the current processing times, the method further includes:
and the statistical center server determines a second preset frequency corresponding to the first target preset object information as the first preset frequency.
3. The distributed interface access control method of claim 2, further comprising:
and after a preset time period, the statistical center server performs zero treatment on each current treatment frequency corresponding to the preset object information.
4. The distributed interface access control method of claim 2, further comprising:
the method comprises the steps that when a number revision instruction input by a user is obtained, revision information input by the user is received by the statistical center server, wherein the revision information comprises revision object information and revision times;
determining second target preset object information corresponding to the revision object information;
revising a second preset number corresponding to the second target preset object information according to the revising number.
5. The distributed interface access control method of claim 1, wherein after the step of feeding back the instant execution instruction to the distributed request processing server cluster, further comprising:
the distributed request processing server cluster calculates the load rate of each server, and comprises a plurality of servers;
and the distributed request processing server cluster interacts with the call request corresponding to the current statistical request to the server with the lowest load rate for processing.
6. A distributed interface access control system comprising at least one provider terminal, a distributed request processing server cluster and a statistics center server, wherein the distributed request processing server cluster comprises:
the system comprises a receiving module, a calling module and a calling module, wherein the receiving module is used for receiving a plurality of calling requests sent by a plurality of supplier terminals, and each supplier terminal corresponds to at least one calling request;
the queuing processing module is used for carrying out queuing processing on the plurality of call requests and processing the call requests according to a first-in first-out principle so as to generate statistical requests corresponding to the call requests one by one;
the sending module is used for sending the statistical request to the statistical center server according to time sequence;
the statistics center server includes:
a current time obtaining module, configured to process a current statistical request to obtain a current processing time, where an initial value of the current processing time is 0;
and the statistical processing module is used for judging whether the current processing times exceed a first preset time, feeding back an execution refusing instruction corresponding to the current statistical request to the distributed request processing server cluster if the current processing times exceed the first preset time, and feeding back an instant execution instruction corresponding to the current statistical request to the distributed request processing server cluster if the current processing times do not exceed the first preset time.
7. The distributed interface access control system of claim 6 wherein said statistics center server further comprises:
the storage module is used for storing a plurality of kinds of preset object information, and each kind of preset object information corresponds to a second preset number of times;
the current times obtaining module includes:
the object information acquisition unit is used for acquiring current object information according to the current statistical request;
the object information matching unit is used for judging whether first target preset object information matched with the current object information exists or not;
a current time obtaining unit, configured to add 1 to a processing time corresponding to first target preset object information as the current processing time if there is first target preset object information that matches the current object information;
the statistical center server further comprises:
and the threshold value determining module is used for determining a second preset frequency corresponding to the first target preset object information as the first preset frequency.
8. The distributed interface access control system of claim 7 wherein said statistics center server further comprises:
and the zeroing processing module is used for carrying out zeroing processing on each current processing frequency corresponding to the preset object information after a preset time period.
9. The distributed interface access control system of claim 7 wherein said statistics center server further comprises:
the revision information receiving module is used for receiving revision information input by a user when a restriction condition revision instruction input by the user is acquired, wherein the revision information comprises revision object information and revision times;
the revision object determining module is used for determining second target preset object information corresponding to the revision object information;
and the number revising module is used for revising a second preset number corresponding to the second target preset object information according to the revising number.
10. The distributed interface access control system of claim 6 wherein the distributed cluster of request processing servers further comprises:
a load rate calculation module, configured to calculate a load rate of each server, where the distributed request processing server cluster includes a plurality of servers;
and the execution processing module is used for interacting the call request corresponding to the current statistical request to the server with the lowest load rate for processing.
CN201711089247.5A 2017-11-07 2017-11-07 Distributed interface access control method and system Active CN108023936B (en)

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 CN108023936A (en) 2018-05-11
CN108023936B true 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)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108769162B (en) * 2018-05-16 2021-01-12 上海携程商务有限公司 Distributed message equalization processing method and device, electronic equipment and storage medium
CN110609855B (en) * 2018-05-29 2021-06-04 北京三快在线科技有限公司 Query processing and query rate threshold determination method and distributed query system
CN110910233B (en) * 2019-11-27 2022-07-29 华炫鼎盛(北京)科技有限公司 Internet financial platform credit risk monitoring method and device and electronic equipment
CN114615710A (en) * 2022-04-07 2022-06-10 中国电信股份有限公司 Network element access flow control method and device, storage medium and electronic equipment

Citations (8)

* Cited by examiner, † Cited by third party
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

Patent Citations (8)

* Cited by examiner, † Cited by third party
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

Also Published As

Publication number Publication date
CN108023936A (en) 2018-05-11

Similar Documents

Publication Publication Date Title
CN108023936B (en) Distributed interface access control method and system
CN106445675B (en) B2B platform distributed application scheduling and resource allocation method
CN107241281B (en) Data processing method and device
CN107391243B (en) Thread task processing equipment, device and method
CN109756417B (en) Offline message distribution method, server and storage medium
CN110990138B (en) Resource scheduling method, device, server and storage medium
CN110659123B (en) Distributed task distribution scheduling method and device based on message
CN107819797B (en) Access request processing method and device
CN102668456A (en) Method and system for adapting a session timeout period
CN107995286B (en) Automatic service starting and stopping method based on dubbo platform, server and storage medium
CN107682391B (en) Electronic device, server allocation control method, and computer-readable storage medium
CN110995617B (en) MQTT-based data transmission method and device, computer equipment and storage medium
CN111078391A (en) Service request processing method, device and equipment
CN111858055A (en) Task processing method, server and storage medium
CN110149377A (en) A kind of video service node resource allocation methods, system, device and storage medium
CN111240864A (en) Asynchronous task processing method, device, equipment and computer readable storage medium
CN113327053A (en) Task processing method and device
CN116661960A (en) Batch task processing method, device, equipment and storage medium
CN111538572A (en) Task processing method, device, scheduling server and medium
EP3672203A1 (en) Distribution method for distributed data computing, device, server and storage medium
CN111815059B (en) Data processing method and device, electronic equipment and computer readable storage medium
CN108259605B (en) Data calling system and method based on multiple data centers
CN106411971B (en) Load adjusting method and device
CN111258729B (en) Redis-based task allocation method and device, computer equipment and storage medium
CN109428901B (en) Message processing method and message processing device

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