CN112131496B - Webpage voting data processing method, device and equipment - Google Patents

Webpage voting data processing method, device and equipment Download PDF

Info

Publication number
CN112131496B
CN112131496B CN202010976529.2A CN202010976529A CN112131496B CN 112131496 B CN112131496 B CN 112131496B CN 202010976529 A CN202010976529 A CN 202010976529A CN 112131496 B CN112131496 B CN 112131496B
Authority
CN
China
Prior art keywords
voting
message queue
writing
result
database
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010976529.2A
Other languages
Chinese (zh)
Other versions
CN112131496A (en
Inventor
王东东
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Zhidemai Technology Co ltd
Original Assignee
Beijing Zhidemai Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Zhidemai Technology Co ltd filed Critical Beijing Zhidemai Technology Co ltd
Priority to CN202010976529.2A priority Critical patent/CN112131496B/en
Publication of CN112131496A publication Critical patent/CN112131496A/en
Application granted granted Critical
Publication of CN112131496B publication Critical patent/CN112131496B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/957Browsing optimisation, e.g. caching or content distillation
    • G06F16/9574Browsing optimisation, e.g. caching or content distillation of access to content, e.g. by caching
    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07CTIME OR ATTENDANCE REGISTERS; REGISTERING OR INDICATING THE WORKING OF MACHINES; GENERATING RANDOM NUMBERS; VOTING OR LOTTERY APPARATUS; ARRANGEMENTS, SYSTEMS OR APPARATUS FOR CHECKING NOT PROVIDED FOR ELSEWHERE
    • G07C13/00Voting apparatus

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • General Engineering & Computer Science (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention discloses a web page voting data processing method, which is characterized in that after a voting activity page is made from a cache, input information of users participating in voting is stored into a database through an intermediate queue and a timing consumption mode, voting results are asynchronously counted based on stored voting requests after the activity time arrives, and the processing of voting data is automatically completed through the intermediate queue and the timing consumption mode respectively in the final result calculation and result publishing stages. The invention can achieve the purpose of quick response of the system, can homogenize a large number of requests and calculation when processing high concurrence business of voting requests, greatly reduces the system load, not only ensures more friendly interactive experience and more robust system, but also effectively relieves the working pressure of operators by means of automatic timing statistics and publishing voting results.

Description

Webpage voting data processing method, device and equipment
Technical Field
The present invention relates to the field of web page data processing, and in particular, to a web page voting data processing method, device and equipment.
Background
With the rapid development of internet communities, competition among all parties in the online communities is also more and more vigorous, and various types of user voting activities become a common community user activation mode, for example, by setting a problem with topic, users are induced to perform voting stations and vigorous discussion, so that the method is one of effective means for promoting the retention of users.
On one hand, voting in a short time can lead to the rapid increase of the access amount of the system, the pressure of the system can be gradually increased, the system response is frequently slowed down, and the request of the user can not be processed in time; on the other hand, as the number of participating users increases, the final result publishing stage program processing becomes very slow, and even the situation that the result cannot be published occurs; in particular, the current voting mechanism depends on a synchronous processing mode of operation manual work, which not only causes excessive pressure of a server, but also causes the problems of increased labor cost and reduced service processing efficiency.
Disclosure of Invention
In view of the foregoing, the present invention is directed to a method, an apparatus, and a device for processing web voting data, and accordingly, a computer readable storage medium and a computer program product for solving the problems of high system pressure and low manual efficiency in a user-focused voting process are provided.
The technical scheme adopted by the invention is as follows:
in a first aspect, the present invention provides a method for processing web voting data, including:
writing voting activity configuration stored in a database in advance into a cache;
the voting activity configuration is taken out from the cache, and a voting activity webpage for showing to the user is generated;
continuously monitoring and receiving voting request data input by a user on the voting activity page;
writing the voting request data into a first message queue;
writing the voting request data in the first message queue into a database at regular time;
after reaching the preset time, extracting the voting request data from a database, and carrying out voting statistics;
writing voting statistical data into a second message queue;
extracting the voting statistical data from the second message queue at regular time, and matching with the user personal information in the voting request data to obtain a final voting result of the corresponding user;
writing the final voting result into a third message queue;
and pushing the final voting result in the third message queue to a user at fixed time.
In at least one possible implementation manner, writing the voting statistics into a second message queue refers to writing the voting statistics into a database, wherein the second message queue refers to a message queue abstracted from the database; and/or
Writing the final voting result into a third message queue means writing the voting result into a database, wherein the third message queue means a message queue abstracted from the database.
In at least one possible implementation, the voting statistics include a number of participating users, a resulting number of votes for each voting choice, a number of virtual assets for winners and losers based on the resulting number of votes, and a winner of the reward.
In at least one possible implementation manner, the voting campaign configuration includes a set result publication time;
the reaching the preset time comprises the following steps:
according to the set scanning period, whether the result publishing time is reached or not is regularly scanned;
if yes, judging that the preset time is reached.
In a second aspect, the present invention provides a web vote data processing device, including:
the cache voting activity configuration module is used for writing the voting activity configuration stored in the database in advance into the cache;
the activity webpage rendering module is used for taking out the voting activity configuration from the cache and generating a voting activity webpage for showing to a user;
the voting request acquisition module is used for continuously monitoring and receiving voting request data input by a user on the voting activity page;
the first writing module is used for writing the voting request data into a first message queue;
a voting request storage module, configured to write the voting request data in the first message queue into a database at regular time;
the voting statistics module is used for extracting the voting request data from the database after reaching the preset time and carrying out voting statistics;
the second writing module is used for writing voting statistical data into a second message queue;
the final result generation module is used for regularly extracting the voting statistical data from the second message queue and matching the voting statistical data with the user personal information in the voting request data to obtain a final voting result of the corresponding user;
a third writing module, configured to write the final voting result into a third message queue;
and the result publishing module is used for pushing the final voting result in the third message queue to the user at fixed time.
In at least one possible implementation, the second message queue and/or the third message queue refers to a message queue abstracted by a database.
In at least one possible implementation, the voting statistics include a number of participating users, a resulting number of votes for each voting choice, a number of virtual assets for winners and losers based on the resulting number of votes, and a winner of the reward.
In at least one possible implementation manner, the voting campaign configuration includes a set result publication time;
the voting statistics module specifically comprises:
the timing scanning unit is used for periodically scanning whether the result publishing time is reached or not according to a set scanning period;
and the time judging unit is used for judging that the preset time is reached if the output of the timing scanning unit is yes.
In a third aspect, the present invention provides a web voting data processing device, comprising:
one or more processors, a memory, and one or more computer programs, the memory may employ a non-volatile storage medium, wherein the one or more computer programs are stored in the memory, the one or more computer programs comprising instructions which, when executed by the device, cause the device to perform the method as in the first aspect or any of the possible implementations of the first aspect.
In a fourth aspect, the present invention provides a computer readable storage medium having stored therein a computer program which when run on a computer causes the computer to perform the method as in the first aspect or any of the possible implementations of the first aspect.
In a fifth aspect, the invention also provides a computer program product for performing the method of the first aspect or any of the possible implementations of the first aspect, when the computer program product is executed by a computer.
In a possible design of the fifth aspect, the relevant program related to the product may be stored in whole or in part on a memory packaged with the processor, or may be stored in part or in whole on a storage medium not packaged with the processor.
After a voting activity page is made from the cache, the input information of users participating in voting is stored into a database by means of an intermediate queue and a timing consumption mode, voting results are asynchronously counted on the basis of stored voting requests after the activity time is reached, and the processing of voting data is automatically completed by means of the intermediate queue and the timing consumption mode respectively in the final result calculation and result publishing stages. The invention can achieve the purpose of quick response of the system, homogenize a large number of requests when processing high concurrency business of voting requests, greatly reduce the system load, not only make the interactive experience more friendly and the system more robust, but also effectively relieve the working pressure of operators by means of automatic timing statistics and voting result publication.
Furthermore, the invention provides that the database is used as an abstract queue in the statistics and publishing stage, namely, the function of the existing resource is expanded without redundant construction.
Drawings
For the purpose of making the objects, technical solutions and advantages of the present invention more apparent, the present invention will be further described with reference to the accompanying drawings, in which:
FIG. 1 is a flowchart of an embodiment of a method for processing web voting data provided by the present invention;
fig. 2 is a block diagram of an embodiment of a web voting data processing device provided by the present invention.
Detailed Description
Embodiments of the present invention are described in detail below, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to like or similar elements or elements having like or similar functions throughout. The embodiments described below by referring to the drawings are illustrative only and are not to be construed as limiting the invention.
The prior art for realizing voting generally writes the voting data of the user into the database directly through the Http interface, and the implementing techniques for result statistics and result publication generally send out a request by an operator, and the background invokes the corresponding process to perform corresponding calculation in a synchronous mode through the Http interface.
In the above manner, a strong dependence is generated on the database when the voting request is processed, and as the system of most internet companies depends on the MySQL database at present, but MySQL is not a distributed system, the conditions of high CPU utilization rate, response delay and the like easily occur when the concurrency is high, more inquiry and writing requests cannot be processed, the system response time-out is also caused, the user experience is poor, even the whole system is crashed due to overlarge pressure of a server, the working efficiency of operators is influenced, and more effort is required to pay attention to the publishing and pushing of the voting result.
In view of the foregoing, the present invention aims to provide an automatic voting campaign processing scheme for relieving system pressure and reducing manual dependency, that is, through an intermediate queue set and a queue abstracted by a database, to carry high concurrency requests when users concentrate on voting, and to improve the processing modes of voting statistics, result calculation and publishing pushing stages from synchronous to asynchronous.
Thus, the present invention provides at least one embodiment of a web voting data processing method, as shown in fig. 1, which may include the following steps:
step S1, writing voting activity configuration stored in a database in advance into a cache;
and S2, taking out the voting activity configuration from the cache, and generating a voting activity webpage for displaying to a user.
In actual operation, voting activities may be created in the background in advance, for example, the operator may fill in topics and various answer options, and set up virtual asset types (such as points/gold coins) and virtual asset numbers participating in consumption, and select activity types, set up time of deadlines or result publication time of activities, and so on.
The activity configuration information is then stored in a database, and when the activity needs to be started, the voting activity configuration can be taken out of the redis cache, and if the redis cache has no activity configuration (first reading and caching life ending), the voting activity configuration can be taken out of the database (such as MySQL) first, and then the activity configuration data can be rendered into a webpage through a Vue js frame for display to a user.
In some embodiments, the cache component redis can be utilized, and the voting activity is configured into the memory through the cache redis component, so that the purpose of quick response of the system can be achieved, and the system pressure is reduced in an auxiliary way to a certain extent when the high concurrence business of voting is processed. The redis server has the advantages that the redis server supports more stored value types, the defect of key-value storage such as memcached is compensated, and the redis server is distributed on each node in the redis cluster according to a preset rule, so that the pressure of a single node can be reduced.
Step S3, continuously monitoring and receiving voting request data input by a user on the voting activity page;
s4, writing the voting request data into a first message queue;
and step S5, the voting request data in the first message queue is written into a database at fixed time.
In actual operation, the user may select his own preferred voting option, for example, it is monitored that the user writes the voting request data containing his identity information and the selected answer through the external interface, but it should be emphasized that the writing operation is not directly written into the database, but is written into the first message queue (for example, a RabbitMq queue with excellent processing capability may be preferred), and then the consuming process is started through a timing task such as the linux system, i.e. the voting request data in the RabbitMq message queue is consumed into the database for a certain period (for example, 1 minute), and preferably, the voting request data may be converted into json format when being written into the database, so as to facilitate the structuring of the stored voting record.
It should be noted that, the invention processes the synchronous request asynchronously through the timing task technology and the message queue (the combination of the processing capability and the technology is strong, so that the voting request of the user can be homogenized in the high concurrency period, the interactive experience effect between the system and the user is better, and the system is more robust.
S6, after reaching a preset time, extracting the voting request data from a database, and carrying out voting statistics;
step S7, writing voting statistical data into a second message queue;
and S8, extracting the voting statistical data from the second message queue at regular time, and matching with the user personal information in the voting request data to obtain a final voting result of the corresponding user.
In combination with the foregoing example, in the actual operation, whether the result publication time is reached or not may be periodically scanned according to the set scanning period based on the timing task, and if so, it may be determined that the preset time is reached. The voting records stored in the database may then be retrieved and statistically calculated, such as, but not limited to, the number of participating users, the resulting number of votes for each voting option, the number of winners and losers based on the resulting number of votes, the number of virtual assets awarded to the winner, etc. The voting statistics are then written into the second message queue, where it is noted that the process is not a store operation, but rather the voting statistics are eventually configured in accordance with a later designed timed consumption mechanism, i.e. the voting statistics are retrieved from the second message queue according to a set period and matched with the entry data of the user (which may be included in the voting request data, e.g. may refer to a user ID, etc.), so that it is possible to obtain which users have specifically selected correct answers, and which users have specifically selected wrong answers.
The concept and effect of the second message queue and the timing task are consistent with those of the first message queue and the timing task, which are mentioned above, in order to reduce the system load in the high concurrency stage and relieve the statistical calculation pressure, the invention will not be described in detail, but it can be further explained that in actual operation, the second message queue refers to the message queue abstracted from the database, and the writing of the voting statistic data into the second message queue refers to writing the voting statistic data into the database, but the essence of the process is not stored, but the statistics result is temporarily written into MySQL by using the existing database resources in order to cooperate with the subsequent timing consumption.
Step S9, writing the final voting result into a third message queue;
and step S10, pushing the final voting result in the third message queue to the user at fixed time.
And writing the final voting result containing the user information into the second message queue again, wherein the process is not a storage operation, and the final voting result (and corresponding rewards and the like) is pushed to the user by matching with a timing consumption mechanism designed later. This principle is consistent with the foregoing, and more preferably, the queue abstracted from the database may be used as a third message queue as well, for example, in actual operation, the queue in MySQL is consumed by the timed task to issue a corresponding reward (such as a virtual asset) to the voting winner, and the corresponding final voting result message is pushed to the voting loser and the winner respectively through the dis and internal interfaces provided by the independent push system.
In summary, the concept of the present invention is that after a voting activity page is made from a cache, input information of users participating in voting is stored into a database by means of an intermediate queue and a timing consumption mode, voting results are asynchronously counted based on stored voting requests after the activity time arrives, and processing of voting data is automatically completed by means of the intermediate queue and the timing consumption mode in the final result calculation and result publishing stage, respectively. The invention can achieve the purpose of quick response of the system, can homogenize a large number of requests when processing high concurrence business of voting requests, greatly reduce the system load, not only make interactive experience more friendly and system more robust, but also effectively relieve the working pressure of operators by means of automatic timing statistics and voting result publishing, namely, the invention can release the vigor of operators from activity monitoring by the automatic voting result processing technology, and further can improve the overall working efficiency.
The foregoing embodiments and preferred solutions may be implemented by creating a corresponding PK system in actual operation, where the system may include, for example, an application front end, a load balancing server, an application server, a redis cluster, a relational database, and a rabkitmq message queue, which is not limited to this embodiment.
Corresponding to the above embodiments and preferred solutions, the present invention further provides an embodiment of a web voting data processing device, as shown in fig. 2, which may specifically include the following components:
a cache voting activity configuration module 1, configured to write a voting activity configuration stored in a database in advance into a cache;
the activity webpage rendering module 2 is used for taking out the voting activity configuration from the cache and generating a voting activity webpage for showing to a user;
the voting request acquisition module 3 is used for continuously monitoring and receiving voting request data input by a user on the voting activity page;
a first writing module 4, configured to write the voting request data into a first message queue;
a voting request storage module 5, configured to write the voting request data in the first message queue into a database at regular time;
the voting statistics module 6 is used for extracting the voting request data from the database after reaching the preset time and carrying out voting statistics;
a second writing module 7, configured to write voting statistics into a second message queue;
the final result generating module 8 is configured to extract the voting statistical data from the second message queue at regular time, and match the voting statistical data with the user personal information in the voting request data to obtain a final voting result of the corresponding user;
a third writing module 9, configured to write the final voting result into a third message queue;
and the result publishing module 10 is used for pushing the final voting result in the third message queue to the user at fixed time.
In at least one possible implementation, the second message queue and/or the third message queue refers to a message queue abstracted by a database.
In at least one possible implementation, the voting statistics include a number of participating users, a resulting number of votes for each voting choice, a number of virtual assets for winners and losers based on the resulting number of votes, and a winner of the reward.
In at least one possible implementation manner, the voting campaign configuration includes a set result publication time;
the voting statistics module specifically comprises:
the timing scanning unit is used for periodically scanning whether the result publishing time is reached or not according to a set scanning period;
and the time judging unit is used for judging that the preset time is reached if the output of the timing scanning unit is yes.
It should be understood that the division of the components in the above web page voting data processing device shown in fig. 2 is merely a division of a logic function, and may be fully or partially integrated into a physical entity or may be physically separated. And these components may all be implemented in software in the form of a call through a processing element; or can be realized in hardware; it is also possible that part of the components are implemented in the form of software called by the processing element and part of the components are implemented in the form of hardware. For example, some of the above modules may be individually set up processing elements, or may be integrated in a chip of the electronic device. The implementation of the other components is similar. In addition, all or part of the components can be integrated together or can be independently realized. In implementation, each step of the above method or each component above may be implemented by an integrated logic circuit of hardware in a processor element or an instruction in the form of software.
For example, the above components may be one or more integrated circuits configured to implement the above methods, such as: one or more specific integrated circuits (Application Specific Integrated Circuit; hereinafter ASIC), or one or more microprocessors (Digital Singnal Processor; hereinafter DSP), or one or more field programmable gate arrays (Field Programmable Gate Array; hereinafter FPGA), etc. For another example, these components may be integrated together and implemented in the form of a System-On-a-Chip (SOC).
In view of the foregoing examples and their preferred embodiments, those skilled in the art will appreciate that in practice the present invention is applicable to a variety of embodiments, and the present invention is schematically illustrated by the following carriers:
(1) A web page voting data processing device may include:
one or more processors, memory, and one or more computer programs, wherein the one or more computer programs are stored in the memory, the one or more computer programs comprising instructions, which when executed by the device, cause the device to perform the steps/functions of the foregoing embodiments or equivalent implementations.
The device may be an electronic device or a circuit device built in the electronic device. The electronic device may be a PC, a server, an intelligent terminal (mobile phone, tablet, etc.), etc. The specific form of the web page voting data processing device is not limited in this embodiment.
(2) A readable storage medium having stored thereon a computer program or the above-mentioned means, which when executed, causes a computer to perform the steps/functions of the foregoing embodiments or equivalent implementations.
In several embodiments provided by the present invention, any of the functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a computer-readable storage medium. Based on such understanding, certain aspects of the present invention may be embodied in the form of a software product as described below, in essence, or as a part of, contributing to the prior art.
(3) A computer program product (which may comprise the apparatus described above) which, when run on a terminal device, causes the terminal device to perform the web voting data processing method of the preceding embodiment or equivalent.
From the above description of embodiments, it will be apparent to those skilled in the art that all or part of the steps of the above described methods may be implemented in software plus necessary general purpose hardware platforms. Based on such understanding, the above-described computer program product may include, but is not limited to, an APP; in connection with the foregoing, the device/terminal may be a computer device (e.g., a mobile phone, a PC terminal, a cloud platform, a server cluster, or a network communication device such as a media gateway, etc.). Moreover, the hardware structure of the computer device may further specifically include: at least one processor, at least one communication interface, at least one memory and at least one communication bus; the processor, the communication interface and the memory can all communicate with each other through a communication bus. The processor may be a central processing unit CPU, DSP, microcontroller or digital signal processor, and may further include a GPU, an embedded Neural network processor (Neural-network Process Units; hereinafter referred to as NPU), and an image signal processor (lmage Signal Processing; hereinafter referred to as lSP), where the processor may further include an ASIC (application specific integrated circuit) or one or more integrated circuits configured to implement embodiments of the present invention, and the processor may further have a function of operating one or more software programs, where the software programs may be stored in a storage medium such as a memory; and the aforementioned memory/storage medium may include: nonvolatile Memory (non-volatile Memory), such as a non-removable magnetic disk, a USB flash disk, a removable hard disk, an optical disk, and the like, and Read-Only Memory (ROM), random access Memory (Random Access Memory; RAM), and the like.
In the embodiments of the present invention, "at least one" means one or more, and "a plurality" means two or more. "and/or", describes an association relation of association objects, and indicates that there may be three kinds of relations, for example, a and/or B, and may indicate that a alone exists, a and B together, and B alone exists. Wherein A, B may be singular or plural. The character "/" generally indicates that the context-dependent object is an "or" relationship. "at least one of the following" and the like means any combination of these items, including any combination of single or plural items. For example, at least one of a, b and c may represent: a, b, c, a and b, a and c, b and c or a and b and c, wherein a, b and c can be single or multiple.
Those of skill in the art will appreciate that the various modules, units, and method steps described in the embodiments disclosed herein can be implemented in electronic hardware, computer software, and combinations of electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Those skilled in the art may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
And, each embodiment in the specification is described in a progressive manner, and the same and similar parts of each embodiment are mutually referred to. In particular, for embodiments of the apparatus, device, etc., as they are substantially similar to method embodiments, the relevance may be found in part in the description of method embodiments. The above-described embodiments of apparatus, devices, etc. are merely illustrative, in which modules, units, etc. illustrated as separate components may or may not be physically separate, i.e., may be located in one place, or may be distributed across multiple places, e.g., nodes of a system network. In particular, some or all modules and units in the system can be selected according to actual needs to achieve the purpose of the embodiment scheme. Those skilled in the art will understand and practice the invention without undue burden.
The construction, features and effects of the present invention are described in detail according to the embodiments shown in the drawings, but the above is only a preferred embodiment of the present invention, and it should be understood that the technical features of the above embodiment and the preferred mode thereof can be reasonably combined and matched into various equivalent schemes by those skilled in the art without departing from or changing the design concept and technical effects of the present invention; therefore, the invention is not limited to the embodiments shown in the drawings, but is intended to be within the scope of the invention as long as changes made in the concept of the invention or modifications to the equivalent embodiments do not depart from the spirit of the invention as covered by the specification and drawings.

Claims (4)

1. A web voting data processing method, comprising:
writing voting activity configuration stored in a database in advance into a cache;
the voting activity configuration is taken out from the cache, and a voting activity webpage for showing to the user is generated;
continuously monitoring and receiving voting request data input by a user on the voting activity webpage;
writing the voting request data into a first message queue;
writing the voting request data in the first message queue into a database at regular time;
after reaching the preset time, extracting the voting request data from a database, and carrying out voting statistics;
writing voting statistical data into a second message queue;
extracting the voting statistical data from the second message queue at regular time, and matching with the user personal information in the voting request data to obtain a final voting result of the corresponding user;
writing the final voting result into a third message queue;
pushing the final voting result in the third message queue to a user at regular time; writing the voting statistical data into a second message queue refers to writing the voting statistical result data into a database, wherein the second message queue refers to a message queue abstracted from the database; writing the final voting result into a third message queue means writing the voting result into a database, wherein the third message queue means a message queue abstracted from the database; the voting statistical data comprises the number of participants, the obtained number of votes of each voting option, the number of virtual assets of winners and failed parties based on the obtained number of votes and winners to be rewarded; the voting activity configuration comprises a set result publication time;
the reaching the preset time comprises the following steps:
according to the set scanning period, whether the result publishing time is reached or not is regularly scanned;
if yes, judging that the preset time is reached.
2. A web page voting data processing device, comprising:
the cache voting activity configuration module is used for writing the voting activity configuration stored in the database in advance into the cache;
the activity webpage rendering module is used for taking out the voting activity configuration from the cache and generating a voting activity webpage for showing to a user;
the voting request acquisition module is used for continuously monitoring and receiving voting request data input by a user on the voting activity webpage;
the first writing module is used for writing the voting request data into a first message queue;
a voting request storage module, configured to write the voting request data in the first message queue into a database at regular time;
the voting statistics module is used for extracting the voting request data from the database after reaching the preset time and carrying out voting statistics;
the second writing module is used for writing voting statistical data into a second message queue;
the final result generation module is used for regularly extracting the voting statistical data from the second message queue and matching the voting statistical data with the user personal information in the voting request data to obtain a final voting result of the corresponding user;
a third writing module, configured to write the final voting result into a third message queue;
the result publishing module is used for pushing the final voting result in the third message queue to the user at regular time; the second message queue and/or the third message queue refer to a message queue abstracted by a database; the voting statistical data comprises the number of the participants, the obtained number of votes of each voting option, and the set result publishing time in the voting event configuration based on the number of the winners and the failed winners of the obtained number of votes and the virtual asset number of the winner of the rewarding;
the voting statistics module specifically comprises:
the timing scanning unit is used for periodically scanning whether the result publishing time is reached or not according to a set scanning period;
and the time judging unit is used for judging that the preset time is reached if the output of the timing scanning unit is yes.
3. A computer-readable storage medium, in which a computer program is stored which, when run on a computer, causes the computer to perform the web voting data processing method according to claim 1.
4. A web page voting data processing device, comprising:
one or more processors, memory, and one or more computer programs, wherein the one or more computer programs are stored in the memory, the one or more computer programs comprising instructions that, when executed by the device, cause the device to perform the web voting data processing method of claim 1.
CN202010976529.2A 2020-09-15 2020-09-15 Webpage voting data processing method, device and equipment Active CN112131496B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010976529.2A CN112131496B (en) 2020-09-15 2020-09-15 Webpage voting data processing method, device and equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010976529.2A CN112131496B (en) 2020-09-15 2020-09-15 Webpage voting data processing method, device and equipment

Publications (2)

Publication Number Publication Date
CN112131496A CN112131496A (en) 2020-12-25
CN112131496B true CN112131496B (en) 2024-04-12

Family

ID=73845927

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010976529.2A Active CN112131496B (en) 2020-09-15 2020-09-15 Webpage voting data processing method, device and equipment

Country Status (1)

Country Link
CN (1) CN112131496B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113034207A (en) * 2021-04-20 2021-06-25 青岛冠成软件有限公司 Lottery information processing method, device, server and readable storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103955984A (en) * 2014-03-24 2014-07-30 广州华多网络科技有限公司 Method, server, voting processing node and system for achieving interconnection network voting
CN111045806A (en) * 2019-12-16 2020-04-21 云南优鸟科技有限公司 Method and system for realizing delay message queue
CN111104235A (en) * 2019-12-06 2020-05-05 江苏苏宁物流有限公司 Queue-based asynchronous processing method and device for service requests

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6704887B2 (en) * 2001-03-08 2004-03-09 The United States Of America As Represented By The Secretary Of The Air Force Method and apparatus for improved security in distributed-environment voting

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103955984A (en) * 2014-03-24 2014-07-30 广州华多网络科技有限公司 Method, server, voting processing node and system for achieving interconnection network voting
CN111104235A (en) * 2019-12-06 2020-05-05 江苏苏宁物流有限公司 Queue-based asynchronous processing method and device for service requests
CN111045806A (en) * 2019-12-16 2020-04-21 云南优鸟科技有限公司 Method and system for realizing delay message queue

Also Published As

Publication number Publication date
CN112131496A (en) 2020-12-25

Similar Documents

Publication Publication Date Title
CN106407190B (en) Event record query method and device
CN108460627A (en) Marketing activity scheme method for pushing, device, computer equipment and storage medium
CN106815254A (en) A kind of data processing method and device
CN112131496B (en) Webpage voting data processing method, device and equipment
CN114140075A (en) Service processing method, device, medium and electronic equipment
CN111210340A (en) Automatic task processing method and device, server and storage medium
CN111782473A (en) Distributed log data processing method, device and system
CN107329832B (en) Data receiving method and device
CN113760983A (en) Data processing method, system and non-transitory computer readable storage medium
CN109460193B (en) IO processing method, device and terminal in storage system
CN109308219B (en) Task processing method and device and distributed computer system
CN112054926B (en) Cluster management method and device, electronic equipment and storage medium
CN113742581A (en) List generation method and device, electronic equipment and readable storage medium
CN110908821B (en) Method, device, equipment and storage medium for task failure management
CN114356970A (en) Storage system resource caching method and device
CN112131180A (en) Data reporting method and device and storage medium
CN115292562B (en) Big data based qualified user screening method, device, medium and computing equipment
CN115659092B (en) Medal page generation method, medal page display method, server and mobile terminal
CN109542609A (en) A kind of method, apparatus withholding refund, computer equipment and storage medium
CN116643870B (en) Method, system and device for processing long-time task distribution and readable storage medium
CN112827183B (en) Game data processing method and device
CN114223189B (en) Time length statistics method, device, electronic equipment and computer readable medium
CN110430263B (en) Value added service processing system and method
CN108804585B (en) Data processing method and device in CDN system
CN117959697A (en) Processing method and device of server log, computer equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant