CN103824246A - Method for distributing and issuing lottery tickets according to electronic instant lottery ticket data - Google Patents
Method for distributing and issuing lottery tickets according to electronic instant lottery ticket data Download PDFInfo
- Publication number
- CN103824246A CN103824246A CN201410084528.1A CN201410084528A CN103824246A CN 103824246 A CN103824246 A CN 103824246A CN 201410084528 A CN201410084528 A CN 201410084528A CN 103824246 A CN103824246 A CN 103824246A
- Authority
- CN
- China
- Prior art keywords
- end server
- lottery
- random number
- bill
- lottery data
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Landscapes
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
The invention discloses a method for distributing and issuing lottery tickets according to electronic instant lottery ticket data. The method comprises the following steps: A, mixing and grouping lottery ticket data; B, building a lottery ticket issuing table, a routing table, a flow table, a threshold table and a seed table in a sales end; C, sending betting requests by users; D, distributing the betting requests; E, selecting lottery tickets randomly; F, monitoring lottery ticket information thresholds; and G, pushing information of the flow table. Through the method, the defects in the prior art can be overcome; the workload of a server is greatly reduced; the throughput capacity of the lottery ticket betting requests is improved under the premise that the hardware configuration of the server is not increased.
Description
Technical field
The present invention relates to data-optimized process field, especially a kind of electronics instant lottery data distribute ticket method.
Background technology
Along with the development of lottery ticket industry, the sales volume rapid growth of electronics instant lottery.Due to the real-time feature of electronics instant lottery, the travelling speed of server has been proposed to very high requirement, lottery ticket operator, in order to meet sale demand, has to drop into substantial contribution and expands server capacity, guarantees the normal running speed of system.
Summary of the invention
The technical problem to be solved in the present invention is to provide a kind of ticket method that distributes of electronics instant lottery data, can solve the deficiencies in the prior art, greatly alleviate the workload of server, under the prerequisite that does not increase server hardware configuration, promoted the handling capacity of lottery ticket choosing and selling request.
For solving the problems of the technologies described above, the technical solution used in the present invention is as follows.
Electronics instant lottery data distribute a ticket method, comprise the following steps:
A, basic lottery data is mixed, divided into groups in control end server, be then distributed in sales end server, and set up distribution concordance list;
B, in sales end server, set up draw a bill table, routing table, flowing water table, threshold value table and kind sublist;
The table of drawing a bill is made up of the lottery data that is sent to sales end server, saves as ordered series of numbers form;
Routing table, by the storage information structure of lottery data, comprises rule, prize group and the table name of drawing a bill, routing table for draw a bill table access quick indexing is provided;
Flowing water table is made up of sales figure;
Threshold value table is made up of the threshold value of monitoring lottery data, comprise mixed sell type, the scope of getting tickets, sale ratio and the mixed ratio of selling;
Plant sublist and be made up of a true random number chained list, the pseudo random number using during for sale provides iteration initial value;
C, user send stake request by hardware terminal to control end server;
D, control end server are dispensed to stake request in a corresponding sales end server by stake gateway and according to distribution concordance list;
E, sales end server are according to stake request, use the true random number providing in kind of sublist to generate a pseudo random number, then determine the lottery ticket position of choosing by routing table according to this pseudo random number, then from the table of drawing a bill, extract the lottery ticket of choosing, then sales figure is stored in flowing water table, result is passed through to stake gateway and the control end server feedback hardware terminal to user simultaneously;
F, lottery ticket of every sale, sales server uses the threshold data in threshold value table to proofread the data of drawing a bill in table, and if there is the situation that exceeds threshold value, to drawing a bill, table upgrades;
G, by flowing water table information pushing to control end server.
Preferably, the method for in steps A, mix, dividing into groups is:
Whole lottery datas are formed to an ordered series of numbers, and determine a period, in ordered series of numbers, choose lottery data take period as spacing and put into lottery ticket group.
Preferably, in step e, the generation method of pseudo random number comprises the following steps:
E1, by true random number evolution, round, obtain mediant;
E2, get greatlyr than mediant, and the prime number nearest apart from mediant be divisor, does division with true random number, and the remainder obtaining is pseudo random number, if remainder is 0, type B error random number is 1.
Preferably, in step F, the step that the table of drawing a bill is upgraded comprises:
F1, by exceed threshold value draw a bill table in lottery data reclaim, regenerate one group of lottery data and be sent on sales end server;
F2, the lottery data of recovery is accumulated, carry out mixed once when quantity builds up to while being greater than five groups of lottery datas, then mixed lottery data is carried out to ratio adjustment, then deposit control end server in for subsequent use.
Preferably, in step G, flowing water table information exchange is crossed asynchronous system and is pushed to control end server.
The beneficial effect that adopts technique scheme to bring is: the present invention, by horizontal resection database and table subregion, shares ticket data on the different server of multiple point of sales uniformly, adopts table partitioning strategies simultaneously, improves the performance of database; Increase the data of point of sale, promote the handling capacity of processing stake request, further improve the performance of drawing a bill.Because each point of sale is independent separately, the data between database are not shared, and have evaded the possibility that occurs heavy ticket on database layer.Laterally increase new point of sale and corresponding database, improve the extended capability of point of sale.The sales data of drawing a bill of verification timely and effectively, will warn abnormal information.Through contrast, use lottery server system of the present invention not changing under the prerequisite of rated load, reduce more than 40% server consumption, greatly reduce the fund input of hardware device.
Accompanying drawing explanation
Fig. 1 is the schematic diagram of an embodiment of the present invention.
Embodiment
With reference to accompanying drawing, a kind of electronics instant lottery data distribute ticket method, comprise the following steps:
A, basic lottery data is mixed, divided into groups in control end server, be then distributed in sales end server, and set up distribution concordance list;
B, in sales end server, set up draw a bill table, routing table, flowing water table, threshold value table and kind sublist;
The table of drawing a bill is made up of the lottery data that is sent to sales end server, saves as ordered series of numbers form;
Routing table, by the storage information structure of lottery data, comprises rule, prize group and the table name of drawing a bill, routing table for draw a bill table access quick indexing is provided;
Flowing water table is made up of sales figure;
Threshold value table is made up of the threshold value of monitoring lottery data, comprise mixed sell type, the scope of getting tickets, sale ratio and the mixed ratio of selling;
Plant sublist and be made up of a true random number chained list, the pseudo random number using during for sale provides iteration initial value;
C, user send stake request by hardware terminal to control end server;
D, control end server are dispensed to stake request in a corresponding sales end server by stake gateway and according to distribution concordance list;
E, sales end server are according to stake request, use the true random number providing in kind of sublist to generate a pseudo random number, then determine the lottery ticket position of choosing by routing table according to this pseudo random number, then from the table of drawing a bill, extract the lottery ticket of choosing, then sales figure is stored in flowing water table, result is passed through to stake gateway and the control end server feedback hardware terminal to user simultaneously;
F, lottery ticket of every sale, sales server uses the threshold data in threshold value table to proofread the data of drawing a bill in table, and if there is the situation that exceeds threshold value, to drawing a bill, table upgrades;
G, by flowing water table information pushing to control end server.
It should be noted that in steps A, the method for mixing, dividing into groups is:
Whole lottery datas are formed to an ordered series of numbers, and determine a period, in ordered series of numbers, choose lottery data take period as spacing and put into lottery ticket group.
It should be noted that in step e, the generation method of pseudo random number comprises the following steps:
E1, by true random number evolution, round, obtain mediant;
E2, get greatlyr than mediant, and the prime number nearest apart from mediant be divisor, does division with true random number, and the remainder obtaining is pseudo random number, if remainder is 0, type B error random number is 1.
It should be noted that in step F, the step that the table of drawing a bill is upgraded comprises:
F1, by exceed threshold value draw a bill table in lottery data reclaim, regenerate one group of lottery data and be sent on sales end server;
F2, the lottery data of recovery is accumulated, carry out mixed once when quantity builds up to while being greater than five groups of lottery datas, then mixed lottery data is carried out to ratio adjustment, then deposit control end server in for subsequent use.
In addition,, in step G, flowing water table information exchange is crossed asynchronous system and is pushed to control end server.
The present invention, by horizontal resection database and table subregion, shares ticket data on the different server of multiple point of sales uniformly, adopts table partitioning strategies simultaneously, improves the performance of database; Increase the data of point of sale, promote the handling capacity of processing stake request, further improve the performance of drawing a bill.Because each point of sale is independent separately, the data between database are not shared, and have evaded the possibility that occurs heavy ticket on database layer.Laterally increase new point of sale and corresponding database, improve the extended capability of point of sale.The sales data of drawing a bill of verification timely and effectively, will warn abnormal information.Through with the contrast of prior art, use lottery server system of the present invention not changing under the prerequisite of rated load, reduce more than 40% server consumption, greatly reduced the fund input of hardware device.
More than show and described ultimate principle of the present invention and principal character and advantage of the present invention.The technician of the industry should understand; the present invention is not restricted to the described embodiments; that in above-described embodiment and instructions, describes just illustrates principle of the present invention; without departing from the spirit and scope of the present invention; the present invention also has various changes and modifications, and these changes and improvements all fall in the claimed scope of the invention.The claimed scope of the present invention is defined by appending claims and equivalent thereof.
Claims (5)
- Electronics instant lottery data distribute a ticket method, it is characterized in that comprising the following steps:A, basic lottery data is mixed, divided into groups in control end server, be then distributed in sales end server, and set up distribution concordance list;B, in sales end server, set up draw a bill table, routing table, flowing water table, threshold value table and kind sublist;The table of drawing a bill is made up of the lottery data that is sent to sales end server, saves as ordered series of numbers form;Routing table, by the storage information structure of lottery data, comprises rule, prize group and the table name of drawing a bill, routing table for draw a bill table access quick indexing is provided;Flowing water table is made up of sales figure;Threshold value table is made up of the threshold value of monitoring lottery data, comprise mixed sell type, the scope of getting tickets, sale ratio and the mixed ratio of selling;Plant sublist and be made up of a true random number chained list, the pseudo random number using during for sale provides iteration initial value;C, user send stake request by hardware terminal to control end server;D, control end server are dispensed to stake request in a corresponding sales end server by stake gateway and according to distribution concordance list;E, sales end server are according to stake request, use the true random number providing in kind of sublist to generate a pseudo random number, then determine the lottery ticket position of choosing by routing table according to this pseudo random number, then from the table of drawing a bill, extract the lottery ticket of choosing, then sales figure is stored in flowing water table, result is passed through to stake gateway and the control end server feedback hardware terminal to user simultaneously;F, lottery ticket of every sale, sales server uses the threshold data in threshold value table to proofread the data of drawing a bill in table, and if there is the situation that exceeds threshold value, to drawing a bill, table upgrades;G, by flowing water table information pushing to control end server.
- Electronics instant lottery data according to claim 1 distribute ticket method, it is characterized in that: in steps A, mix, the method for grouping is:Whole lottery datas are formed to an ordered series of numbers, and determine a period, in ordered series of numbers, choose lottery data take period as spacing and put into lottery ticket group.
- Electronics instant lottery data according to claim 1 distribute ticket method, it is characterized in that: in step e, the generation method of pseudo random number comprises the following steps:E1, by true random number evolution, round, obtain mediant;E2, get greatlyr than mediant, and the prime number nearest apart from mediant be divisor, does division with true random number, and the remainder obtaining is pseudo random number, if remainder is 0, type B error random number is 1.
- Electronics instant lottery data according to claim 1 distribute ticket method, it is characterized in that: in step F, the step that the table of drawing a bill is upgraded comprises:F1, by exceed threshold value draw a bill table in lottery data reclaim, regenerate one group of lottery data and be sent on sales end server;F2, the lottery data of recovery is accumulated, carry out mixed once when quantity builds up to while being greater than five groups of lottery datas, then mixed lottery data is carried out to ratio adjustment, then deposit control end server in for subsequent use.
- Electronics instant lottery data according to claim 1 distribute ticket method, it is characterized in that: in step G, flowing water table information exchange is crossed asynchronous system and pushed to control end server.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410084528.1A CN103824246A (en) | 2014-03-10 | 2014-03-10 | Method for distributing and issuing lottery tickets according to electronic instant lottery ticket data |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410084528.1A CN103824246A (en) | 2014-03-10 | 2014-03-10 | Method for distributing and issuing lottery tickets according to electronic instant lottery ticket data |
Publications (1)
Publication Number | Publication Date |
---|---|
CN103824246A true CN103824246A (en) | 2014-05-28 |
Family
ID=50759294
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410084528.1A Pending CN103824246A (en) | 2014-03-10 | 2014-03-10 | Method for distributing and issuing lottery tickets according to electronic instant lottery ticket data |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103824246A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105162760A (en) * | 2015-07-28 | 2015-12-16 | 郝孟一 | Random draw-off method, apparatus and system |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN201000651Y (en) * | 2006-12-04 | 2008-01-02 | 深圳市恒朋科技开发有限公司 | Hierarchically managed paper-free lottery system |
CN101395592A (en) * | 2006-03-03 | 2009-03-25 | 美国唯美安视国际有限公司 | Movie studio-based network distribution system and method |
CN102708532A (en) * | 2012-05-11 | 2012-10-03 | 深圳市永恒乐彩科技开发有限公司 | An automatic lottery drawing system and an automatic lottery drawing method |
CN102938000A (en) * | 2012-12-06 | 2013-02-20 | 武汉烽火网络有限责任公司 | Unlocked flow table routing lookup algorithm adopting high-speed parallel execution manner |
CN103297528A (en) * | 2013-06-05 | 2013-09-11 | 北京奇虎科技有限公司 | Ticket information acquisition method and device |
CN103514216A (en) * | 2012-06-29 | 2014-01-15 | 中国银联股份有限公司 | Serial number generating method based on database system |
-
2014
- 2014-03-10 CN CN201410084528.1A patent/CN103824246A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101395592A (en) * | 2006-03-03 | 2009-03-25 | 美国唯美安视国际有限公司 | Movie studio-based network distribution system and method |
CN201000651Y (en) * | 2006-12-04 | 2008-01-02 | 深圳市恒朋科技开发有限公司 | Hierarchically managed paper-free lottery system |
CN102708532A (en) * | 2012-05-11 | 2012-10-03 | 深圳市永恒乐彩科技开发有限公司 | An automatic lottery drawing system and an automatic lottery drawing method |
CN103514216A (en) * | 2012-06-29 | 2014-01-15 | 中国银联股份有限公司 | Serial number generating method based on database system |
CN102938000A (en) * | 2012-12-06 | 2013-02-20 | 武汉烽火网络有限责任公司 | Unlocked flow table routing lookup algorithm adopting high-speed parallel execution manner |
CN103297528A (en) * | 2013-06-05 | 2013-09-11 | 北京奇虎科技有限公司 | Ticket information acquisition method and device |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105162760A (en) * | 2015-07-28 | 2015-12-16 | 郝孟一 | Random draw-off method, apparatus and system |
CN105162760B (en) * | 2015-07-28 | 2018-08-14 | 郝孟一 | Randomly select method, apparatus and system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105100050B (en) | Method for managing user right and system | |
CN108564470A (en) | The transaction distribution method of block is built in a kind of block chain parallel | |
CN107358372A (en) | Box for material circulation distribution method, device and electronic equipment | |
CN108829610A (en) | EMS memory management process and equipment during a kind of neural network forward calculation | |
CN106156159A (en) | A kind of table connection processing method, device and cloud computing system | |
CN105869043A (en) | Disperse hot spot database account transfer-in and transfer-out accounting method and device | |
CN103019649B (en) | Information providing method and equipment | |
CN108241531A (en) | A kind of method and apparatus for distributing resource for virtual machine in the cluster | |
CN109242161B (en) | Big data-based distribution route generation method and terminal equipment | |
CN107958298A (en) | A kind of choosing method of the logistics node based on clustering algorithm | |
CN107506145A (en) | A kind of physical store dispatching method and cloud main frame creation method | |
CN108241534A (en) | A kind of task processing, distribution, management, the method calculated and device | |
CN107070645A (en) | Compare the method and system of the data of tables of data | |
CN103577431A (en) | Method, device and system for performing system design through multiple databases | |
CN108270581A (en) | Shared resource charge processing method and device | |
CN103997515B (en) | Center system of selection and its application are calculated in a kind of distributed cloud | |
CN108574645A (en) | A kind of array dispatching method and device | |
CN109347647A (en) | Group message distribution method and device | |
CN102629220A (en) | Dynamic task allocation and management method | |
CN105354313A (en) | Method for carrying out credit assessment by big data | |
CN105701861A (en) | Point cloud sampling method and system | |
CN103824246A (en) | Method for distributing and issuing lottery tickets according to electronic instant lottery ticket data | |
CN105426255A (en) | Network I/O (input/output) cost evaluation based ReduceTask data locality scheduling method for Hadoop big data platform | |
CN109934560A (en) | A kind of Student-Online-Course-Select method and system | |
CN104158902A (en) | Method and device of distributing Hbase data blocks based on number of requests |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination |