Distributed bidding time control method, device and system
The distributed bidding time control method solves the problem of inaccurate bidding time in the bidding system, and ensures the reliability and accuracy of bidding transactions through scheduled tasks and time synchronization.
Patent Information
- Application Number
- CN202010702707.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-07-21
- Publication Date
- 2024-10-22
- Estimated Expiration
- 2040-07-21
AI Technical Summary
In the intermediary service market, the increase in online bidding projects by multiple intermediaries has led to a sharp increase in the number of visits to the bidding system within the same time period, resulting in inaccurate bidding time, misleading intermediaries about the quotation time, and thus affecting the reliability of bidding transactions.
Through the distributed bidding time control method, the start and end time of the bidding project is obtained, the scheduled task is started, and prompt information is sent to the bidding system application when the bidding starts, and the remaining time of the countdown task is synchronized in real time to ensure that all participants have the same time to determine whether to continue executing scheduled tasks to ensure the accuracy of bidding data.
It achieves the reliability of the bidding transaction process, eliminates time differences, ensures that intermediaries can accurately participate in bidding, and improves the accuracy and reliability of bidding transactions.
Smart Images

Figure CN111861665B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of Internet technology, and in particular to a distributed bidding time control method, device and system. Background Art
[0002] With the prosperity of the intermediary service market and the improvement of the informatization level of intermediary service business selection, the number of projects online bidding by multiple intermediary institutions through online trading platforms has increased dramatically, resulting in a sharp increase in the number of visits to the bidding system in the same time period. It is impossible to guarantee the precise bidding time of multiple real-time bidding projects on the trading platform in the same time period, and each round of bidding process only lasts a few minutes, with hundreds of users participating in the bidding at the same time. In addition, due to the influence of the network, the countdown time of each server may be different, and it may even mislead the intermediary institutions in their grasp of the bidding time.
[0003] Since the countdown times for bids seen by various intermediaries participating in the bidding are different, the intermediaries may miss the opportunity to bid online, resulting in inaccurate bidding data and, in turn, unreliable bidding transaction process. Summary of the invention
[0004] The present invention provides a distributed bidding time control method, device and system, which can improve the reliability of the bidding transaction process.
[0005] In a first aspect, an embodiment of the present invention provides a distributed bidding time control method, including:
[0006] Acquire bidding time information for at least one bidding item from a bidding system application end, wherein the bidding time information includes a bidding start time and a bidding end time;
[0007] For each bidding item, the following shall be performed:
[0008] S1: When the bidding start time corresponding to the bidding item is reached, start a scheduled task, wherein the start time of the scheduled task is the bidding start time corresponding to the bidding item, and the end time of the scheduled task is the bidding end time corresponding to the bidding item;
[0009] S2: Sending bidding start prompt information to the bidding system application end;
[0010] S3: After a round of bidding cycle ends, determine whether the bidding end time of the bidding item has been reached. If yes, execute S4; otherwise, execute S5;
[0011] S4: End the scheduled task and send the bidding result to the bidding system application end, wherein the bidding result is obtained according to the bidding data obtained by the bidding system application end in the executed scheduled task;
[0012] S5: judging whether it is necessary to continue to execute the scheduled task according to the bidding data obtained by the bidding system application terminal in the bidding cycle, if yes, executing S6, otherwise executing S4;
[0013] S6: Continue to execute the scheduled task, create a new bidding cycle, start the countdown task for this bidding cycle, send the remaining time of the countdown task to the bidding system application in real time, and execute S3-S5 for the created bidding cycle.
[0014] Optionally, before starting the scheduled task, the method further includes:
[0015] According to the pre-created central clock, a time synchronization signal is sent to the bidding system application end, so that the bidding system application end and each bidding client end connected to the bidding system application end have the same time.
[0016] Optionally, sending the remaining time of the countdown task to the bidding system application end in real time includes:
[0017] According to the central clock, the remaining time of the countdown task is sent to the bidding system application end in real time, so that the bidding system application end and each bidding client end connected to the bidding system application end have the same time.
[0018] Optionally, judging whether it is necessary to continue to execute the scheduled task according to the bidding data acquired by the bidding system application terminal in the bidding cycle includes:
[0019] Receiving bidding data acquired by the bidding system application in the bidding cycle;
[0020] Determining first bid data from the acquired bidding data, wherein the first bid data is the lowest bid data corresponding to the bidding cycle;
[0021] Obtaining second bid data, wherein if the current bidding cycle is not the first bidding cycle, the second bid data is the lowest bid data corresponding to the previous bidding cycle, and if the current bidding cycle is the first bidding cycle, the second bid data is the maximum value in the preset bid threshold range;
[0022] Determining whether the first quotation data is within the quotation threshold range;
[0023] If the first quotation data is outside the quotation threshold range, determining that the scheduled task does not need to be continued;
[0024] If the first quotation data is within the quotation threshold range and the first quotation data is less than the second quotation data, determining that the scheduled task needs to be continued;
[0025] If the first quotation data is within the quotation threshold range and the first quotation data is greater than or equal to the second quotation data, it is determined that there is no need to continue executing the scheduled task.
[0026] Optionally, the obtaining bidding time information for at least one bidding item from the bidding system application terminal includes:
[0027] caching bidding time information for at least one bidding item obtained from the bidding system application end;
[0028] For each of the bidding items, real-time detection is performed to determine whether the cached bidding time information corresponding to the bidding item is consistent with the bidding time information currently corresponding to the bidding item in the bidding system application end;
[0029] If the detection results are inconsistent, the cached bidding time information corresponding to the bidding item is synchronously updated according to the bidding time information currently corresponding to the bidding item in the bidding system application end.
[0030] In a second aspect, an embodiment of the present invention further provides a distributed bidding time control device, including: an acquisition module, a start module, a sending module, a first judgment module, a termination module, a second judgment module and a creation module;
[0031] The acquisition module is used to acquire bidding time information for at least one bidding item from the bidding system application end, wherein the bidding time information includes a bidding start time and a bidding end time;
[0032] The starting module is used to start the scheduled task when the bidding start time corresponding to a bidding item acquired by the acquisition module is reached, wherein the start time of the scheduled task is the bidding start time corresponding to the bidding item, and the end time of the scheduled task is the bidding end time corresponding to the bidding item;
[0033] The sending module is used to send bidding start prompt information to the bidding system application end when the starting module starts the scheduled task;
[0034] The first judgment module is used to judge whether the bidding end time of the scheduled task of the bidding item started by the starting module has been reached after a bidding cycle ends;
[0035] The termination module is used to terminate the scheduled task and send the bidding result to the bidding system application end when the judgment result of the first judgment module is yes, wherein the bidding result is obtained according to the bidding data obtained by the bidding system application end in the executed scheduled task;
[0036] The second judgment module is used to judge whether it is necessary to continue to execute the scheduled task according to the bidding data obtained by the bidding system application terminal in the bidding cycle when the judgment result of the first judgment module is no;
[0037] The creation module is used to continue to execute the timed task, create a new bidding cycle, start the countdown task of the bidding cycle, send the remaining time of the countdown task to the bidding system application end in real time, and trigger the first judgment module to execute the created bidding cycle, after the end of the bidding cycle, to determine whether the bidding end time of the bidding item acquired by the acquisition module has been reached;
[0038] The termination module is further configured to terminate the scheduled task and send the bidding result to the bidding system application terminal when the judgment result of the second judgment module is no.
[0039] Optionally, the distributed bidding time control device further comprises: a central clock;
[0040] The central clock is used to send a time synchronization signal and the remaining time of the countdown task to the bidding system application end, so that the bidding system application end and each bidding client connected to the bidding system application end have the same time.
[0041] Optionally, the second judgment module includes: a receiving unit, a determining unit, an acquiring unit, a judging unit and an executing unit;
[0042] The receiving unit is used to receive the bidding data acquired by the bidding system application terminal in the bidding cycle;
[0043] The determining unit is configured to determine first bid data from the bidding data received by the receiving unit, wherein the first bid data is the lowest bid data corresponding to the bidding cycle;
[0044] The acquisition unit is used to acquire second bid data, wherein if the current bidding cycle is not the first bidding cycle, the second bid data is the lowest bid data corresponding to the previous bidding cycle, and if the current bidding cycle is the first bidding cycle, the second bid data is the maximum value in the preset bid threshold range;
[0045] The judging unit is configured to judge whether the first quotation data determined by the determining unit is within the quotation threshold range;
[0046] The execution unit is used to determine that it is not necessary to continue to execute the scheduled task when the judgment result of the judgment unit is no;
[0047] The execution unit is further configured to determine that the scheduled task needs to be continued to be executed when the judgment result of the judgment unit is yes and the first quotation data is less than the second quotation data obtained by the obtaining unit;
[0048] The execution unit is further configured to determine that the scheduled task does not need to be continued to be executed if the judgment result of the judgment unit is yes and the first quotation data is greater than or equal to the second quotation data obtained by the acquisition unit.
[0049] Optionally, the acquisition module includes: a cache unit, a detection unit and an update unit;
[0050] The cache unit is used to cache the bidding time information for at least one bidding item obtained from the bidding system application end;
[0051] The detection unit is used to detect in real time, for each of the bidding items, whether the bidding time information corresponding to the bidding item cached by the cache unit is consistent with the bidding time information currently corresponding to the bidding item in the bidding system application end;
[0052] The updating unit is used to synchronously update the cached bidding time information corresponding to the bidding item according to the bidding time information currently corresponding to the bidding item in the bidding system application end when the detection results of the detection unit are inconsistent.
[0053] In a third aspect, an embodiment of the present invention further provides a distributed bidding time control system, including: a bidding system application end, a bidding client, and a distributed bidding time control device provided by the second aspect or any possible implementation of the second aspect;
[0054] The bidding system application end is used to provide bidding time information of at least one bidding item to the distributed bidding time control device, receive bidding start prompt information and bidding results from the distributed bidding time control device, and obtain bidding data of each bidding client connected to it.
[0055] The distributed bidding time control method, device and system provided by the embodiments of the present invention obtain bidding time information including bidding start and end time for at least one bidding item from the bidding system application end, and for each of the bidding items, execute the following: when the bidding start time of the bidding item is reached, start the timer task, and send bidding start prompt information to the bidding system application end; after a bidding cycle ends, judge whether the bidding end time of the bidding item has been reached; if the bidding end time has been reached, end the timer task and send the bidding result to the bidding system application end; if the bidding end time has not been reached, judge whether to continue to execute the timer task according to the bidding data obtained in the bidding cycle; if the timer task is to be continued, create a new bidding cycle, start the countdown task of the round, and send the remaining time of the countdown task to the bidding system application end in real time; after a bidding cycle ends, repeat the above judgment action. It can be seen that when starting a scheduled task, a bidding start prompt message is sent to the bidding system application end, and when starting a countdown task, the remaining time of the countdown task is sent to the bidding system application end in real time, thereby realizing time synchronization between the bidding system application end and each bidding client connected to it, eliminating time differences, and thus ensuring the accuracy of the bidding data, thereby improving the reliability of the bidding transaction process. BRIEF DESCRIPTION OF THE DRAWINGS
[0056] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0057] Figure 1 is a flow chart of a distributed bidding time control method provided by an embodiment of the present invention;
[0058] Figure 2 It is a schematic diagram of a device where a distributed bidding time control device is provided in one embodiment of the present invention;
[0059] Figure 3 is a schematic diagram of a distributed bidding time control device provided by an embodiment of the present invention;
[0060] Figure 4 is a schematic diagram of another distributed bidding time control device provided by an embodiment of the present invention;
[0061] Figure 5 is a schematic diagram of another distributed bidding time control device provided by an embodiment of the present invention;
[0062] Figure 6 is a schematic diagram of a distributed bidding time control system provided by an embodiment of the present invention;
[0063] Figure 7 It is a flow chart of another distributed bidding time control method provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0064] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments in the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.
[0065] like Figure 1 As shown, an embodiment of the present invention provides a distributed bidding time control method, which may include the following steps:
[0066] Step 101: Obtain bidding time information for at least one bidding item from a bidding system application end, wherein the bidding time information includes a bidding start time and a bidding end time;
[0067] For each bidding project, the following steps are implemented:
[0068] Step 102: When the bidding start time corresponding to the bidding item is reached, start the scheduled task, wherein the start time of the scheduled task is the bidding start time corresponding to the bidding item, and the end time of the scheduled task is the bidding end time corresponding to the bidding item;
[0069] Step 103: Send bidding start prompt information to the bidding system application end;
[0070] Step 104: After a round of bidding cycle ends, determine whether the bidding end time of the bidding item has been reached. If yes, execute step 105; otherwise, execute step 106;
[0071] Step 105: End the scheduled task and send the bidding result to the bidding system application end, wherein the bidding result is obtained according to the bidding data obtained by the bidding system application end in the executed scheduled task;
[0072] Step 106: judging whether it is necessary to continue to execute the scheduled task according to the bidding data obtained by the bidding system application in the current bidding cycle, if yes, executing step 107, otherwise executing step 105;
[0073] Step 107: Continue to execute the scheduled task, create a new bidding cycle, start the countdown task for this bidding cycle, send the remaining time of the countdown task to the bidding system application in real time, and execute steps 104-106 for the created bidding cycle.
[0074] The distributed bidding time control method provided by the embodiment of the present invention obtains bidding time information including bidding start and end time for at least one bidding item from a bidding system application end, and executes for each of the bidding items: when the bidding start time of the bidding item is reached, starting the timer task, and sending bidding start prompt information to the bidding system application end; after a bidding cycle ends, judging whether the bidding end time of the bidding item has been reached; if the bidding end time has been reached, ending the timer task, and sending the bidding result to the bidding system application end; if the bidding end time has not been reached, judging whether to continue to execute the timer task according to the bidding data obtained in the bidding cycle; if the timer task is to be continued, creating a new bidding cycle, starting the countdown task of the round, and sending the remaining time of the countdown task to the bidding system application end in real time; after a bidding cycle ends, repeating the above judgment action. It can be seen that when starting a scheduled task, a bidding start prompt message is sent to the bidding system application end, and when starting a countdown task, the remaining time of the countdown task is sent to the bidding system application end in real time, thereby realizing time synchronization between the bidding system application end and each bidding client connected to it, eliminating time differences, and thus ensuring the accuracy of the bidding data, thereby improving the reliability of the bidding transaction process.
[0075] In an embodiment of the present invention, bidding time information for at least one bidding item is obtained from the bidding system application end, and the bidding start time and bidding end time of multiple bidding items can be obtained at the same time, and time control is performed for each bidding item, thereby supporting high concurrency, that is, controlling the bidding time of multiple bidding items in parallel at the same time to achieve rational use of resources.
[0076] In an embodiment of the present invention, bidding start prompt information is sent to the bidding system application end so that the bidding system application end and the user end connected to the bidding system application end can obtain accurate bidding start time. The user end starts bidding for this round when receiving the bidding start prompt information, thereby ensuring that the user end can obtain accurate bidding start time, avoiding time differences, and improving the reliability of the bidding transaction process.
[0077] In an embodiment of the present invention, the countdown task of this round of bidding cycle is started, and the remaining time of the countdown task is sent to the bidding system application end in real time, which not only realizes the time control of the bidding process, but also can send the remaining time of the countdown to the bidding system application end in real time, so that the bidding client connected thereto can receive the progress time of the bidding process in real time, so as to upload the quotation data within the correct time, avoid time error, and thus improve the reliability of the bidding transaction process.
[0078] Optionally, in Figure 1 In the distributed bidding time control method shown, step 102 sends a time synchronization signal to the bidding system application end according to the pre-created central clock before starting the timed task, so that the bidding system application end and each bidding client connected to the bidding system application end have the same time. The specific method is as follows:
[0079] According to the pre-created central clock, the bidding time of multiple bidding projects in the same time period is distributedly controlled. Before each bidding project starts its scheduled task, a time synchronization signal for each bidding project is sent to the bidding system application end to synchronize the time of the bidding system application end and each bidding client connected to it, thereby ensuring the uniqueness and consistency of the transaction time of the entire network, avoiding inconsistent countdown time due to network or user-side browser reasons, and thus ensuring the fairness of transaction data. Through this distributed control, efficient concurrent processing of each bidding project is achieved, that is, real-time online multi-round bidding for multiple projects in the same time period is achieved, thereby improving the efficiency and reliability of the bidding transaction process.
[0080] Optionally, in Figure 1 In the distributed bidding time control method shown, step 107 sends the remaining time of the countdown task to the bidding system application end in real time. According to the central clock, the remaining time of the countdown task is sent to the bidding system application end in real time, so that the bidding system application end and each bidding client connected to the bidding system application end have the same time. The specific method is as follows:
[0081] According to the pre-created central clock, the bidding time of multiple bidding items in the same period is distributedly controlled. When each bidding item starts its countdown task, the remaining time of the countdown task of each bidding item is sent to the bidding system application in real time, so that the time of the bidding system application and each bidding client connected to it is synchronized, ensuring the uniqueness and consistency of the transaction time of the entire network to ensure the fairness of transaction data. Through this distributed control, efficient concurrent processing of each bidding item is achieved to ensure that the time control task of each bidding item in each round will be accurately executed without being blocked, ensuring the effective control of each round of bidding time, thereby improving the efficiency and reliability of the bidding transaction process.
[0082] Optionally, in Figure 1 In the distributed bidding time control method shown, step 106 determines whether it is necessary to continue to execute the scheduled task according to the bidding data obtained by the bidding system application end in the bidding cycle. First, the bidding data obtained by the bidding system application end in the bidding cycle is received, and the first quotation data is determined from the obtained bidding data, wherein the first quotation data is the lowest quotation data corresponding to the bidding cycle, and the second quotation data is obtained, wherein if the bidding cycle is not the first bidding cycle, the second quotation data is the lowest quotation data corresponding to the previous bidding cycle, and if the bidding cycle is the first bidding cycle, the second quotation data is the maximum value in the preset quotation threshold range, and it is determined whether the first quotation data is within the quotation threshold range. If the first quotation data is outside the quotation threshold range, it is determined that it is not necessary to continue to execute the scheduled task. If the first quotation data is within the quotation threshold range and the first quotation data is less than the second quotation data, it is determined that it is necessary to continue to execute the scheduled task. If the first quotation data is within the quotation threshold range and the first quotation data is greater than or equal to the second quotation data, it is determined that it is not necessary to continue to execute the scheduled task. The specific method is as follows:
[0083] For each bidding item, first receive the bidding data obtained by the bidding system application for the item during this bidding cycle, and determine the lowest bid data (i.e., the first bid data) of this bidding cycle from the bidding data. If this bidding cycle is the first bidding cycle, determine the maximum value in the preset bid threshold range as the second bid data; if this bidding cycle is not the first round, obtain the lowest bid data of the previous bidding cycle, and then compare the lowest bid data of this round with the bid threshold and the second bid data respectively. If the lowest bid data of this round exceeds the bid threshold range, the scheduled task will no longer be executed; if the lowest bid data of this round is within the bid threshold range, and the lowest bid data of this round is less than the second bid data, it is determined that the scheduled task needs to be continued; if the lowest bid data of this round is within the bid threshold range, and the lowest bid data of this round is greater than or equal to the second bid data, it is determined that the scheduled task will no longer be executed.
[0084] Optionally, in Figure 1In the distributed bidding time control method shown, step 101 obtains bidding time information for at least one bidding item from the bidding system application end, first caches the bidding time information for at least one bidding item obtained from the bidding system application end, and for each bidding item, detects in real time whether the cached bidding time information corresponding to the bidding item is consistent with the bidding time information currently corresponding to the bidding item in the bidding system application end, and if the detection results are inconsistent, then the cached bidding time information corresponding to the bidding item is synchronously updated according to the bidding time information currently corresponding to the bidding item in the bidding system application end. The specific method is as follows:
[0085] For all bidding items, first cache the bidding time information of each bidding item obtained from the bidding system application end, and check in real time whether the cached bidding time information corresponding to each bidding item is consistent with the bidding time information currently corresponding to each bidding item in the bidding system application end. If the detection results are inconsistent, the bidding time information currently corresponding to each bidding item in the bidding system application end shall prevail, and the cached bidding time information corresponding to each bidding item shall be synchronously updated to keep it consistent with the bidding time information of the bidding system application end in real time.
[0086] In an embodiment of the present invention, the cached bidding time information corresponding to the bidding item can be synchronously updated in real time according to the bidding time information currently corresponding to the bidding item in the bidding system application end, so as to avoid erroneous bidding information from misleading bidding users. At the same time, the database that caches all bidding time information ensures the consistency of the distributed time control through the database lock, and effectively controls the concurrent processing tasks to ensure that the same task can only be executed once at the same time, thereby improving the efficiency and reliability of the bidding transaction process.
[0087] like Figure 2 , Figure 3 As shown, the embodiment of the present invention provides a distributed bidding time control device. The device embodiment can be implemented by software, or by hardware or a combination of software and hardware. From the hardware level, Figure 2 As shown, it is a hardware structure diagram of the device where the distributed bidding time control device provided by the embodiment of the present invention is located, except Figure 2 In addition to the processor, memory, network interface, and non-volatile memory shown in the figure, the device in the embodiment may also include other hardware, such as a forwarding chip responsible for processing messages, etc. Taking software implementation as an example, Figure 3As shown, as a device in a logical sense, the CPU of the device in which it is located reads the corresponding computer program instructions in the non-volatile memory into the memory and runs them. The distributed bidding time control device provided in this embodiment includes: an acquisition module 301, a start module 302, a sending module 303, a first judgment module 304, a termination module 305, a second judgment module 306 and a creation module 307;
[0088] An acquisition module 301 is used to acquire bidding time information for at least one bidding item from a bidding system application end, wherein the bidding time information includes a bidding start time and a bidding end time;
[0089] The starting module 302 is used to start the scheduled task when the bidding start time corresponding to a bidding item acquired by the acquisition module 301 is reached, wherein the start time of the scheduled task is the bidding start time corresponding to the bidding item, and the end time of the scheduled task is the bidding end time corresponding to the bidding item;
[0090] The sending module 303 is used to send a bidding start prompt message to the bidding system application end when the starting module 302 starts the scheduled task;
[0091] The first judgment module 304 is used to judge whether the bidding end time of the bidding project scheduled task started by the starting module has been reached after a bidding cycle ends;
[0092] The termination module 305 is used to terminate the scheduled task and send the bidding result to the bidding system application end when the judgment result of the first judgment module 304 is yes, wherein the bidding result is obtained according to the bidding data obtained by the bidding system application end in the executed scheduled task;
[0093] The second judgment module 306 is used to judge whether it is necessary to continue to execute the scheduled task according to the bidding data obtained by the bidding system application in the current bidding cycle when the judgment result of the first judgment module 304 is no;
[0094] The creation module 307 is used to continue to execute the timed task, create a new bidding cycle, start the countdown task of the bidding cycle, send the remaining time of the countdown task to the bidding system application in real time, and trigger the first judgment module to execute the created bidding cycle after the end of the bidding cycle, and judge whether the bidding end time of the bidding item obtained by the acquisition module 301 has been reached;
[0095] The termination module 305 is further configured to terminate the scheduled task and send the bidding result to the bidding system application terminal when the judgment result of the second judgment module 306 is no.
[0096] Optionally, in Figure 3 Based on the distributed bidding time control device shown, the distributed bidding time control device may further include: a central clock 308;
[0097] The central clock 308 is used to send a time synchronization signal and the remaining time of the countdown task to the bidding system application end, so that the bidding system application end and each bidding client connected to the bidding system application end have the same time.
[0098] Optionally, in Figure 3 Based on the distributed bidding time control device shown, Figure 4 As shown, the second judgment module 306 includes: a receiving unit 3061, a determining unit 3062, an acquiring unit 3063, a judging unit 3064 and an executing unit 3065;
[0099] The receiving unit 3061 is used to receive the bidding data acquired by the bidding system application terminal in the current bidding cycle;
[0100] The determining unit 3062 is configured to determine first bid data from the bidding data received by the receiving unit 3061, wherein the first bid data is the lowest bid data corresponding to the bidding cycle of this round;
[0101] The acquiring unit 3063 is configured to acquire second bid data, wherein if the current bidding cycle is not the first bidding cycle, the second bid data is the lowest bid data corresponding to the previous bidding cycle; if the current bidding cycle is the first bidding cycle, the second bid data is the maximum value in the preset bid threshold range;
[0102] A judging unit 3064, configured to judge whether the first quotation data determined by the determining unit 3062 is within a quotation threshold range;
[0103] The execution unit 3065 is used to determine that the scheduled task does not need to be continued when the judgment result of the judgment unit 3064 is no;
[0104] The execution unit 3065 is further configured to determine that the scheduled task needs to be continued to be executed when the judgment result of the judgment unit 3064 is yes and the first quotation data is less than the second quotation data obtained by the obtaining unit;
[0105] The execution unit 3065 is further configured to determine that it is not necessary to continue executing the scheduled task if the judgment result of the judgment unit 3064 is yes and the first quotation data is greater than or equal to the second quotation data obtained by the obtaining unit.
[0106] Optionally, in Figure 3 Based on the distributed bidding time control device shown, Figure 5As shown, the acquisition module 301 includes: a cache unit 3011, a detection unit 3012 and an update unit 3013;
[0107] The cache unit 3011 is used to cache the bidding time information for at least one bidding item obtained from the bidding system application end;
[0108] The detection unit 3012 is used to detect in real time, for each bidding item, whether the bidding time information corresponding to the bidding item cached by the cache unit 3011 is consistent with the bidding time information currently corresponding to the bidding item in the bidding system application end;
[0109] The updating unit 3013 is used to synchronously update the cached bidding time information corresponding to the bidding item according to the bidding time information currently corresponding to the bidding item in the bidding system application end when the detection result of the detection unit 3012 is inconsistent.
[0110] It is to be understood that the structure illustrated in the embodiment of the present invention does not constitute a specific limitation on the distributed bidding time control device. In other embodiments of the present invention, the distributed bidding time control device may include more or fewer components than shown in the figure, or combine some components, or split some components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.
[0111] The information interaction, execution process and other contents between the units in the above-mentioned device are based on the same concept as the embodiment of the method of the present invention. For specific contents, please refer to the description in the embodiment of the method of the present invention, and no further description is given here.
[0112] like Figure 6 As shown, an embodiment of the present invention provides a distributed bidding time control system, including: a bidding system application end 601, a bidding client 602 and a distributed bidding time control device 603 provided in any of the above embodiments;
[0113] The bidding system application end 601 is used to provide bidding time information of at least one bidding item to the distributed bidding time control device 603, and receive bidding start prompt information and bidding results from the distributed bidding time control device 603, and obtain bidding data of each bidding client 602 connected to it.
[0114] The distributed bidding time control system provided by the embodiment of the present invention includes a bidding system application end 601, a bidding client 602 and a distributed bidding time control device 603. The distributed bidding time control device 603 obtains the bidding start and end time of each bidding item through the bidding system application end 601, and when the bidding start time corresponding to each item is reached, the timing task is started, and the bidding start prompt information is sent to the bidding system application end 601. The bidding client end 602 starts to bid. When the timing task ends, the bidding result is sent to the bidding system application end 601, and according to the bidding start time and the real-time bidding data information in the subsequent bidding process, it is determined whether to create a new round of bidding cycle to perform the countdown task. It can be seen that the bidding process is automatically completed by the various modules included in the distributed bidding time control system, which controls the task execution and completion of each bidding project, ensures the reliable operation of each round of timing tasks, and realizes precise control of the bidding countdown time. The user end only needs to quote according to the synchronized time information sent by the bidding system application end, eliminating the user's concerns about time differences, and thus can ensure the accuracy of the bidding data within the precise bidding time, thereby improving the reliability of the bidding transaction process.
[0115] In an embodiment of the present invention, the distributed bidding time control device can also expand elastically, and dynamically increase or decrease the server sharing processing tasks according to the busy situation of the bidding, that is, after the quotation data information with high concurrency is uploaded in the same time, the distributed bidding time control device promptly determines whether each round of quotation data information needs to execute scheduled tasks and countdown tasks, that is, controls the total bidding time and the countdown tasks for each round, and processes a large number of tasks in slices, so that the device can be dynamically expanded to a cluster mode, and improves the task processing capability and speed when processing large amounts of data, thereby supporting business scenarios of multiple bidding projects and high-concurrency user terminals online multiple rounds of intensive bidding in the same time period, ensuring the effectiveness of each bidding project's bidding time control in each round, ensuring the time effectiveness of the user terminal's quotation data generation, and ensuring the standardization and fairness of the bidding process.
[0116] Combine the following Figure 6 The distributed bidding time control system shown in the figure further describes the distributed bidding time control method provided by the embodiment of the present invention in detail. Figure 7 As shown, the method comprises the following steps:
[0117] Step 701: The distributed bidding time control device obtains bidding time information for at least one bidding item from a bidding system application end.
[0118] In an embodiment of the present invention, a distributed bidding time control device obtains bidding time information for at least one bidding item from a bidding system application end, wherein the bidding time information includes a bidding start time and a bidding end time. First, the bidding time information for at least one bidding item obtained from the bidding system application end is cached. For each bidding item, it is detected in real time whether the cached bidding time information corresponding to the bidding item is consistent with the bidding time information currently corresponding to the bidding item in the bidding system application end. When the detection result is inconsistent, the cached bidding time information corresponding to the bidding item is synchronously updated according to the bidding time information currently corresponding to the bidding item in the bidding system application end to ensure the accuracy of the bidding time information corresponding to the bidding item obtained by the distributed bidding time control device.
[0119] For each bidding project, the following steps are implemented:
[0120] Step 702: When the bidding start time corresponding to the bidding item is reached, the distributed bidding time control device starts the timing task.
[0121] In an embodiment of the present invention, when the bidding start time corresponding to the bidding item is reached, the distributed bidding time control device starts a timing task, and the start and end times of the timing task are the bidding start time and bidding end time corresponding to the bidding item respectively.
[0122] Step 703: The distributed bidding time control device sends a bidding start prompt message to the bidding system application end.
[0123] In an embodiment of the present invention, the distributed bidding time control device sends a time synchronization signal to the bidding system application end when starting a scheduled task based on a pre-created central clock, so that the time for starting the scheduled task obtained by the bidding system application end and each bidding client connected to the bidding system application end is consistent.
[0124] Step 704: After a round of bidding cycle ends, the distributed bidding time control device determines whether the bidding end time of the bidding item has been reached. If so, execute step 705; otherwise, execute step 706.
[0125] In the embodiment of the present invention, after a round of bidding cycle ends, the distributed bidding time control device determines whether the bidding end time corresponding to the bidding item has been reached according to the current time.
[0126] Step 705: The distributed bidding time control device ends the timing task and sends the bidding result to the bidding system application end.
[0127] In the embodiment of the present invention, the distributed bidding time control device ends the scheduled task and sends to the bidding system application end the bidding result determined according to the bidding data obtained by the bidding system application end in the executed scheduled task.
[0128] Step 706: Based on the bidding data acquired by the bidding system application in this round of bidding cycle, the distributed bidding time control device determines whether it is necessary to continue to execute the scheduled task. If yes, execute step 707; otherwise, execute step 705.
[0129] In the embodiment of the present invention, according to the bidding data obtained by the bidding system application end in the bidding cycle, the distributed bidding time control device determines whether it is necessary to continue to execute the scheduled task, first receives the bidding data obtained by the bidding system application end in the bidding cycle, determines the lowest bid data (i.e., the first bid data) corresponding to the bidding cycle from the obtained bidding data, and then obtains the second bid data, wherein, if the bidding cycle is not the first bidding cycle, the second bid data is the lowest bid data corresponding to the previous bidding cycle, and if the bidding cycle is the first bidding cycle, the second bid data is the preset bid The maximum value in the threshold range, and then determine whether the first quotation data is within the quotation threshold range. If the first quotation data is outside the quotation threshold range, it is determined that there is no need to continue to execute the scheduled task, the scheduled task is terminated, and the bidding result is sent to the bidding system application end; if the first quotation data is within the quotation threshold range, and the first quotation data is less than the second quotation data, it is determined that the scheduled task needs to be continued; if the first quotation data is within the quotation threshold range, and the first quotation data is greater than or equal to the second quotation data, it is determined that there is no need to continue to execute the scheduled task, the scheduled task is terminated, and the bidding result is sent to the bidding system application end.
[0130] Step 707: The distributed bidding time control device continues to execute the timing task, creates a new bidding cycle, starts the countdown task for this bidding cycle, sends the remaining time of the countdown task to the bidding system application in real time, and executes steps 704-706 for the created bidding cycle.
[0131] In an embodiment of the present invention, the distributed bidding time control device continues to execute the timing task, creates a new round of bidding cycle, starts the countdown task of this round of bidding cycle, and sends the remaining time of the countdown task to the bidding system application end in real time through the central clock, so that the bidding system application end and each bidding client connected to the bidding system application end have the same time, and for the created bidding cycle, after the end of this round of bidding cycle, it is determined whether the bidding end time of the bidding item has been reached.
[0132] An embodiment of the present invention further provides a storage controller, comprising: a processor, a memory and a bus;
[0133] The memory is used to store execution instructions, and the processor is connected to the memory through the bus. When the storage controller is running, the processor executes the execution instructions stored in the memory to enable the storage controller to execute the distributed bidding time control method provided in the above embodiments.
[0134] The present invention also provides a computer-readable medium storing instructions for causing a machine to execute the distributed bidding time control method as described herein. Specifically, a system or device equipped with a storage medium can be provided, on which a software program code for implementing the functions of any of the above embodiments is stored, and a computer (or CPU or MPU) of the system or device reads and executes the program code stored in the storage medium.
[0135] In this case, the program code itself read from the storage medium can realize the function of any one of the above-mentioned embodiments, and thus the program code and the storage medium storing the program code constitute a part of the present invention.
[0136] The storage medium embodiments for providing the program code include a floppy disk, a hard disk, a magneto-optical disk, an optical disk (such as CD-ROM, CD-R, CD-RW, DVD-ROM, DVD-RAM, DVD-RW, DVD+RW), a magnetic tape, a non-volatile memory card, and a ROM. Alternatively, the program code can be downloaded from a server computer by a communication network.
[0137] In addition, it should be clear that the functions of any of the above embodiments can be implemented not only by executing the program code read by the computer, but also by enabling an operating system operating on the computer to complete part or all of the actual operations based on instructions from the program code.
[0138] In addition, it can be understood that the program code read from the storage medium is written to a memory provided in an expansion board inserted into the computer or to a memory provided in an expansion module connected to the computer, and then based on the instructions of the program code, a CPU installed on the expansion board or expansion module is enabled to perform part or all of the actual operations, thereby realizing the functions of any of the above-mentioned embodiments.
[0139] In summary, the distributed bidding time control method, device and system provided by each of the present invention have at least the following beneficial effects:
[0140] 1. In an embodiment of the present invention, the method obtains bidding time information including bidding start and end time for at least one bidding item from a bidding system application end, and for each of the bidding items, executes: when the bidding start time of the bidding item is reached, start the timer task, and send bidding start prompt information to the bidding system application end; after a bidding cycle ends, determine whether the bidding end time of the bidding item has been reached; if the bidding end time has been reached, end the timer task, and send the bidding result to the bidding system application end; if the bidding end time has not been reached, determine whether to continue to execute the timer task according to the bidding data obtained in the bidding cycle; if the timer task is to be continued, create a new bidding cycle, start the countdown task of the round, and send the remaining time of the countdown task to the bidding system application end in real time; after a bidding cycle ends, repeat the above judgment action. It can be seen that when starting a scheduled task, a bidding start prompt message is sent to the bidding system application end, and when starting a countdown task, the remaining time of the countdown task is sent to the bidding system application end in real time, thereby realizing time synchronization between the bidding system application end and each bidding client connected to it, eliminating time differences, and thus ensuring the accuracy of the bidding data, thereby improving the reliability of the bidding transaction process.
[0141] 2. In an embodiment of the present invention, the bidding time information for at least one bidding item is obtained from the bidding system application end, and the bidding start time and bidding end time of multiple bidding items can be obtained at the same time, and time control is performed for each bidding item, thereby supporting high concurrency, that is, controlling the bidding time of multiple bidding items in parallel at the same time to achieve rational use of resources.
[0142] 3. In the embodiment of the present invention, a bidding start prompt message is sent to the bidding system application end so that the bidding system application end and the user end connected to the bidding system application end can obtain the bidding start time. The user end starts to bid for this round when receiving the bidding start prompt message, thereby ensuring that the user end can obtain the accurate bidding start time, avoiding time differences, and improving the reliability of the bidding transaction process.
[0143] 4. In the embodiment of the present invention, the bidding time of multiple bidding items in the same time period is distributedly controlled according to the pre-created central clock. Before each bidding item starts its scheduled task, a time synchronization signal for each bidding item is sent to the bidding system application end respectively, so as to synchronize the time of the bidding system application end and each bidding client connected thereto, thereby ensuring the uniqueness and consistency of the transaction time of the entire network, avoiding inconsistent countdown time due to network or user-side browser reasons, and further ensuring the fairness of transaction data. Through the distributed control, efficient concurrent processing of each bidding item is achieved, that is, real-time online multi-round bidding for multiple items in the same time period is achieved, thereby improving the efficiency and reliability of the bidding transaction process.
[0144] 5. In the embodiment of the present invention, the cached bidding time information corresponding to the bidding item can be synchronously updated in real time according to the bidding time information currently corresponding to the bidding item in the bidding system application end, so as to avoid erroneous bidding information from misleading bidding users. At the same time, the database that caches all bidding time information ensures the consistency of the distributed time control through the database lock, and effectively controls the concurrent processing tasks to ensure that the same task can only be executed once at the same time, thereby improving the efficiency and reliability of the bidding transaction process.
[0145] 6. In an embodiment of the present invention, the distributed bidding time control system includes a bidding system application end, a bidding client end and a distributed bidding time control device. The distributed bidding time control device obtains the bidding start and end time of each bidding project through the bidding system application end, and when the bidding start time corresponding to each project is reached, the timing task is started, and the bidding start prompt information is sent to the bidding system application end, and the user end starts to bid. When the timing task ends, the bidding result is sent to the bidding system application end, and according to the bidding start time and the real-time quotation data information in the subsequent bidding process, it is determined whether to create a new round of bidding cycle to perform the countdown task. It can be seen that the bidding process is automatically completed by each module included in the distributed bidding time control system, and the task execution and end of each bidding project are controlled to ensure the reliable operation of each round of timing tasks, and the precise control of the bidding countdown time is realized. The user end only needs to bid according to the synchronous time information sent by the bidding system application end, eliminating the user's concerns about time differences, and then can ensure the accuracy of the bidding data within the precise bidding time, thereby improving the reliability of the bidding transaction process.
[0146] It should be noted that, in this article, relational terms such as first and second are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply that there is any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that the process, method, article or equipment including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or equipment. In the absence of more restrictions, the elements limited by the sentence "comprise a..." do not exclude the existence of other identical factors in the process, method, article or equipment including the elements.
[0147] A person of ordinary skill in the art can understand that all or part of the steps of implementing the above method embodiments can be completed by hardware related to program instructions, and the aforementioned program can be stored in a computer-readable storage medium. When the program is executed, it executes the steps of the above method embodiments; and the aforementioned storage medium includes: ROM, RAM, magnetic disk or optical disk, etc., various media that can store program codes.
[0148] Finally, it should be noted that the above is only a preferred embodiment of the present invention, which is only used to illustrate the technical solution of the present invention, and is not used to limit the protection scope of the present invention. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention are included in the protection scope of the present invention.
Claims
1. Distributed bidding time control method, It is characterized in that include: Acquire bidding time information for at least one bidding item from a bidding system application end, wherein the bidding time information includes a bidding start time and a bidding end time; For each bidding item, the following shall be performed: S1: When the bidding start time corresponding to the bidding item is reached, start a scheduled task, wherein the start time of the scheduled task is the bidding start time corresponding to the bidding item, and the end time of the scheduled task is the bidding end time corresponding to the bidding item; S2: Sending bidding start prompt information to the bidding system application end; S3: After a round of bidding cycle ends, determine whether the bidding end time of the bidding item has been reached. If yes, execute S4; otherwise, execute S5; S4: End the scheduled task and send the bidding result to the bidding system application end, wherein the bidding result is obtained according to the bidding data obtained by the bidding system application end in the executed scheduled task; S5: judging whether it is necessary to continue to execute the scheduled task according to the bidding data obtained by the bidding system application terminal in the bidding cycle, if yes, executing S6, otherwise executing S4; S6: Continue to execute the scheduled task, create a new bidding cycle, start the countdown task for this bidding cycle, send the remaining time of the countdown task to the bidding system application in real time, and execute S3-S5 for the created bidding cycle; Before starting the scheduled task, the method further includes: Sending a time synchronization signal to the bidding system application terminal according to a pre-created central clock, so that the bidding system application terminal and each bidding client terminal connected to the bidding system application terminal have the same time; The sending the remaining time of the countdown task to the bidding system application end in real time includes: According to the central clock, the remaining time of the countdown task is sent to the bidding system application end in real time, so that the bidding system application end and each bidding client connected to the bidding system application end have the same time; The determining whether it is necessary to continue to execute the scheduled task according to the bidding data acquired by the bidding system application terminal in the bidding cycle includes: Receiving bidding data acquired by the bidding system application in the bidding cycle; Determining first bid data from the acquired bidding data, wherein the first bid data is the lowest bid data corresponding to the bidding cycle; Obtaining second bid data, wherein if the current bidding cycle is not the first bidding cycle, the second bid data is the lowest bid data corresponding to the previous bidding cycle, and if the current bidding cycle is the first bidding cycle, the second bid data is the maximum value in the preset bid threshold range; Determining whether the first quotation data is within the quotation threshold range; If the first quotation data is outside the quotation threshold range, determining that the scheduled task does not need to be continued; If the first quotation data is within the quotation threshold range and the first quotation data is less than the second quotation data, determining that the scheduled task needs to be continued; If the first quotation data is within the quotation threshold range, and the first quotation data is greater than or equal to the second quotation data, determining that the scheduled task does not need to be continued; The obtaining of bidding time information for at least one bidding item from the bidding system application end includes: caching bidding time information for at least one bidding item obtained from the bidding system application end; For each of the bidding items, real-time detection is performed to determine whether the cached bidding time information corresponding to the bidding item is consistent with the bidding time information currently corresponding to the bidding item in the bidding system application end; If the detection results are inconsistent, the cached bidding time information corresponding to the bidding item is synchronously updated according to the bidding time information currently corresponding to the bidding item in the bidding system application end.
2. Distributed bidding time control device, It is characterized in that include: An acquisition module, a start module, a sending module, a first judgment module, a termination module, a second judgment module and a creation module; The acquisition module is used to acquire bidding time information for at least one bidding item from the bidding system application end, wherein the bidding time information includes a bidding start time and a bidding end time; The starting module is used to start the scheduled task when the bidding start time corresponding to a bidding item acquired by the acquisition module is reached, wherein the start time of the scheduled task is the bidding start time corresponding to the bidding item, and the end time of the scheduled task is the bidding end time corresponding to the bidding item; The sending module is used to send bidding start prompt information to the bidding system application end when the starting module starts the scheduled task; The first judgment module is used to judge whether, after a round of bidding cycle ends, the bidding end time of the bidding item acquired by the acquisition module for the timed task started by the start module has been reached; The termination module is used to terminate the scheduled task and send the bidding result to the bidding system application end when the judgment result of the first judgment module is yes, wherein the bidding result is obtained according to the bidding data obtained by the bidding system application end in the executed scheduled task; The second judgment module is used to judge whether it is necessary to continue to execute the scheduled task according to the bidding data obtained by the bidding system application terminal in the bidding cycle when the judgment result of the first judgment module is no; The creation module is used to continue to execute the timed task, create a new bidding cycle, start the countdown task of the bidding cycle, send the remaining time of the countdown task to the bidding system application end in real time, and trigger the first judgment module to execute the created bidding cycle, after the end of the bidding cycle, to determine whether the bidding end time of the bidding item acquired by the acquisition module has been reached; The termination module is further configured to terminate the scheduled task and send the bidding result to the bidding system application terminal when the judgment result of the second judgment module is negative; Further comprising: a central clock; The central clock is used to send a time synchronization signal and the remaining time of the countdown task to the bidding system application end, so that the bidding system application end and each bidding client connected to the bidding system application end have the same time; The second judgment module includes: a receiving unit, a determining unit, an acquiring unit, a judging unit and an executing unit; The receiving unit is used to receive the bidding data acquired by the bidding system application terminal during the bidding cycle; The determining unit is configured to determine first bid data from the bidding data received by the receiving unit, wherein the first bid data is the lowest bid data corresponding to the bidding cycle; The acquisition unit is used to acquire second bid data, wherein if the current bidding cycle is not the first bidding cycle, the second bid data is the lowest bid data corresponding to the previous bidding cycle, and if the current bidding cycle is the first bidding cycle, the second bid data is the maximum value in the preset bid threshold range; The judging unit is configured to judge whether the first quotation data determined by the determining unit is within the quotation threshold range; The execution unit is used to determine that it is not necessary to continue to execute the scheduled task when the judgment result of the judgment unit is no; The execution unit is further configured to determine that the scheduled task needs to be continued to be executed when the judgment result of the judgment unit is yes and the first quotation data is less than the second quotation data obtained by the obtaining unit; The execution unit is further configured to determine that it is not necessary to continue to execute the scheduled task if the judgment result of the judgment unit is yes and the first quotation data is greater than or equal to the second quotation data obtained by the obtaining unit; The acquisition module includes: a cache unit, a detection unit and an update unit; The cache unit is used to cache the bidding time information for at least one bidding item obtained from the bidding system application end; The detection unit is used to detect in real time, for each of the bidding items, whether the bidding time information corresponding to the bidding item cached by the cache unit is consistent with the bidding time information currently corresponding to the bidding item in the bidding system application end; The updating unit is used to synchronously update the cached bidding time information corresponding to the bidding item according to the bidding time information currently corresponding to the bidding item in the bidding system application end when the detection results of the detection unit are inconsistent.
3. Distributed bidding time control system, It is characterized in that include: A bidding system application terminal, a bidding client terminal and a distributed bidding time control device as claimed in claim 2; The bidding system application end is used to provide bidding time information of at least one bidding item to the distributed bidding time control device, receive bidding start prompt information and bidding results from the distributed bidding time control device, and obtain bidding data of each bidding client connected to it.
