CN118301156A - Automatic ticketing anti-blocking system and method based on batch data request - Google Patents

Automatic ticketing anti-blocking system and method based on batch data request Download PDF

Info

Publication number
CN118301156A
CN118301156A CN202410726006.0A CN202410726006A CN118301156A CN 118301156 A CN118301156 A CN 118301156A CN 202410726006 A CN202410726006 A CN 202410726006A CN 118301156 A CN118301156 A CN 118301156A
Authority
CN
China
Prior art keywords
ticket
intermediate server
request
ticketing
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.)
Pending
Application number
CN202410726006.0A
Other languages
Chinese (zh)
Inventor
崔震苍
刘东升
黄山
曹峰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beishite Technology Group Co ltd
Original Assignee
Beishite Technology Group Co ltd
Filing date
Publication date
Application filed by Beishite Technology Group Co ltd filed Critical Beishite Technology Group Co ltd
Publication of CN118301156A publication Critical patent/CN118301156A/en
Pending legal-status Critical Current

Links

Abstract

The invention belongs to the technical field of data processing, and provides an automatic ticketing anti-jamming system and method based on batch data request, wherein the main scheme comprises the following steps: receiving a first ticket request instruction sent by the mobile ticket buying terminal in real time through a first intermediate server, dynamically selecting a corresponding intermediate server to acquire ticket response information from the central server according to the number of the first ticket request instruction and combining the first mapping relation and the second mapping relation, and feeding back the ticket response information to the corresponding mobile ticket buying terminal; and receiving a second ticket request instruction sent by the fixed ticket buying terminal in the current instruction service area in real time through a second intermediate server, receiving a third ticket request instruction sent by the fixed ticket buying terminal in the current instruction service area in real time through a third intermediate server, acquiring ticket response information from the central server through the second or third intermediate server, and feeding back the ticket response information to the corresponding fixed ticket buying terminal. The invention can reduce the jamming phenomenon during automatic ticket selling as much as possible on the premise of not increasing the hardware cost.

Description

