The invention relates to the technical field of
software engineering, in particular to a method and
system for improving the
throughput rate of a lottery drawing function. The method for improving the
throughput rate of the lottery drawing function comprises the following steps: configuring a lottery drawing activity, and setting a
list length and an empty prize quantity according to a winning probability, a total prize quantity, a prize type and a quantity of various prizes customized by a user; creating a prize
list, taking the identity identification number ID of a prize as a
list element, and defining the identity identification number ID of an empty prize as 0; disorganizing an element sequence in the prize list to obtain a prize list in which various prizes and empty prizes are uniformly distributed, and storing the prize list into a Redis cache
database; and when the user participates in lottery drawing, directly extracting a value from the prize list of the Redis cache
database, inserting the extracted value into the lottery drawing
record table, and ending the process. According to the method and
system for improving the
throughput rate of the lottery drawing function, the lottery drawing process is simplified, the lottery drawing
waiting time of the user is shortened, and the throughput rate of the lottery drawing function is improved.