Automatic ticketing anti-blocking system and method based on batch data request
Technical Field
The invention relates to the technical field of data processing, in particular to an automatic ticketing anti-jamming system and method based on batch data requests.
Background
Since many users select to go out in holidays, online ticket purchasing is unavoidable, and although many users purchase tickets in related portal websites or response application programs in advance, a centralized ticket purchasing phenomenon still exists, and therefore, a server for receiving ticket service request instructions inevitably has instruction processing delay before and after the holidays, so that the whole automatic ticket vending system has a clamping phenomenon.
In view of the above, many technical administrators have increased the data processing capacity of the server in an effort to reduce the delay of the server as much as possible in the case of high-burst data requests, however, such operations greatly increase the hardware cost of the server and even require more frequent technical maintenance.
Thus, there is a need for an automated ticketing anti-jamming scheme that can be used in batch data requests.
Disclosure of Invention
The invention aims to provide an automatic ticketing anti-jamming system and method based on batch data requests, which can relieve jamming phenomenon during automatic ticketing as far as possible on the basis of not increasing hardware cost.
The invention solves the technical problems and adopts the following technical scheme:
in one aspect, the present invention provides an automated ticketing anti-jamming system based on batch data requests, comprising:
The mapping relation establishing unit is used for establishing a first mapping relation between the first intermediate server and the second intermediate server in the current instruction service area and establishing a second mapping relation between the first intermediate server and the third intermediate server in the associated instruction service area in the current instruction service area;
the threshold setting unit is used for obtaining a first threshold of the number of first ticket business request instructions which can be received by a first intermediate server in a current instruction service area in a load balance state, obtaining a second threshold of the number of first ticket business request instructions which can be received by a second intermediate server in the current instruction service area in the load balance state based on a first mapping relation, and obtaining a third threshold of the number of first ticket business request instructions which can be received by a third intermediate server in an associated instruction service area in the load balance state based on a second mapping relation;
the first intermediate server is used for receiving the first ticket request instruction sent by the mobile ticket buying terminal in real time, dynamically selecting the corresponding intermediate server to acquire ticket response information from the central server according to the number of the first ticket request instruction and combining the first mapping relation and the second mapping relation, and feeding back the ticket response information to the corresponding mobile ticket buying terminal;
The second intermediate server is used for receiving a second ticket request instruction sent by the fixed ticket buying terminal in the current instruction service area in real time, and when the second intermediate server receives the second ticket request instruction, ticket response information is directly acquired from the central server through the second intermediate server and fed back to the corresponding fixed ticket buying terminal through the second intermediate server;
And the third intermediate server is used for receiving a third ticket request instruction sent by the fixed ticket buying terminal in the associated instruction service area in real time, and when the third intermediate server receives the third ticket request instruction, ticket response information is directly acquired from the central server through the third intermediate server and fed back to the corresponding fixed ticket buying terminal through the third intermediate server.
On the other hand, the invention also provides an automatic ticketing anti-jamming method based on the batch data request, which is applied to the automatic ticketing anti-jamming system based on the batch data request, and comprises the following steps:
Establishing a first mapping relation between a first intermediate server and a second intermediate server in a current instruction service area, and establishing a second mapping relation between the first intermediate server and a third intermediate server in an associated instruction service area in the current instruction service area;
Acquiring a first threshold value of the number of first ticket request instructions which can be received by a first intermediate server in a current instruction service area in a load balance state, acquiring a second threshold value of the number of first ticket request instructions which can be received by a second intermediate server in the current instruction service area in the load balance state based on a first mapping relation, and acquiring a third threshold value of the number of first ticket request instructions which can be received by a third intermediate server in an associated instruction service area in the load balance state based on the second mapping relation;
Receiving a first ticket request instruction sent by the mobile ticket buying terminal in real time through a first intermediate server, dynamically selecting a corresponding intermediate server to acquire ticket response information from the central server according to the number of the first ticket request instruction and combining the first mapping relation and the second mapping relation, and feeding back the ticket response information to the corresponding mobile ticket buying terminal;
receiving a second ticket request instruction sent by a fixed ticket buying terminal in the current instruction service area in real time through a second intermediate server, directly acquiring ticket response information from a central server through the second intermediate server when the second intermediate server receives the second ticket request instruction, and feeding back the ticket response information to the corresponding fixed ticket buying terminal through the second intermediate server;
And receiving a third ticket request instruction sent by the fixed ticket buying terminal in the associated instruction service area in real time through a third intermediate server, directly acquiring ticket response information from the central server through the third intermediate server when the third intermediate server receives the third ticket request instruction, and feeding back the ticket response information to the corresponding fixed ticket buying terminal through the third intermediate server.
As a further optimization, the establishing a first mapping relationship between the first intermediate server and the second intermediate server in the current instruction service area, and the establishing a second mapping relationship between the first intermediate server and the third intermediate server in the associated instruction service area, specifically, the establishing a second mapping relationship between the first intermediate server and the third intermediate server in the current instruction service area:
When the number of the second intermediate servers in the current instruction service area is one, a first mapping relation between the first intermediate server and the second intermediate server in the current instruction service area is directly established, when the number of the second intermediate servers in the current instruction service area is more than one, the second intermediate server closest to the first intermediate server is acquired, and a first mapping relation between the first intermediate server and the second intermediate server closest to the first intermediate server in the current instruction service area is established;
And when the number of the third intermediate servers in the associated instruction service area is more than one, acquiring the third intermediate server closest to the first intermediate server, and establishing a second mapping relation between the first intermediate server and the third intermediate server closest to the first intermediate server in the current instruction service area.
As further optimization, the first ticket request instruction sent by the mobile ticket buying terminal is received in real time through the first intermediate server, and according to the number of the first ticket request instruction, the corresponding intermediate server is dynamically selected to obtain ticket response information from the central server by combining the first mapping relation and the second mapping relation, and the ticket response information is fed back to the corresponding mobile ticket buying terminal, specifically:
if the number of the first ticket request instructions received by the first intermediate server in the current instruction server area does not exceed a first threshold value, ticket response information is directly obtained from the central server through the first intermediate server, and is fed back to the corresponding mobile ticket buying terminal through the first intermediate server;
if the number of the received first ticket request instructions exceeds a first threshold and the number of the first ticket request instructions exceeding the first threshold does not exceed a second threshold, forwarding the first ticket request instructions exceeding the first threshold to a second intermediate server under a first mapping relation, acquiring ticket response information from a central server through the second intermediate server, and feeding back the ticket response information to a corresponding mobile ticket buying terminal;
If the number of the received first ticket request instructions exceeds a first threshold and the number of the first ticket request instructions exceeding the first threshold exceeds a second threshold, forwarding the first ticket request instructions exceeding the second threshold to a third intermediate server in a second mapping relation, acquiring ticket response information from the central server through the third intermediate server, and feeding back to the corresponding mobile ticket buying terminal.
As further optimization, if the number of the first ticket request instructions received by the first intermediate server in the current instruction server area does not exceed a first threshold value, caching the first ticket request instructions to a first information storage list in the first intermediate server according to the time sequence of the received first ticket request instructions, and acquiring ticket response information from the central server through the first intermediate server according to the time sequence of the caching;
if the number of the received first ticket request instructions exceeds a first threshold and the number of the first ticket request instructions exceeding the first threshold does not exceed a second threshold, forwarding the first ticket request instructions exceeding the first threshold and not exceeding the second threshold to a second intermediate server in sequence according to the time sequence of the received first ticket request instructions, caching the first ticket request instructions to a second information storage list in the second intermediate server, and acquiring ticket response information from the central server through the second intermediate server in sequence according to the time sequence of the caching;
If the number of the received first ticket request instructions exceeds a first threshold and the number of the received first ticket request instructions exceeds a second threshold, forwarding the received first ticket request instructions exceeding the second threshold to a third intermediate server in sequence according to the time sequence of the received first ticket request instructions, caching the received first ticket request instructions to a third information storage list in the third intermediate server, and acquiring ticket response information from the central server through the third intermediate server in sequence according to the time sequence of the caching.
As a further optimization, when the first ticket request instruction is cached in the first information storage list, the second information storage list or the third information storage list, the first ticket request instruction at least contains unique identification information corresponding to the mobile ticket purchasing terminal.
As a further optimization, the unique identification information of the mobile ticket purchasing terminal is synchronously stored in the first intermediate server, the second intermediate server and the third intermediate server after the corresponding mobile ticket purchasing terminal finishes ticket purchasing for the first time.
As further optimization, after the corresponding mobile ticket purchasing terminal finishes ticket purchasing for the first time, the first intermediate server counts historical ticket purchasing information of the corresponding mobile ticket purchasing terminal, judges whether a first ticket request instruction initiated by the corresponding mobile ticket purchasing terminal belongs to an illegal instruction or not through the first intermediate server, and if the first ticket request instruction belonging to the illegal instruction reaches the specified times when the first ticket request instruction belongs to the illegal instruction, the first intermediate server shields the first ticket request instruction of the corresponding mobile ticket purchasing terminal.
As a further optimization, after the first intermediate server shields the first ticket request instruction of the corresponding mobile ticket buying terminal, the corresponding mobile ticket buying terminal only allows the shielding receiving request to be carried out at the specified time node.
As a further optimization, the specified time node means: starting from a set first time node, in a later first time period, if the number of first ticket business request instructions received by a first intermediate server does not exceed a first threshold value, taking the ending time of the first time period as a set time node;
Or after the number of the first ticket request instructions received by the first intermediate server exceeds a first threshold, acquiring a second time node when the first ticket request instructions are reduced to be below the first threshold, and in a second time period, if the number of the first ticket request instructions received by the first intermediate server does not exceed the first threshold, taking the ending time of the second time period as a specified time node;
the second period of time is greater than the first period of time.
The beneficial effects of the invention are as follows: according to the automatic ticket vending anti-blocking system and the method based on the batch data request, the first ticket request instruction of the mobile ticket purchasing terminal is received through the first intermediate server in one instruction service area, the second ticket request instruction of the fixed ticket purchasing terminal is received through the second intermediate server, and the second intermediate server in charge of receiving the second ticket request instruction is not overloaded even when the data request is high and burst, so that the second intermediate server can be reused to relieve the data processing pressure of the first intermediate server after the first ticket request instruction reaches a certain number, and the third intermediate server in the associated instruction service area is reused after the first ticket request instruction is increased again after the first ticket request instruction reaches a certain number.
Therefore, the invention can greatly relieve the phenomenon of automatic ticket selling and blocking when the data request is high in burst without increasing any hardware cost.
Drawings
FIG. 1 is a schematic diagram of a part of the structure of an automatic ticketing anti-jamming system based on batch data request in embodiment 1 of the present invention;
fig. 2 is a flowchart of an automatic ticketing anti-jamming method based on a batch data request in embodiment 2 of the present invention.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present invention more apparent, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention, and it is apparent that the described embodiments are some embodiments of the present invention, but not all embodiments of the present invention. The components of the embodiments of the present invention generally described and illustrated in the figures herein may be arranged and designed in a wide variety of different configurations.
Example 1
The embodiment provides an automatic ticketing anti-jamming system based on batch data request, and a part of the system is shown in fig. 1, wherein the system comprises:
The mapping relation establishing unit is used for establishing a first mapping relation between the first intermediate server and the second intermediate server in the current instruction service area and establishing a second mapping relation between the first intermediate server and the third intermediate server in the associated instruction service area in the current instruction service area;
the threshold setting unit is used for obtaining a first threshold of the number of first ticket business request instructions which can be received by a first intermediate server in a current instruction service area in a load balance state, obtaining a second threshold of the number of first ticket business request instructions which can be received by a second intermediate server in the current instruction service area in the load balance state based on a first mapping relation, and obtaining a third threshold of the number of first ticket business request instructions which can be received by a third intermediate server in an associated instruction service area in the load balance state based on a second mapping relation;
the first intermediate server is used for receiving the first ticket request instruction sent by the mobile ticket buying terminal in real time, dynamically selecting the corresponding intermediate server to acquire ticket response information from the central server according to the number of the first ticket request instruction and combining the first mapping relation and the second mapping relation, and feeding back the ticket response information to the corresponding mobile ticket buying terminal;
The second intermediate server is used for receiving a second ticket request instruction sent by the fixed ticket buying terminal in the current instruction service area in real time, and when the second intermediate server receives the second ticket request instruction, ticket response information is directly acquired from the central server through the second intermediate server and fed back to the corresponding fixed ticket buying terminal through the second intermediate server;
And the third intermediate server is used for receiving a third ticket request instruction sent by the fixed ticket buying terminal in the associated instruction service area in real time, and when the third intermediate server receives the third ticket request instruction, ticket response information is directly acquired from the central server through the third intermediate server and fed back to the corresponding fixed ticket buying terminal through the third intermediate server.
In this embodiment, because of the large-scale popularization of the internet, more and more users can select to purchase the internet and more mobile intelligent terminals of the users, such as mobile phones or computers, can be used to remotely purchase the tickets, even if people who do not know the internet purchase the tickets still can select to purchase the tickets down in a fixed ticketing terminal of the ticketing website, because the second intermediate server is used to receive the second ticketing request instruction of the fixed ticketing terminal in the service area of the current instruction, even under the condition of high burst request of holidays, most of the processing capacity of the second intermediate server is still in an unused state, therefore, the embodiment can utilize the first intermediate server to judge whether the number of received first ticketing request instructions reaches the first threshold, if the number of received first ticketing request instructions does not reach the first threshold, the situation that the first intermediate server does not have data processing pressure at this moment, and the phenomenon of blocking does not exist, after the first threshold is reached, the data processing requirement exceeds the data processing capacity of the first intermediate server in the load state, therefore, the embodiment selects to multiplex the second intermediate server, the situation that the second intermediate server is in a multiplexing mode is released, if the first intermediate server receives the first intermediate server, the situation of multiplexing the data requests is further, if the first intermediate server receives the first intermediate server, and the first intermediate server has no more data processing pressure, and the situation is more than the first intermediate server has been processed in the first intermediate service area, and the first intermediate server has the first intermediate service instruction, and has high processing pressure.
Example 2
On the basis of embodiment 1, the present embodiment provides an automatic ticketing anti-jamming method based on batch data request, and a flowchart of the method is shown in fig. 2, wherein the method includes the following steps:
S1, establishing a first mapping relation between a first intermediate server and a second intermediate server in a current instruction service area, and establishing a second mapping relation between the first intermediate server and a third intermediate server in an associated instruction service area in the current instruction service area;
S2, acquiring a first threshold value of the number of first ticket request instructions which can be received by a first intermediate server in a current instruction service area in a load balance state, acquiring a second threshold value of the number of first ticket request instructions which can be received by a second intermediate server in the current instruction service area in the load balance state based on a first mapping relation, and acquiring a third threshold value of the number of first ticket request instructions which can be received by a third intermediate server in an associated instruction service area in the load balance state based on the second mapping relation;
S3, receiving a first ticket request instruction sent by the mobile ticket buying terminal in real time through a first intermediate server, dynamically selecting a corresponding intermediate server to acquire ticket response information from the central server according to the number of the first ticket request instruction and combining the first mapping relation and the second mapping relation, and feeding back the ticket response information to the corresponding mobile ticket buying terminal;
s4, receiving a second ticket request instruction sent by the fixed ticket buying terminal in the current instruction service area in real time through a second intermediate server, directly acquiring ticket response information from the central server through the second intermediate server when the second intermediate server receives the second ticket request instruction, and feeding back the ticket response information to the corresponding fixed ticket buying terminal through the second intermediate server;
And S5, receiving a third ticket request instruction sent by the fixed ticket buying terminal in the associated instruction service area in real time through a third intermediate server, directly acquiring ticket response information from the central server through the third intermediate server when the third intermediate server receives the third ticket request instruction, and feeding back the ticket response information to the corresponding fixed ticket buying terminal through the third intermediate server.
In the above method, when the first intermediate server preferentially multiplexes the second intermediate server in the current instruction service area to relieve the data processing pressure, and then multiplexes the third intermediate server in the associated instruction service area to relieve the data processing pressure, while in the actual application process, the batch data request refers to the first ticket request, the number of the first ticket request instructions is difficult to be specifically quantified even in the high burst state of the holiday, and for different instruction service areas, the number of the second intermediate servers is not fixed, so in this embodiment, the first mapping relationship between the first intermediate server and the second intermediate server in the current instruction service area is established, and the second mapping relationship between the first intermediate server and the third intermediate server in the associated instruction service area is established, specifically, the specific steps are as follows:
When the number of the second intermediate servers in the current instruction service area is one, a first mapping relation between the first intermediate server and the second intermediate server in the current instruction service area is directly established, when the number of the second intermediate servers in the current instruction service area is more than one, the second intermediate server closest to the first intermediate server is acquired, and a first mapping relation between the first intermediate server and the second intermediate server closest to the first intermediate server in the current instruction service area is established;
And when the number of the third intermediate servers in the associated instruction service area is more than one, acquiring the third intermediate server closest to the first intermediate server, and establishing a second mapping relation between the first intermediate server and the third intermediate server closest to the first intermediate server in the current instruction service area.
It should be noted that, if there are multiple second intermediate servers in the current instruction service area, in order to more timely feed back the ticket response information through the second intermediate server after the first ticket request instruction is forwarded to the intermediate server through the second intermediate server, the embodiment may multiplex all the second intermediate servers in the current instruction service area and then de-multiplex the third intermediate server in the associated instruction service area.
In the practical application process, since the number of the instructions of the high burst data request is hard to quantify, a first threshold is set for the first intermediate server, if the first ticket request instruction received by the first intermediate server is below the first threshold, at this time, the first intermediate server does not have data processing pressure, at this time, forwarding of the first ticket request instruction is directly performed through the first intermediate server, so as to reduce the delay of the instruction response as much as possible, after the first ticket request instruction exceeds the first threshold, the second intermediate server multiplexed according to the number of the first ticket request instruction is dynamically selected, and after the second intermediate server is multiplexed, the third intermediate server multiplexed is dynamically selected, so as to further reduce the data processing delay.
If the number of the first ticket request instructions received by the first intermediate server in the current instruction server area does not exceed a first threshold value, ticket response information is directly obtained from the central server through the first intermediate server, and is fed back to the corresponding mobile ticket buying terminal through the first intermediate server;
if the number of the received first ticket request instructions exceeds a first threshold and the number of the first ticket request instructions exceeding the first threshold does not exceed a second threshold, forwarding the first ticket request instructions exceeding the first threshold to a second intermediate server under a first mapping relation, acquiring ticket response information from a central server through the second intermediate server, and feeding back the ticket response information to a corresponding mobile ticket buying terminal;
If the number of the received first ticket request instructions exceeds a first threshold and the number of the first ticket request instructions exceeding the first threshold exceeds a second threshold, forwarding the first ticket request instructions exceeding the second threshold to a third intermediate server in a second mapping relation, acquiring ticket response information from the central server through the third intermediate server, and feeding back to the corresponding mobile ticket buying terminal.
It should be noted that, for the first ticket request instruction, although the first ticket request instruction is received by the first intermediate server at first, if there is a high burst request scenario, the embodiment inevitably generates a situation that the intermediate servers are multiplexed, in this case, for different first ticket request instructions, in order to ensure forwarding security to the central server, whether the second intermediate server is selected to feed back ticket response information or the third intermediate server is selected to feed back ticket response information, so in this embodiment, if the number of first ticket request instructions received by the first intermediate server in the current instruction server area does not exceed the first threshold, the first ticket request instructions are sequentially cached to the first information storage list in the first intermediate server according to the time sequence of the received first ticket request instructions, and the ticket response information is sequentially acquired from the central server through the first intermediate server according to the cached time sequence;
if the number of the received first ticket request instructions exceeds a first threshold and the number of the first ticket request instructions exceeding the first threshold does not exceed a second threshold, forwarding the first ticket request instructions exceeding the first threshold and not exceeding the second threshold to a second intermediate server in sequence according to the time sequence of the received first ticket request instructions, caching the first ticket request instructions to a second information storage list in the second intermediate server, and acquiring ticket response information from the central server through the second intermediate server in sequence according to the time sequence of the caching;
If the number of the received first ticket request instructions exceeds a first threshold and the number of the received first ticket request instructions exceeds a second threshold, forwarding the received first ticket request instructions exceeding the second threshold to a third intermediate server in sequence according to the time sequence of the received first ticket request instructions, caching the received first ticket request instructions to a third information storage list in the third intermediate server, and acquiring ticket response information from the central server through the third intermediate server in sequence according to the time sequence of the caching.
Specifically, in an actual application scenario, the mobile ticket purchasing terminal only needs to be connected to the network, so that ticket purchasing can be performed through the corresponding application program, at this time, if the mobile ticket purchasing terminal is not constrained, a large number of conditions of 'yellow cattle' help to rob tickets or malicious rob tickets to refund tickets exist, and even illegal hackers do not intend to initiate frequent instruction requests to the first intermediate server, so that the first intermediate server frequently forwards the first ticket requesting instructions.
In order to realize data synchronization among all the intermediate servers and prevent frequent malicious requests of illegal instructions, the unique identification information of the mobile ticket purchasing terminal is synchronously stored in the first intermediate server, the second intermediate server and the third intermediate server after the corresponding mobile ticket purchasing terminal finishes ticket purchasing for the first time.
It should be noted that, in this embodiment, after the corresponding mobile ticket purchasing terminal completes ticket purchasing for the first time, the first intermediate server counts the historical ticket purchasing information of the corresponding mobile ticket purchasing terminal, and determines whether the first ticket request instruction initiated by the corresponding mobile ticket purchasing terminal belongs to an illegal instruction through the first intermediate server, when the first ticket request instruction belongs to the illegal instruction reaches the specified number of times, the first intermediate server shields the first ticket request instruction of the corresponding mobile ticket purchasing terminal, so as to prevent the illegal instruction from initiating the data processing pressure after frequent requests are initiated to the first intermediate server.
In order to avoid the problem of frequent malicious requests as far as possible, after the first intermediate server shields the first ticket request instruction of the corresponding mobile ticket buying terminal, the corresponding mobile ticket buying terminal only allows the shielding request to be received at the specified time node. Specifically, the specified time node in this embodiment may refer to: starting from a set first time node, in a later first time period, if the number of first ticket business request instructions received by a first intermediate server does not exceed a first threshold value, taking the ending time of the first time period as a set time node;
Or after the number of the first ticket request instructions received by the first intermediate server exceeds a first threshold, acquiring a second time node when the first ticket request instructions are reduced to be below the first threshold, and in a second time period, if the number of the first ticket request instructions received by the first intermediate server does not exceed the first threshold, taking the ending time of the second time period as a specified time node;
the second period of time is greater than the first period of time.
The above is only a preferred embodiment of the present invention, and is not intended to limit the present invention, but various modifications and variations can be made to the present invention by those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (10)

1. Automatic ticketing anti-jamming system based on batch data request, which is characterized by comprising:
The mapping relation establishing unit is used for establishing a first mapping relation between the first intermediate server and the second intermediate server in the current instruction service area and establishing a second mapping relation between the first intermediate server and the third intermediate server in the associated instruction service area in the current instruction service area;
the threshold setting unit is used for obtaining a first threshold of the number of first ticket business request instructions which can be received by a first intermediate server in a current instruction service area in a load balance state, obtaining a second threshold of the number of first ticket business request instructions which can be received by a second intermediate server in the current instruction service area in the load balance state based on a first mapping relation, and obtaining a third threshold of the number of first ticket business request instructions which can be received by a third intermediate server in an associated instruction service area in the load balance state based on a second mapping relation;
the first intermediate server is used for receiving the first ticket request instruction sent by the mobile ticket buying terminal in real time, dynamically selecting the corresponding intermediate server to acquire ticket response information from the central server according to the number of the first ticket request instruction and combining the first mapping relation and the second mapping relation, and feeding back the ticket response information to the corresponding mobile ticket buying terminal;
The second intermediate server is used for receiving a second ticket request instruction sent by the fixed ticket buying terminal in the current instruction service area in real time, and when the second intermediate server receives the second ticket request instruction, ticket response information is directly acquired from the central server through the second intermediate server and fed back to the corresponding fixed ticket buying terminal through the second intermediate server;
And the third intermediate server is used for receiving a third ticket request instruction sent by the fixed ticket buying terminal in the associated instruction service area in real time, and when the third intermediate server receives the third ticket request instruction, ticket response information is directly acquired from the central server through the third intermediate server and fed back to the corresponding fixed ticket buying terminal through the third intermediate server.
2. The automatic ticketing anti-jamming method based on the batch data request is applied to the automatic ticketing anti-jamming system based on the batch data request as claimed in claim 1, and is characterized by comprising the following steps:
Establishing a first mapping relation between a first intermediate server and a second intermediate server in a current instruction service area, and establishing a second mapping relation between the first intermediate server and a third intermediate server in an associated instruction service area in the current instruction service area;
Acquiring a first threshold value of the number of first ticket request instructions which can be received by a first intermediate server in a current instruction service area in a load balance state, acquiring a second threshold value of the number of first ticket request instructions which can be received by a second intermediate server in the current instruction service area in the load balance state based on a first mapping relation, and acquiring a third threshold value of the number of first ticket request instructions which can be received by a third intermediate server in an associated instruction service area in the load balance state based on the second mapping relation;
Receiving a first ticket request instruction sent by the mobile ticket buying terminal in real time through a first intermediate server, dynamically selecting a corresponding intermediate server to acquire ticket response information from the central server according to the number of the first ticket request instruction and combining the first mapping relation and the second mapping relation, and feeding back the ticket response information to the corresponding mobile ticket buying terminal;
receiving a second ticket request instruction sent by a fixed ticket buying terminal in the current instruction service area in real time through a second intermediate server, directly acquiring ticket response information from a central server through the second intermediate server when the second intermediate server receives the second ticket request instruction, and feeding back the ticket response information to the corresponding fixed ticket buying terminal through the second intermediate server;
And receiving a third ticket request instruction sent by the fixed ticket buying terminal in the associated instruction service area in real time through a third intermediate server, directly acquiring ticket response information from the central server through the third intermediate server when the third intermediate server receives the third ticket request instruction, and feeding back the ticket response information to the corresponding fixed ticket buying terminal through the third intermediate server.
3. The automatic ticketing anti-jamming method based on batch data request according to claim 2, wherein the establishing a first mapping relationship between a first intermediate server and a second intermediate server in a current instruction service area, and establishing a second mapping relationship between the first intermediate server and a third intermediate server in an associated instruction service area in the current instruction service area specifically means:
When the number of the second intermediate servers in the current instruction service area is one, a first mapping relation between the first intermediate server and the second intermediate server in the current instruction service area is directly established, when the number of the second intermediate servers in the current instruction service area is more than one, the second intermediate server closest to the first intermediate server is acquired, and a first mapping relation between the first intermediate server and the second intermediate server closest to the first intermediate server in the current instruction service area is established;
And when the number of the third intermediate servers in the associated instruction service area is more than one, acquiring the third intermediate server closest to the first intermediate server, and establishing a second mapping relation between the first intermediate server and the third intermediate server closest to the first intermediate server in the current instruction service area.
4. The automatic ticketing anti-blocking method based on batch data request according to claim 2, wherein the method is characterized in that the first intermediate server receives the first ticketing request command sent by the mobile ticketing terminal in real time, and dynamically selects the corresponding intermediate server according to the number of the first ticketing request command and the second mapping relation, and obtains ticketing response information from the central server, and feeds back the ticketing response information to the corresponding mobile ticketing terminal, specifically:
if the number of the first ticket request instructions received by the first intermediate server in the current instruction server area does not exceed a first threshold value, ticket response information is directly obtained from the central server through the first intermediate server, and is fed back to the corresponding mobile ticket buying terminal through the first intermediate server;
if the number of the received first ticket request instructions exceeds a first threshold and the number of the first ticket request instructions exceeding the first threshold does not exceed a second threshold, forwarding the first ticket request instructions exceeding the first threshold to a second intermediate server under a first mapping relation, acquiring ticket response information from a central server through the second intermediate server, and feeding back the ticket response information to a corresponding mobile ticket buying terminal;
If the number of the received first ticket request instructions exceeds a first threshold and the number of the first ticket request instructions exceeding the first threshold exceeds a second threshold, forwarding the first ticket request instructions exceeding the second threshold to a third intermediate server in a second mapping relation, acquiring ticket response information from the central server through the third intermediate server, and feeding back to the corresponding mobile ticket buying terminal.
5. The automatic ticketing anti-blocking method based on batch data request according to claim 4, wherein if the number of first ticketing request instructions received by the first intermediate server in the current instruction server area does not exceed the first threshold, the first ticketing request instructions are sequentially cached to the first information storage list in the first intermediate server according to the time sequence of the received first ticketing request instructions, and ticket response information is sequentially acquired from the central server through the first intermediate server according to the time sequence of the cache;
if the number of the received first ticket request instructions exceeds a first threshold and the number of the first ticket request instructions exceeding the first threshold does not exceed a second threshold, forwarding the first ticket request instructions exceeding the first threshold and not exceeding the second threshold to a second intermediate server in sequence according to the time sequence of the received first ticket request instructions, caching the first ticket request instructions to a second information storage list in the second intermediate server, and acquiring ticket response information from the central server through the second intermediate server in sequence according to the time sequence of the caching;
If the number of the received first ticket request instructions exceeds a first threshold and the number of the received first ticket request instructions exceeds a second threshold, forwarding the received first ticket request instructions exceeding the second threshold to a third intermediate server in sequence according to the time sequence of the received first ticket request instructions, caching the received first ticket request instructions to a third information storage list in the third intermediate server, and acquiring ticket response information from the central server through the third intermediate server in sequence according to the time sequence of the caching.
6. The automatic ticketing anti-jamming method based on batch data request as claimed in claim 5, wherein when the first ticketing request instruction is cached in the first information storage list, the second information storage list or the third information storage list, the first ticketing request instruction at least contains unique identification information of the corresponding mobile ticketing terminal.
7. The automatic ticketing anti-jamming method based on batch data request as claimed in claim 6, wherein the unique identification information of the mobile ticketing terminal is synchronously stored in the first intermediate server, the second intermediate server and the third intermediate server after the corresponding mobile ticketing terminal completes ticketing for the first time.
8. The automatic ticketing anti-blocking method based on batch data request according to claim 7, wherein after the corresponding mobile ticketing terminal completes ticketing for the first time, historical ticketing information of the corresponding mobile ticketing terminal is counted in the first intermediate server, whether a first ticketing request instruction initiated by the corresponding mobile ticketing terminal belongs to an illegal instruction is judged through the first intermediate server, and when the first ticketing request instruction belongs to the illegal instruction, the first intermediate server shields the first ticketing request instruction of the corresponding mobile ticketing terminal if the first ticketing request instruction belongs to the illegal instruction reaches a specified number of times.
9. The automated ticketing anti-jamming method based on batch data requests of claim 8, wherein after the first intermediate server masks the first ticketing request instruction of the corresponding mobile ticketing terminal, the corresponding mobile ticketing terminal only allows the mask request to be made at the specified time node.
10. The automated ticketing anti-jamming method based on batch data requests as recited in claim 9, wherein the specified time node is: starting from a set first time node, in a later first time period, if the number of first ticket business request instructions received by a first intermediate server does not exceed a first threshold value, taking the ending time of the first time period as a set time node;
Or after the number of the first ticket request instructions received by the first intermediate server exceeds a first threshold, acquiring a second time node when the first ticket request instructions are reduced to be below the first threshold, and in a second time period, if the number of the first ticket request instructions received by the first intermediate server does not exceed the first threshold, taking the ending time of the second time period as a specified time node;
the second period of time is greater than the first period of time.
CN202410726006.0A 2024-06-06 Automatic ticketing anti-blocking system and method based on batch data request Pending CN118301156A (en)

Publications (1)

Publication Number Publication Date
CN118301156A true CN118301156A (en) 2024-07-05

Family

ID=

Similar Documents

Publication Publication Date Title
CN109257293B (en) Speed limiting method and device for network congestion and gateway server
CN102769549B (en) The method and apparatus of network security monitoring
CN103716343B (en) Distributed service request processing method and system based on data cache synchronization
US7222088B2 (en) Service system
CN106937136B (en) Data delay method and system based on statistical information of network live broadcast room
CN110336848B (en) Scheduling method, scheduling system and scheduling equipment for access request
CN104348798B (en) A kind of method, apparatus, dispatch server and system for distributing network
US9003046B2 (en) Network access method, terminal device, server, and communication system
US20020078214A1 (en) Method and system for controlling a load on a computer
DE10297645T5 (en) Method and device for load sharing and data distribution in servers
CN106874267A (en) A kind of method that asynchronous implement invoice is uploaded in real time
CN109391669B (en) Service management method, device and storage medium
EP2439881B1 (en) Cluster system and request message distribution method for processing multi-node transaction
CN109660869A (en) Barrage message screening method, storage medium, equipment and the system of multiterminal cooperation
CN111147468A (en) User access method, device, electronic equipment and storage medium
CN118301156A (en) Automatic ticketing anti-blocking system and method based on batch data request
CN101729310A (en) Method and system for realizing business monitor and information acquisition equipment
CN107770203B (en) Service request forwarding method, device and system
CN101938383A (en) On-line monitoring method and system of user account with multiple services as well as monitoring service system
CN116095013B (en) Service request current limiting method, device and storage medium
CN114584519B (en) Message middleware and current limiting method thereof
CN110582090A (en) CDN scheduling method, scheduling system and MEC network element
CN107231387A (en) A kind of information interacting method for mobile client
US10616109B1 (en) System and method for web service atomic transaction (WS-AT) affinity routing
CN102811154B (en) Resource acquisition method and network server system

Legal Events

Date Code Title Description
PB01 Publication