CN110503484A - Electronic ticket data matching method and device based on distributed caching - Google Patents

Electronic ticket data matching method and device based on distributed caching Download PDF

Info

Publication number
CN110503484A
CN110503484A CN201910795269.6A CN201910795269A CN110503484A CN 110503484 A CN110503484 A CN 110503484A CN 201910795269 A CN201910795269 A CN 201910795269A CN 110503484 A CN110503484 A CN 110503484A
Authority
CN
China
Prior art keywords
electronic ticket
prize
preset
special award
data matching
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201910795269.6A
Other languages
Chinese (zh)
Inventor
周黄鹤
邹宁
毛婷
廖江亮
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Industrial and Commercial Bank of China Ltd ICBC
Original Assignee
Industrial and Commercial Bank of China Ltd ICBC
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 Industrial and Commercial Bank of China Ltd ICBC filed Critical Industrial and Commercial Bank of China Ltd ICBC
Priority to CN201910795269.6A priority Critical patent/CN110503484A/en
Publication of CN110503484A publication Critical patent/CN110503484A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/02Marketing; Price estimation or determination; Fundraising
    • G06Q30/0207Discounts or incentives, e.g. coupons or rebates
    • G06Q30/0212Chance discounts or incentives

Abstract

This application provides a kind of electronic ticket data matching method and device based on distributed caching, this method comprises: the corresponding random number generated in a preset range of the prize drawing triggering command based on acquisition;If knowing that the random number is less than preset basic prize-winning value through judgement, the awards type of the corresponding account of the prize drawing triggering command is determined according to the electronic ticket parameter being stored in same distributed caching;The corresponding electronic ticket of the awards type is provided to the corresponding account of the prize drawing triggering command.The application can be improved the efficiency of electronic ticket Data Matching process, and can successfully manage the ability of electronic ticket Data Matching end reply high concurrent scene, and then improve the stability and validity of entire electronic ticket prize drawing process.

Description

Electronic ticket data matching method and device based on distributed caching
Technical field
This application involves technical field of data processing more particularly to a kind of electronic ticket Data Matchings based on distributed caching Method and device.
Background technique
In the finance fast-developing epoch in internet, in process of exchange, providing electronic ticket is that financial company opens up visitor, obtains visitor With the important channel of glutinous visitor.But it during electronic ticket is provided, is often required in face of external attacks wind such as various " wool parties " The pressure that the technology of situations such as dangerous, while there is also " second kill " of reply " high concurrent, big flow " is realized, therefore how to plan as a whole to live Dynamic development progress, ensures the electronic ticket of substantial worth, balanced, provide orderly and safely, gives full play to electronic ticket power-assisted battalion The function of pin is always a problem in customer feedback field.
The case where demand with people to data interaction is higher and higher, is easy to appear " high concurrent, big flow ", thus it is right The performance requirement of device is higher and higher, and traditional centralized data storage management is difficult to deal with the high concurrents scene such as " second kills ", makes The system Construction for obtaining customer feedback is gradually migrated to distributed system.But the pipe for being mostly based on " table is divided in point library " of distributed system Reason mode, is thus difficult to whole assurance activity schedules and prize provides rhythm.Traditional electronic ticket is drawn a lottery at random, once it is movable After development, it is difficult to the granting rhythm of dynamic adjustment substantial worth electronic ticket (such as special award and the Grand Prix in kind that overflows).
Summary of the invention
For the problems of the prior art, present applicant proposes a kind of electronic ticket Data Matching side based on distributed caching Method and device can be improved the efficiency of electronic ticket Data Matching process, and can successfully manage the reply of electronic ticket Data Matching end The ability of high concurrent scene, and then improve the stability and validity of entire electronic ticket prize drawing process.
In order to solve the above-mentioned technical problem, the application the following technical schemes are provided:
In a first aspect, the application provides a kind of electronic ticket data matching method based on distributed caching, comprising:
The corresponding random number generated in a preset range of prize drawing triggering command based on acquisition;
It is same distributed slow according to being stored in if knowing that the random number is less than preset basic prize-winning value through judgement Electronic ticket parameter in depositing determines the awards type of the corresponding account of the prize drawing triggering command;
The corresponding electronic ticket of the awards type is provided to the corresponding account of the prize drawing triggering command.
Further, the electronic ticket parameter includes: the common prize electronic ticket total amount provided and the special award provided Electronic ticket total amount;Corresponding, the electronic ticket parameter that the basis is stored in same distributed caching determines the prize drawing touching The awards type for the corresponding account that sends instructions, comprising: according to the common prize electricity provided being stored in same distributed caching Sub- certificate total amount and the special award electronic ticket total amount provided determine that the prize drawing triggering command is corresponding according to preset decision rule Account awards type.
Further, the corresponding random number generated in a preset range of prize drawing triggering command described based on acquisition it Before, further includes: the trading instruction for meeting default prize drawing qualification is received, and corresponding prize drawing triggering is generated based on the trading instruction and is referred to It enables.
Further, the electronic ticket parameter further include: preset minimum prize-winning value and preset highest prize-winning value;
Correspondingly, the awards class that the corresponding account of the prize drawing triggering command is determined according to preset decision rule Type includes: to determine that the common prize electronic ticket total amount provided has reached preset quantity point or present system time has reached To when preset time point or later, judging whether the special award electronic ticket total amount provided is less than current corresponding Ying Fate Deng prize electronic ticket quantity;If the special award electronic ticket total amount provided should send out special award electronic ticket number less than currently corresponding Amount, and know that the random number is less than the preset highest prize-winning value through further judgement, it is determined that the prize drawing triggering The awards type for instructing corresponding account is special award awards type.
Further, the corresponding random number generated in a preset range of prize drawing triggering command described based on acquisition it Before, further includes: all types of electronic tickets of different number are generated according to preset prize drawing rule, wherein the electronic lottery packet It includes: common prize electronic ticket and special award electronic ticket;And the electronic ticket is stored in native database.
Further, if having reached preset quantity point or current in the common prize electronic ticket total amount provided System time had reached before preset time point, comprising: divides electronic ticket group according to the quantity of the special award electronic ticket;Root Equal portions are carried out to the common prize electronic ticket according to the quantitative proportion relationship between the common prize electronic ticket and special award electronic ticket Grouping, and will commonly encourage electronic ticket described in each group and be separately added into each electronic ticket group, wherein each electronic ticket group Between successively provide in sequence;It is corresponding, whenever having provided the last one ordinary electronic in any electronic ticket group When certificate, then the preset quantity point is updated to the common prize electronic ticket total amount provided in presently described distributed caching; Wherein, the electronic ticket includes: special award electronic ticket and common prize electronic ticket.
Further, the electronic ticket data matching method based on distributed caching, further includes: if described provided Common prize electronic ticket total amount have reached preset quantity point, then current corresponding described will should send out special award electronic ticket quantity more It is newly the corresponding summation of special award electronic ticket in each electronic ticket group for all providing respective ordinary electronic certificate, wherein The electronic ticket includes: special award electronic ticket and common prize electronic ticket.
Further, if having reached preset quantity point or current in the common prize electronic ticket total amount provided System time had reached before preset time point, comprising: by the common prize electronic ticket and special award electronic ticket respectively according to Active days mean allocation in preset prize drawing rule;Obtain common prize electronic ticket to be provided daily and corresponding every Its special award electronic ticket to be provided;It is corresponding, if present system time has reached preset time point, the Ying Fate Deng the daily special award electricity to be provided that prize electronic ticket quantity is from the beginning of the activity between present system time The corresponding summation of sub- certificate, wherein the electronic ticket includes: special award electronic ticket and common prize electronic ticket.
Further, the corresponding random number generated in a preset range of prize drawing triggering command described based on acquisition it Afterwards, further includes: if being judged, the random number is more than preset basic prize-winning value, exports the information that display is not got the winning number in a bond.
Further, if it is described know that the random number is less than preset basic prize-winning value through judgement after, also wrap It includes: if the common prize electronic ticket total amount provided is not up to preset quantity point and present system time is not up to preset Time point then judges whether the random number is more than preset minimum prize-winning value;If the random number be more than it is preset it is minimum in Prize value then obtains the corresponding unique code of electronic ticket of any common prize electronic ticket at random;If the corresponding electricity of the unique code of electronic ticket Sub- certificate then provides common prize electronic ticket to the corresponding account of the prize drawing triggering command in native database;Wherein, described pre- If minimum prize-winning value be also contained in the electronic ticket parameter;The electronic ticket includes: common prize electronic ticket.
Whether the special award electronic ticket total amount that further inquiry has been provided in the distributed caching, which is less than, is answered After hair special award electronic ticket quantity, comprising: if the special award electronic ticket total amount provided is electric not less than that should generate special award Sub- certificate quantity then judges whether the random number is more than the preset minimum prize-winning value;If the random number is more than described pre- If minimum prize-winning value, then obtain the corresponding unique code of electronic ticket of any common prize electronic ticket at random;If the electronic ticket is unique The corresponding electronic ticket of code then provides common prize electronic ticket to the corresponding account of the prize drawing triggering command in native database; Wherein the electronic ticket includes: common prize electronic ticket.
Further, if special award should be sent out less than currently corresponding in the special award electronic ticket total amount provided After electronic ticket quantity, further includes: through further judgement know the random number be more than the preset highest prize-winning value, then with Machine obtains the corresponding unique code of electronic ticket of any common prize electronic ticket;If the corresponding electronic ticket of the unique code of electronic ticket is in the machine In database, then common prize electronic ticket is provided to the corresponding account of the prize drawing triggering command, wherein the electronic ticket includes: general Logical prize electronic ticket.
Further, it is described obtain the corresponding unique code of electronic ticket of any common prize electronic ticket at random after, further includes: If the corresponding electronic ticket of unique code not in native database, exports the information that display is not got the winning number in a bond.
Second aspect, the application provide a kind of electronic ticket data matching device based on distributed caching, comprising:
Acquisition module, for obtaining prize drawing triggering command and generating the random number in a preset range;
Judgment module, if for being judged that the random number is less than preset basic prize-winning value, it is same according to being stored in Electronic ticket parameter in one distributed caching determines the awards type of the corresponding account of the prize drawing triggering command;
Module is provided, for providing the corresponding electronics of the awards type to the corresponding account of the prize drawing triggering command Certificate.
The third aspect, the application provides a kind of electronic equipment, including memory, processor and storage are on a memory and can The computer program run on a processor, the processor are realized described based on distributed caching when executing described program The step of electronic ticket data matching method.
Fourth aspect, the application provide a kind of computer readable storage medium, are stored thereon with computer instruction, the finger It enables and is performed the step of realizing the electronic ticket data matching method based on distributed caching.
As shown from the above technical solution, the embodiment of the present application provides a kind of electronic ticket Data Matching based on distributed caching Method and device, wherein the electronic ticket data matching method based on distributed caching includes: the prize drawing triggering command based on acquisition The corresponding random number generated in a preset range;If knowing that the random number is less than preset basic prize-winning value through judgement, The awards of the corresponding account of the prize drawing triggering command are then determined according to the electronic ticket parameter being stored in same distributed caching Type;The corresponding electronic ticket of the awards type is provided to the corresponding account of the prize drawing triggering command, can be improved electronic ticket The efficiency of Data Matching process, and the ability of electronic ticket Data Matching end reply high concurrent scene, Jin Erti can be successfully managed The stability and validity of high entire electronic ticket prize drawing process, while can be based on movable rhythm, by the electricity in distributed environment The elements such as sub- certificate discharging quantity and development of the activity time are planned as a whole to get up, and according to movable rhythm, the prize-winning that dynamic adjusts special award is general Rate, for financial technology enterprise electronic ticket do it is orderly, it is balanced granting provide new approaches, can be improved electronic ticket Data Matching Process copes with the ability of high concurrent scene, improves the service efficiency of electronic ticket data matching device.
Detailed description of the invention
In order to illustrate the technical solutions in the embodiments of the present application or in the prior art more clearly, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this Some embodiments of application for those of ordinary skill in the art without creative efforts, can be with It obtains other drawings based on these drawings.
Fig. 1 is the flow diagram of the electronic ticket data matching method based on distributed caching in the embodiment of the present application;
Fig. 2 is that the process of the electronic ticket data matching method based on distributed caching in another embodiment of the application is shown It is intended to;
Fig. 3 is the step 211 of the electronic ticket data matching method based on distributed caching in the embodiment of the present application to 212 Flow diagram;
Fig. 4 be the embodiment of the present application in the electronic ticket data matching method based on distributed caching step 211a extremely The flow diagram of 211d;
Fig. 5 be the embodiment of the present application in the electronic ticket data matching method based on distributed caching step 211e extremely The flow diagram of 211g;
Fig. 6 is the stream of the electronic ticket data matching method based on distributed caching in the application one or more embodiment Journey schematic diagram;
Fig. 7 is the structural schematic diagram of the electronic ticket data matching device based on distributed caching in the embodiment of the present application;
Fig. 8 is that the structure of the electronic ticket data matching device based on distributed caching in the application specific application example is shown It is intended to;
Fig. 9 is that the process of the electronic ticket data matching method based on distributed caching in the application specific application example is shown It is intended to;
Figure 10 is in the application specific application example based on distributed caching technology, according to " time shaft " and " quantity axis " Dynamic adjustment special award provides the reference axis schematic diagram of rhythm;
Figure 11 is the electronic ticket data matching method based on distributed caching in another specific application example of the application Flow diagram;
Figure 12 is that the system of the electronic equipment 9600 of the embodiment of the present application constitutes schematic block diagram.
Specific embodiment
In order to make those skilled in the art more fully understand the technical solution in this specification, below in conjunction with the application Attached drawing in embodiment, the technical scheme in the embodiment of the application is clearly and completely described, it is clear that described reality Example is applied to be merely a part but not all of the embodiments of the present application.Based on the embodiment in the application, this field is general Logical technical staff every other embodiment obtained without making creative work belongs to the application protection Range.
Based on this, in order to improve the ability of reply high concurrent scene, and then the stabilization of electronic ticket lottery system is improved Property and validity, consider from the electronic ticket prize drawing mechanism for changing traditional centralized data storage management and be based on distributed electricity Sub- certificate Data Matching mechanism is started with, and distributed caching technology is based on, and will be scattered in electronic ticket on different application server and is provided number Amount is stored in distributed caching, and multiple time points and multiple quantity point are arranged, when marketing activity reaches some point, dynamic Preset minimum winning probability and preset highest winning probability are adjusted, to ensure that it is effective and equal that the electronic ticket of substantial worth is accomplished The granting of weighing apparatus.
According to above content, a kind of electronic ticket Data Matching dress based on distributed caching is provided in the embodiment of the present application It sets, being somebody's turn to do the electronic ticket data matching device based on distributed caching can be a server or client device, it is possible to understand that , the client device may include smart phone, Flat electronic equipment, network machine top box, portable computer, desk-top Computer, personal digital assistant (PDA), mobile unit and intelligent wearable device etc..Wherein, the intelligent wearable device may include Smart glasses, smart watches and Intelligent bracelet etc..
In practical applications, the part for carrying out the electronic ticket Data Matching based on distributed caching can be in such as above content The server side executes, and operation that can also be all is all completed in the client device.It specifically can be according to described The processing capacity of client device and the limitation of user's usage scenario etc. select.The application is not construed as limiting this.If institute Some operations are all completed in the client device, and the client device can also include processor.
Above-mentioned client device can have communication module (i.e. communication unit), can be led to long-range server Letter connection, realizes and transmits with the data of the server.The server may include the server of task schedule center side, It also may include the server of halfpace in other implement scenes, such as have communication linkage with task schedule central server Third-party server platform server.The server may include single computer unit, also may include multiple The server cluster of server composition or the server architecture of distributed devices.
Any suitable network protocol can be used between the server and the client device to be communicated, including In the network protocol that the application submitting day is not yet developed.The network protocol for example may include ICP/IP protocol, UDP/IP Agreement, http protocol, HTTPS agreement etc..Certainly, the network protocol for example can also include using on above-mentioned agreement RPC agreement (Remote Procedure Call Protocol, remote procedure call protocol), REST agreement (Representational State Transfer, declarative state transfer protocol) etc..
In one or more embodiments of the application, the calculate node and the host node belong to same Linux Cluster (load balancing cluster).The operating system of the Linux cluster is one and is used to come into contacts with hardware and be user program The rudimentary support programs of one limited service set are provided.One computer system is the homobium of a hardware and software, they It interdepends, it is indivisible.The hardware of computer contains peripheral equipment, processor, memory, hard disk and other electronic equipments Form the engine of computer.But operate without software and control it, it itself is inoperable.Complete this control work The software of work is known as operating system, is referred to as " kernel " in the term of Linux, is referred to as " core ".Linux kernel Main modular (or component) divide following components: storage management, CPU and management of process, file system, equipment management and drive Dynamic, network communication and the initialization of system (guidance), system calling etc..
It is illustrated especially by following each embodiments.
In order to improve the efficiency of electronic ticket Data Matching process, and electronic ticket Data Matching end can be successfully managed and answered To the ability of high concurrent scene, and then the stability and validity of entire electronic ticket prize drawing process are improved, the application provides one kind Executing subject is the electronic ticket Data Matching based on distributed caching of the electronic ticket data matching device based on distributed caching Method, referring to Fig. 1, this method specifically includes:
Step 100: the corresponding random number generated in a preset range of the prize drawing triggering command based on acquisition.
Specifically, the preset range can be set according to actual needs, for example, preset basis prize-winning value is 10, The so described preset range can be 0-100, generate a number at random out of 0-100 as corresponding with prize drawing triggering command Random number.
Step 200: same according to being stored in if knowing that the random number is less than preset basic prize-winning value through judgement Electronic ticket parameter in distributed caching determines the awards type of the corresponding account of the prize drawing triggering command.
Specifically, step 200 includes:
Step 210: knowing that the random number is less than preset basic prize-winning value through judgement.
Step 220: the prize drawing triggering command pair is determined according to the electronic ticket parameter being stored in same distributed caching The awards type for the account answered.
Specifically, the awards type includes: common prize awards type and special award awards type.
It is to be appreciated that will be dispersed in the ordinary electronic certificate total amount provided on each application server, special award electronics Certificate total amount, minimum prize-winning value, highest prize-winning value are stored in same distributed caching, hold activity schedules and electronic ticket with whole The rhythm of granting.
Step 300: providing the corresponding electronic ticket of the awards type to the corresponding account of the prize drawing triggering command.
Specifically, commonly the corresponding electronic ticket of prize awards type is common prize electronic ticket, and special award awards type is corresponding Electronic ticket is special award electronic ticket.It is to be appreciated that providing the awards type to the corresponding account of the prize drawing triggering command Corresponding electronic ticket, which can be for the electronic ticket information to be stored in the electronic ticket data matching device, stores user account In the database of information.It is to be appreciated that also including after providing the corresponding electronic ticket of the awards type: described in update The ordinary electronic certificate total amount provided and special award electronic ticket total amount in same distributed caching.
Specifically, the electronic ticket parameter includes: the common prize electronic ticket total amount provided and the special award provided Electronic ticket total amount.Further, in order to improve the validity and harmony of electronic ticket data matching method, referring to fig. 2,
Step 200 also includes:
Step 201: according to the common prize electronic ticket total amount provided being stored in same distributed caching and having provided Special award electronic ticket total amount, the awards class of the corresponding account of the prize drawing triggering command is determined according to preset decision rule Type.
In order to reduce the memory consumption of the electronic ticket data matching device based on distributed caching, referring to fig. 2, in step Also include before 100:
Step 001: receiving the trading instruction for meeting default prize drawing qualification, and corresponding prize drawing is generated based on the trading instruction Triggering command.
It can be avoided invalid prize drawing process, reduce the memory pressure of prize drawing process, and then can be improved the electronics The utilization rate of certificate data matching device.Specifically, the default prize drawing qualification can be set according to the actual situation, the application couple This is with no restriction.For example, user carries out deposit transaction, the amount of money reaches 10,000 yuan, that is, meets default prize drawing qualification, generate corresponding Prize drawing triggering command.The trading instruction can be transfer transaction instructions and payment transaction etc., the information for including have type of transaction, Account information, transaction amount and whether meet default prize drawing qualification etc., corresponding, the prize drawing triggering command includes account Information etc..
Specifically, the electronic ticket parameter also includes: preset minimum prize-winning value and preset highest prize-winning value;Relatively Ying Di, in order to further increase the validity of electronic ticket Data Matching, and it is more equal to provide electronic ticket during activity Weighing apparatus, referring to Fig. 3, step 201 also includes:
Step 211: having reached preset quantity point or current system in the determining common prize electronic ticket total amount provided When the system time has reached preset time point or later, it is current right to judge whether the special award electronic ticket total amount provided is less than That answers should send out special award electronic ticket quantity.
Specifically, preset quantity point or present system time are not up in the common prize electronic ticket total amount provided When having reached preset time point or later, judge whether the random number is less than preset minimum prize-winning value, if so, really The fixed awards type for drawing a lottery the corresponding account of triggering command is special award awards type.The preset minimum prize-winning value and Preset highest prize-winning value can be set according to actual needs, the application to this with no restriction.For example, described preset minimum Prize-winning value is 1, and preset highest prize-winning value is 95.
For example, Active duration is 5 days, there is 100,000 ordinary electronic certificates and 5 special award electronic tickets.Temporally draw Point, activity in 5 days has 5 special award electronic tickets, issues one daily;It is divided by quantity, 100,000 ordinary electronic certificate collocation 5 Open special award electronic ticket, it should it is every to provide 20,000 common prize electronic tickets, it should just provide a special award electronic ticket.Namely It says, it is every to provide 20,000 common prize electronic tickets, that is, reach the preset quantity point;Activity has carried out 24 hours, 48 hours, 72 When hour, 96 hours and 120 hours, that is, reach the preset time point.If the common prize electronic ticket total amount provided When having reached preset quantity point and commonly encouraging electronic ticket and provided 20,000, then the special award electronic ticket quantity that should send out is 1. Present system time has reached preset time point activity when having carried out 48 hours, and the special award electronic ticket quantity that should send out is 2 .
Step 212: if the special award electronic ticket total amount provided should send out special award electronic ticket less than currently corresponding Quantity, and know that the random number is less than the preset highest prize-winning value through further judgement, it is determined that the prize drawing touching The awards type for the corresponding account that sends instructions is special award awards type.
Step 212 specifically includes:
Step 212A: the special award electronic ticket total amount provided should send out special award electronic ticket number less than currently corresponding Amount.
Step 212B: know that the random number is less than the preset highest prize-winning value through further judgement.
Step 212C: the awards type for determining the corresponding account of the prize drawing triggering command is special award awards type.
In order to further increase the harmony and validity of electronic lottery granting, in the application one or more embodiment In, referring to fig. 2, also include before step 100:
Step 002: all types of electronic tickets of different number are generated according to preset prize drawing rule, wherein the electronics Lottery ticket includes: common prize electronic ticket and special award electronic ticket.
Step 003: the electronic ticket is stored in native database.
Specifically, the preset prize drawing rule include movable number of days, the movable time started, the activity end time, The pattern of the quantity of all types of electronic tickets and each electronic ticket;The common prize electronic ticket is further divided into the common of different denominations Encourage electronic ticket.
Referring to fig. 4, one or more real in the application in order to further increase the harmony and validity of electronic ticket granting It applies in example, is determining that the common prize electronic ticket total amount provided has reached preset quantity point or work as described in the step 211 Before preceding system time has reached preset time point, also include:
Step 211a: electronic ticket group is divided according to the quantity of the special award electronic ticket.
Step 211b: according to the quantitative proportion relationship between the common prize electronic ticket and special award electronic ticket to described general Logical prize electronic ticket carries out equal portions grouping, and will commonly encourage electronic ticket described in each group and be separately added into each electronic ticket group, In, it is successively provided in sequence between each electronic ticket group.
Step 211c:, then will be described whenever having provided the last one ordinary electronic certificate in any electronic ticket group Preset quantity point is updated to the common prize electronic ticket total amount provided in presently described distributed caching;Wherein, the electronics Certificate includes: special award electronic ticket and common prize electronic ticket.
For example, if the quantity of the common prize electronic ticket is 100,000, the quantity of special award electronic ticket is 5, Electronic ticket group is divided into 5 groups, the quantitative proportion relationship between the common prize electronic ticket and special award electronic ticket is 20000:1, Common prize electronic ticket is divided into 5 groups every group 20,000 common prize electronic tickets accordingly, every group 20,000 common prize electronic tickets are added respectively Enter in electronic ticket group, i.e. every group of electronic ticket group has 1 special award electronic ticket and 20,000 common prize electronic tickets.It is every to have provided one group All common prize electronic tickets and special award electronic ticket in electronic ticket group, then provide the common prize electronics in another group of electronic ticket group Certificate and special award electronic ticket.The sequence provided between electronic ticket group can be set according to the actual situation, and the application does not make this Limitation.
In the application one or more embodiment, in order to further increase the harmonious and effective of electronic ticket Data Matching Property, referring to fig. 4, in step 211, also include:
Step 211d:, will be current right if the common prize electronic ticket total amount provided has reached preset quantity point The special award electronic ticket quantity that should send out answered is updated in each electronic ticket group for all providing respective ordinary electronic certificate The corresponding summation of special award electronic ticket, wherein the electronic ticket includes: special award electronic ticket and common prize electronic ticket.
It is described in step 211 to determine that it is preset that the common prize electronic ticket total amount provided has reached referring to Fig. 5 Before quantity point or present system time have reached preset time point, also include:
Step 211e: by the common prize electronic ticket and special award electronic ticket respectively according to the work in preset prize drawing rule Dynamic number of days mean allocation.
Step 211f: common prize electronic ticket to be provided daily and corresponding daily special award electricity to be provided are obtained Sub- certificate.
Step 211g: described to send out special award electronic ticket quantity if present system time has reached preset time point For from the beginning of the activity to the daily corresponding summation of special award electronic ticket to be provided between present system time, Wherein, the electronic ticket includes: special award electronic ticket and common prize electronic ticket.
For example, if active days are 5 days, common electronic ticket total amount of encouraging is 100,000, and special award electronic ticket total amount is 5 It opens, then should send out 20,000 common prize electronic tickets and 1 special award electronic ticket daily, one is reached when activity carries out 48 hours in advance If time point, it is described should send out special award electronic ticket quantity be 2.
Specifically, during an electronic ticket Data Matching, the preset time point can have multiple, the quantity Point can have multiple.
Referring to Fig. 6, in order to further increase the flexibility and stability of electronic ticket Data Matching process, step 100 it Afterwards, also include:
Step 400: if being judged, the random number is more than preset basic prize-winning value, exports the letter that display is not got the winning number in a bond Breath.
Also include after step 210 to further increase the accuracy of data during electronic ticket Data Matching Have:
Step 202: if the common prize electronic ticket total amount provided is not up to preset quantity point and current system Between not up to preset time point, then judge whether the random number is more than preset minimum prize-winning value.
Step 203: if the random number is more than preset minimum prize-winning value, obtaining any common prize electronic ticket pair at random The unique code of the electronic ticket answered.
Specifically, unique code can be number or letter etc., can distinguish different electronic tickets.
Step 204: if the corresponding electronic ticket of the unique code of the electronic ticket in native database, is triggered to the prize drawing Corresponding account is instructed to provide common prize electronic ticket;Wherein, the preset minimum prize-winning value is also contained in the electronic ticket ginseng In number;The electronic ticket includes: commonly encouraging electronic ticket.
In order to further increase the harmony of electronic lottery granting, after step 211, also include:
Step 211h: if the special award electronic ticket total amount provided, which is not less than, should send out special award electronic ticket quantity, Judge whether the random number is more than the preset minimum prize-winning value.
Step 211i: if the random number is more than the preset minimum prize-winning value, any common prize electricity is obtained at random The corresponding unique code of electronic ticket of sub- certificate.
Step 211j: if the corresponding electronic ticket of the unique code of the electronic ticket in native database, is touched to the prize drawing The corresponding account that sends instructions provides common prize electronic ticket;Wherein the electronic ticket includes: commonly encouraging electronic ticket.
After step 212A, also include:
Step 212a: know that the random number is more than the preset highest prize-winning value through further judgement, then obtain at random Take the corresponding unique code of electronic ticket of any common prize electronic ticket.
Step 212b: if the corresponding electronic ticket of the unique code of the electronic ticket in native database, is touched to the prize drawing The corresponding account that sends instructions provides common prize electronic ticket;Wherein the electronic ticket includes: commonly encouraging electronic ticket.
After step 203,211i or 212a, also separately include:
Step 500: if the corresponding electronic ticket of unique code not in native database, exports the letter that display is not got the winning number in a bond Breath.
Specifically, the information or prize information that do not get the winning number in a bond may be displayed on display screen.
For from software view, in order to improve the efficiency of electronic ticket Data Matching process, and it can successfully manage The ability of high concurrent scene is coped at electronic ticket Data Matching end, and then improves the stability and effectively of entire electronic ticket prize drawing process Property, the application provides a kind of for executing in the electronic ticket data matching method based on distributed caching in all or part The embodiment of the electronic ticket data matching device based on distributed caching held, the electronic ticket data based on distributed caching Coalignment specifically includes following content referring to Fig. 7:
Acquisition module 10, for obtaining prize drawing triggering command and generating the random number in a preset range.
Judgment module 20, if basis is stored in for being judged that the random number is less than preset basic prize-winning value Electronic ticket parameter in same distributed caching determines the awards type of the corresponding account of the prize drawing triggering command.
Module 30 is provided, for providing the corresponding electronics of the awards type to the corresponding account of the prize drawing triggering command Certificate.
Based on above-mentioned electronic ticket data matching method and device based on distributed caching, the embodiment of the present application can pass through Electronic ticket data matching device based on distributed caching executes the process of the electronic ticket Data Matching based on distributed caching, is It further increases the efficiency of electronic ticket Data Matching process, and electronic ticket Data Matching end reply high concurrent can be successfully managed The ability of scene, and then the stability and validity of entire electronic ticket prize drawing process are improved, below to using the embodiment of the present application The electronic ticket data matching device based on distributed caching and the electronic ticket Data Matching side based on distributed caching The application scenarios of method are specifically described.
(1) concrete application of the electronic ticket data matching device based on distributed caching
Referring to Fig. 8, the electronic ticket data matching device based on distributed caching includes batch pre-generatmg blank certificate Unit 1, activity and lottery information storage unit 2, lottery elements 3, prize issuing unit 4.The function that the lottery elements are realized It is equivalent to the function that above-mentioned acquisition module and judgment module are implemented in combination with, the function that the prize issuing unit is realized is equivalent to It states and provides the function that module is realized.It is described in detail below:
Batch pre-generatmg blank certificate unit 1, for generating the electronic ticket of different denominations, quantity according to active rule in advance.
The information of marketing activity is stored in distribution with distributed caching technology by movable and lottery information storage unit 2 It include basic winning probability, minimum winning probability and highest winning probability in formula caching.
Lottery elements 3 are used for electronic ticket Data Matching.By two-wheeled Data Matching and probabilistic determination, winning probability is held With rhythm.Prize drawing is requested first to generate a random number, if the random number is less than or equal to basic winning probability, then it is assumed that this is asked Asking can get the winning number in a bond, and otherwise, directly return and do not get the winning number in a bond, log off, and exclude a large amount of system in effective access to reduce.For passing through The request of basic winning probability, then need further to determine be can be with special award or a common prize to this.In view of Special award needs balancedly to provide to Rhythm Controlling for movable marketing facilitation.According to movable rhythm, dynamically adjust The winning probability of special award then in time as soon as possible sends out special award when reaching its " quantity axis " or " time shaft " arbitrarily first It runs out.
Prize issuing unit 4: for providing corresponding electronic ticket to the account of user.
(2) concrete application of the electronic ticket data matching method based on distributed caching
In conjunction with the above-mentioned electronic ticket data matching device based on distributed caching, the application provides a kind of based on distributed slow The specific application example for the electronic ticket data matching method deposited specifically includes referring to Fig. 9:
S1: judge whether random number is greater than basic winning probability.
Specifically, step S1 includes:
S11: 0-100 random number and basic winning probability is taken to compare.
S12: it if random number is greater than basic winning probability, returns and does not get the winning number in a bond.
Specifically, every transaction is come in, and generates a random number (such as 0-100), for example setting one " is got the winning number in a bond on basis Probability " be 10%, then it is all be greater than 10 random number, all directly return " not getting the winning number in a bond ", do not enter system prize drawing, if be lower than this A 10 random number, then this transaction must be got the winning number in a bond, and be only special award or common prize on earth, then need further to count It calculates.Really if so, then just having blocked the ineffective access of all pairs of databases in the first stage, mitigate backstage pressure.
S2: the dynamic winning probability adjustment based on distributed caching enables special award by movable rhythm equilibrium granting.
Step S2 includes:
S21: quantity, time and practical rhythm are calculated separately based on distributed caching.
S22: judge that special award provides whether rhythm is greater than practical rhythm.
S23: if special award provides rhythm and is greater than or equal to practical rhythm, it is general as dynamically getting the winning number in a bond to return to highest winning probability Rate.
S24: if special award provides rhythm and is less than practical rhythm, minimum winning probability is returned as dynamic winning probability.
S25: judge whether random number is greater than dynamic winning probability.
S26: if random number is less than or equal to dynamic winning probability, special award electronic ticket is sent to corresponding user's account Family.
Specifically, it is based on distributed caching technology, will be dispersed in the ordinary electronic certificate provided on each application server Total amount, special award electronic ticket quantity, minimum winning probability, highest winning probability are stored in distributed caching, pass through " the time Axis " and " quantity axis " judgement activity rhythm, and dynamic adjusts " minimum winning probability ", " highest winning probability ", guarantees " the time Axis " and " quantity axis " as early as possible go out special award granting when any one meets condition.
For example, referring to Figure 10, a marketing activity is added, activity continues 5 days, there are 100,000 ordinary electronic certificates (80,000 5 yuan of certificates, 1.5 ten thousand 10 yuan, 0.5 ten thousand 20 yuan), separately there is the special award of " 7 day tour of Southeast Asia " of 5 20,000 yuan of values.
Ideally: temporally dividing, activity in 5 days has 5 special awards, issues one daily, more balanced;It presses Quantity divides, and 100,000 common lottery tickets are arranged in pairs or groups 5 special award lottery tickets, it should which 20,000 common lottery tickets of every granting should just provide One special award, it is more balanced.
But in actual development of the activity situation, movable hot degree is multifarious, it is impossible to all come by perfect condition It carries out.The scheme of time shaft and quantity axis dynamic regulation that the present invention designs, has well solved this problem.From this activity From the point of view of, first 3 days are more hot, are all to have reached quantity axis first, and as early as possible distribute away Grand Prix;Then the stage, then activity was dropped Temperature can only then distribute away its special award by time shaft.
Based on distributed caching, dynamic adjusts winning probability, guarantees the algorithm of special award granting:
In distributed caching, store movable " quantity commonly encouraged in ", " in special award electronic ticket quantity ", " minimum winning probability " and " highest winning probability ".Such as minimum winning probability is 1%, highest winning probability 95%;Under normality, All be to have passed through the client of " basic winning probability " using " minimum winning probability ", all can only in " ordinary electronic certificate ", when When the quantity or time that " ordinary electronic certificate " is provided have reached corresponding time shaft (1 day) or quantity axis (20,000), this is answered This puts out one " special award ", this goes in distributed caching to inquire, if a special award has been provided, if having sent out It puts, then continues that " minimum winning probability " is kept not adjust;If having arrived the condition that time shaft or quantity axis meet, but practical The special award electronic ticket quantity of granting is less than the special award electronic ticket quantity that should be sent out, then needs its " minimum winning probability " dynamic It is adjusted to " highest winning probability ", such as is adjusted to 95% from 1% winning probability, then in next a few transactions, that is, have In possible " special award ".After " special award " is provided, " the special award electronic ticket quantity provided " will be equal to " Ying Fafang's Special award electronic ticket quantity ", then this time will encourage " highest winning probability " adjusts back " minimum winning probability ".I.e. under normality, just Always " minimum winning probability " (such as 1%), the transaction for having passed through " basic winning probability " essentially all in this way, all only Ordinary electronic certificate in energy.Referring to Figure 10, when commonly prize electronic ticket provides 20,000, probability that special award electronic ticket is provided It is increased to highest winning probability, until having provided a special award electronic ticket, the probability that special award electronic ticket is provided is reduced to Minimum winning probability, when active between when reaching 1 day, the quantity that special award electronic ticket has been provided has reached 1, therefore does not have to again Adjust the probability of special award electronic ticket granting;And so on, when active between when reaching 4 days, the common prize electronic ticket provided 80,000 are also not up to, the special award electronic ticket quantity provided is 3 less than the special award electronic ticket quantity 4 that should be provided, therefore, The probability that special award electronic ticket is provided is increased to highest winning probability at this time.
S3: judge whether to provide common prize electronic ticket.
Specifically, step S3 includes:
S31: if random number is greater than dynamic winning probability, electronic ticket is extracted in big prizes pool.
S32: if drawing electronic ticket, common prize electronic ticket is obtained.
S33: it if there are abnormal conditions, returns and does not get the winning number in a bond.
Specifically, common electronic ticket has pre-generated in lot flow before.For being handed over by getting the winning number in a bond Easily, can in this big prizes pool, by random algorithm, take at random a certificate (the different certificate of denomination, in Mass production, Certificate through the different denominations of random storage).Theoretically, the transaction of all " having passed through basic winning probability ", should be able to all obtain An electronic ticket is taken, but is not precluded in the case of " high concurrent ", the case where same certificate is snatched away by others, for such exception Situation then externally returns to " not getting the winning number in a bond ", then closes the trade.
Referring to Figure 11, in another specific application example of the application, the electronic ticket data based on distributed caching Method of completing the square specifically includes:
S100: Mass production electronic ticket.
S200: distributed storage caching activities information.
S300: pass through basic winning probability.
S400: special award winning probability is adjusted according to time, Number dynamics.
S500: drawing a lottery and updates prize-winning quantity.
S600: prize granting.
It can be with the electronic ticket data matching method and device energy provided by the present application based on distributed caching from foregoing description It is enough to plan as a whole to get up with elements such as development of the activity times by the electronic ticket discharging quantity in distributed environment based on movable rhythm, root According to movable rhythm, dynamic adjusts the winning probability of special award, does orderly, balanced provide for the electronic ticket of financial technology enterprise and provides New approaches, improve the ability of electronic ticket lottery system reply high concurrent scene, and then improve the stabilization of electronic ticket lottery system Property and validity.
For hardware view, in order to improve the ability of reply high concurrent scene, and then electronic ticket prize drawing system is improved The stability and validity of system, the application provide a kind of whole in the electronic ticket data matching method based on distributed caching or Electronic equipment described in the embodiment of the electronic equipment of partial content specifically includes following content:
Processor (processor), memory (memory), communication interface (Communications Interface) and Bus;Wherein, the processor, memory, communication interface complete mutual communication by the bus;The communication interface For realizing the letter between the relevant devices such as the electronic ticket data matching device based on distributed caching and user terminal Breath transmission;The electronic equipment can be desktop computer, tablet computer and mobile terminal etc., and the present embodiment is without being limited thereto.At this In embodiment, which is referred to embodiment for realizing the electronic ticket Data Matching side based on distributed caching The embodiment of method and implemented for realizing the embodiment of the electronic ticket data matching device based on distributed caching, Content is incorporated in this, and overlaps will not be repeated.
Figure 12 is the schematic block diagram that the system of the electronic equipment 9600 of the embodiment of the present application is constituted.As shown in figure 12, the electricity Sub- equipment 9600 may include central processing unit 9100 and memory 9140;Memory 9140 is coupled to central processing unit 9100. It is worth noting that, the Figure 12 is exemplary;Other kinds of structure can also be used, to supplement or replace the structure, with Realize telecommunications functions or other function.
In the application one or more embodiment, the electronic ticket Data Matching function based on distributed caching can be collected At into central processing unit 9100.Wherein, it is control as follows to can be configured as progress for central processing unit 9100:
Step 100: the corresponding random number generated in a preset range of the prize drawing triggering command based on acquisition.
Step 200: same according to being stored in if knowing that the random number is less than preset basic prize-winning value through judgement Electronic ticket parameter in distributed caching determines the awards type of the corresponding account of the prize drawing triggering command.
Step 300: providing the corresponding electronic ticket of the awards type to the corresponding account of the prize drawing triggering command.
As can be seen from the above description, the electronic equipment that embodiments herein provides, can be improved reply high concurrent scene Ability, and then improve the stability and validity of electronic ticket lottery system.
In another embodiment, the electronic ticket data matching device based on distributed caching can be with central processing unit 9100 separate configurations, such as the electronic ticket data matching device based on distributed caching can be configured to and central processing unit The chip of 9100 connections, realizes the electronic ticket Data Matching function based on distributed caching by the control of central processing unit.
As shown in figure 12, which can also include: communication module 9110, input unit 9120, at audio Manage device 9130, display 9160, power supply 9170.It is worth noting that, electronic equipment 9600 is also not necessary to include Figure 12 Shown in all components;In addition, electronic equipment 9600 can also include the component being not shown in Figure 12, can refer to existing Technology.
As shown in figure 12, central processing unit 9100 is otherwise referred to as controller or operational controls, may include microprocessor Or other processor devices and/or logic device, the central processing unit 9100 receive each of input and controlling electronic devices 9600 The operation of a component.
Wherein, memory 9140, such as can be buffer, flash memory, hard disk driver, removable medium, volatile memory, non- One of volatile memory or other appropriate devices or more.Above-mentioned information related with failure can be stored, additionally The program executed for information about can be stored.And the program of the memory 9140 storage can be performed in central processing unit 9100, with Realize information storage or processing etc..
Input unit 9120 provides input to central processing unit 9100.The input unit 9120 is, for example, key or touches defeated Enter device.Power supply 9170 is used to provide electric power to electronic equipment 9600.Display 9160 is for carrying out the display such as image and text The display of object.The display may be, for example, LCD display, and but it is not limited to this.
The memory 9140 can be solid-state memory, for example, read-only memory (ROM), random access memory (RAM), SIM card etc..The memory that may also is that, saves information when power is off, can be selectively erased And more data are equipped with, the example of the memory is sometimes referred to as EPROM etc..Memory 9140 can also be some other type Device.Memory 9140 includes buffer storage 9141 (sometimes referred to as buffer).Memory 9140 may include using/ Function storage unit 9142, the applications/functions storage unit 9142 is for storing application program and function program or for passing through center Processor 9100 executes the process of the operation of electronic equipment 9600.
Memory 9140 can also include data store 9143, the data store 9143 for storing data, such as Contact person, numerical data, picture, sound and/or any other data used by electronic equipment.The driving journey of memory 9140 Sequence storage unit 9144 may include electronic equipment for communication function and/or other function for executing electronic equipment (such as Messaging application, address list application etc.) various drivers.
Communication module 9110 is the transmitter receiver 9110 sent and received signal via antenna 9111.Communicate mould Block (transmitter receiver) 9110 is coupled to central processing unit 9100, and to provide input signal and receive output signal, this can be with The case where with normal mobile communication terminal, is identical.
Based on the different communication technologys, in same electronic equipment, multiple communication modules 9110 can be set, such as honeycomb Network module, bluetooth module and/or Wireless LAN module etc..Communication module (transmitter receiver) 9110 is also via audio Processor 9130 is coupled to loudspeaker 9131 and microphone 9132, to provide audio output via loudspeaker 9131, and receives and From the audio input of microphone 9132, to realize common telecommunications functions.Audio processor 9130 may include any suitable Buffer, decoder, amplifier etc..In addition, audio processor 9130 is additionally coupled to central processing unit 9100, so that can Can record in the machine by microphone 9132, and allow to play the sound stored in the machine by loudspeaker 9131 Sound.
Foregoing description can be improved electronic ticket Data Matching process it is found that the electronic equipment that embodiments herein provides Efficiency, and the ability of electronic ticket Data Matching end reply high concurrent scene can be successfully managed, and then improve entire electronic ticket The stability and validity of prize drawing process.
Embodiments herein also provides the electronic ticket data based on distributed caching that can be realized in above-described embodiment A kind of computer readable storage medium of Overall Steps in matching process is stored with calculating on the computer readable storage medium Machine program, the computer program realize the electronic ticket data based on distributed caching in above-described embodiment when being executed by processor The Overall Steps of matching process, for example, the processor realizes following step when executing the computer program:
Step 100: the corresponding random number generated in a preset range of the prize drawing triggering command based on acquisition.
Step 200: same according to being stored in if knowing that the random number is less than preset basic prize-winning value through judgement Electronic ticket parameter in distributed caching determines the awards type of the corresponding account of the prize drawing triggering command.
Step 300: providing the corresponding electronic ticket of the awards type to the corresponding account of the prize drawing triggering command.
As can be seen from the above description, computer readable storage medium provided by the embodiments of the present application, it is high simultaneously to can be improved reply The ability of scene is sent out, and then improves the stability and validity of electronic ticket lottery system.
Various embodiments are described in a progressive manner for the above method in the application, identical phase between each embodiment As partially may refer to each other, each embodiment focuses on the differences from other embodiments.Related place Illustrate referring to the part of embodiment of the method.
It should be understood by those skilled in the art that, embodiments herein can provide as method, system or computer program Product.Therefore, complete hardware embodiment, complete software embodiment or reality combining software and hardware aspects can be used in the application Apply the form of example.Moreover, it wherein includes the computer of computer usable program code that the application, which can be used in one or more, The computer program implemented in usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) produces The form of product.
The application is referring to method, the process of equipment (system) and computer program product according to the embodiment of the present application Figure and/or block diagram describe.It should be understood that every one stream in flowchart and/or the block diagram can be realized by computer program instructions The combination of process and/or box in journey and/or box and flowchart and/or the block diagram.It can provide these computer programs Instruct the processor of general purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices to produce A raw machine, so that being generated by the instruction that computer or the processor of other programmable data processing devices execute for real The device for the function of being specified in present one or more flows of the flowchart and/or one or more blocks of the block diagram.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing devices with spy Determine in the computer-readable memory that mode works, so that it includes referring to that instruction stored in the computer readable memory, which generates, Enable the manufacture of device, the command device realize in one box of one or more flows of the flowchart and/or block diagram or The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device, so that counting Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, thus in computer or The instruction executed on other programmable devices is provided for realizing in one or more flows of the flowchart and/or block diagram one The step of function of being specified in a box or multiple boxes.
Specific embodiment is applied in the application, and the principle and implementation of this application are described, above embodiments Explanation be merely used to help understand the present processes and its core concept;At the same time, for those skilled in the art, According to the thought of the application, there will be changes in the specific implementation manner and application range, in conclusion in this specification Hold the limitation that should not be construed as to the application.

Claims (16)

1. a kind of electronic ticket data matching method based on distributed caching characterized by comprising
The corresponding random number generated in a preset range of prize drawing triggering command based on acquisition;
If knowing that the random number is less than preset basic prize-winning value through judgement, basis is stored in same distributed caching Electronic ticket parameter determine the awards type of the corresponding account of the prize drawing triggering command;
The corresponding electronic ticket of the awards type is provided to the corresponding account of the prize drawing triggering command.
2. the electronic ticket data matching method according to claim 1 based on distributed caching, which is characterized in that the electricity Sub- certificate parameter includes:
The common prize electronic ticket total amount provided and the special award electronic ticket total amount provided;
Corresponding, the electronic ticket parameter that the basis is stored in same distributed caching determines the prize drawing triggering command pair The awards type for the account answered, comprising:
According to the common prize electronic ticket total amount provided and the special award electronics provided being stored in same distributed caching Certificate total amount determines the awards type of the corresponding account of the prize drawing triggering command according to preset decision rule.
3. the electronic ticket data matching method according to claim 1 based on distributed caching, which is characterized in that described Before the corresponding random number generated in a preset range of prize drawing triggering command based on acquisition, further includes:
The trading instruction for meeting default prize drawing qualification is received, and corresponding prize drawing triggering command is generated based on the trading instruction.
4. the electronic ticket data matching method according to claim 2 based on distributed caching, which is characterized in that the electricity Sub- certificate parameter further include:
Preset minimum prize-winning value and preset highest prize-winning value;
Correspondingly, the awards type packet that the corresponding account of the prize drawing triggering command is determined according to preset decision rule It includes:
Determining that the common prize electronic ticket total amount provided has reached preset quantity point or present system time has reached When preset time point or later, judging whether the special award electronic ticket total amount provided is less than current corresponding should send out top grade Encourage electronic ticket quantity;
If the special award electronic ticket total amount provided should send out special award electronic ticket quantity less than currently corresponding, and pass through into one Step judgement knows that the random number is less than the preset highest prize-winning value, it is determined that the corresponding account of the prize drawing triggering command The awards type at family is special award awards type.
5. the electronic ticket data matching method according to claim 1 based on distributed caching, which is characterized in that described Before the corresponding random number generated in a preset range of prize drawing triggering command based on acquisition, further includes:
The all types of electronic tickets of different number are generated according to preset prize drawing rule, wherein the electronic ticket includes: common prize Electronic ticket and special award electronic ticket;
And the electronic ticket is stored in native database.
6. the electronic ticket data matching method according to claim 4 based on distributed caching, which is characterized in that described If the common prize electronic ticket total amount provided has reached preset quantity point or when present system time has reached preset Between put before, comprising:
Electronic ticket group is divided according to the quantity of the special award electronic ticket;
According to it is described it is common prize electronic ticket and special award electronic ticket between quantitative proportion relationship to the common prize electronic ticket into The grouping of row equal portions, and will commonly encourage electronic ticket described in each group and be separately added into each electronic ticket group, wherein each electricity It is successively provided in sequence between sub- certificate group;
It is corresponding, it, then will be described default whenever having provided the last one ordinary electronic certificate in any electronic ticket group Quantity point be updated to the common prize electronic ticket total amount provided in presently described distributed caching;Wherein, the electronic ticket packet It includes: special award electronic ticket and common prize electronic ticket.
7. the electronic ticket data matching method according to claim 6 based on distributed caching, which is characterized in that also wrap It includes:
It, will the current corresponding Ying Fate if the common prize electronic ticket total amount provided has reached preset quantity point The special award electronic ticket in each electronic ticket group for all providing respective ordinary electronic certificate is updated to Deng prize electronic ticket quantity Corresponding summation, wherein the electronic ticket includes: special award electronic ticket and common prize electronic ticket.
8. the electronic ticket data matching method according to claim 4 based on distributed caching, which is characterized in that described If the common prize electronic ticket total amount provided has reached preset quantity point or when present system time has reached preset Between put before, comprising:
By the common prize electronic ticket and special award electronic ticket respectively according to the active days average mark in preset prize drawing rule Match;
Obtain common prize electronic ticket to be provided daily and corresponding daily special award electronic ticket to be provided;
It is corresponding, if present system time has reached preset time point, it is described should send out special award electronic ticket quantity be from To the daily corresponding summation of special award electronic ticket to be provided between present system time at the beginning of the activity, In, the electronic ticket includes: special award electronic ticket and common prize electronic ticket.
9. the electronic ticket data matching method according to claim 1 based on distributed caching, which is characterized in that described After the corresponding random number generated in a preset range of prize drawing triggering command based on acquisition, further includes:
If being judged, the random number is more than preset basic prize-winning value, exports the information that display is not got the winning number in a bond.
10. the electronic ticket data matching method according to claim 2 based on distributed caching, which is characterized in that described If knowing that the random number is less than after preset basic prize-winning value through judgement, further includes:
If the common prize electronic ticket total amount provided is not up to preset quantity point and present system time is not up to default Time point, then judge whether the random number is more than preset minimum prize-winning value;
If the random number is more than preset minimum prize-winning value, the corresponding electronic ticket of any common prize electronic ticket is obtained at random only One yard;
If the corresponding electronic ticket of the unique code of electronic ticket is in native database, to the corresponding account of the prize drawing triggering command Provide common prize electronic ticket in family;
Wherein, the preset minimum prize-winning value is also contained in the electronic ticket parameter;The electronic ticket includes: common prize electricity Sub- certificate.
11. the electronic ticket data matching method according to claim 4 based on distributed caching, which is characterized in that in institute State the special award electronic ticket total amount provided of judgement whether be less than it is current it is corresponding should send out special award electronic ticket quantity after, packet It includes:
If the special award electronic ticket total amount provided judges the random number not less than that should send out special award electronic ticket quantity It whether is more than the preset minimum prize-winning value;
If the random number is more than the preset minimum prize-winning value, the corresponding electronics of any common prize electronic ticket is obtained at random The unique code of certificate;
If the corresponding electronic ticket of the unique code of electronic ticket is in native database, to the corresponding account of the prize drawing triggering command Provide common prize electronic ticket in family;Wherein the electronic ticket includes: common prize electronic ticket.
12. the electronic ticket data matching method according to claim 4 based on distributed caching, which is characterized in that in institute If state the special award electronic ticket total amount provided be less than it is current it is corresponding should send out special award electronic ticket quantity after, also wrap It includes:
Further judged to know that the random number is more than the preset highest prize-winning value, then obtains any common prize electricity at random The corresponding unique code of electronic ticket of sub- certificate;
If the corresponding electronic ticket of the unique code of electronic ticket is in native database, to the corresponding account of the prize drawing triggering command Provide common prize electronic ticket in family;Wherein the electronic ticket includes: common prize electronic ticket.
13. the electronic ticket data matching method according to claim 10 based on distributed caching, which is characterized in that in institute It states after obtaining the corresponding unique code of electronic ticket of any common prize electronic ticket at random, further includes:
If the corresponding electronic ticket of unique code not in native database, exports the information that display is not got the winning number in a bond.
14. a kind of electronic ticket data matching device based on distributed caching characterized by comprising
Acquisition module, for obtaining prize drawing triggering command and generating the random number in a preset range;
Judgment module, if basis is stored in same point for being judged that the random number is less than preset basic prize-winning value Electronic ticket parameter in cloth caching determines the awards type of the corresponding account of the prize drawing triggering command;
Module is provided, for providing the corresponding electronic ticket of the awards type to the corresponding account of the prize drawing triggering command.
15. a kind of electronic equipment including memory, processor and stores the calculating that can be run on a memory and on a processor Machine program, which is characterized in that the processor realizes that claim 1 to 13 is described in any item and is based on dividing when executing described program The step of electronic ticket data matching method of cloth caching.
16. a kind of computer readable storage medium, is stored thereon with computer instruction, which is characterized in that described instruction is performed The step of Shi Shixian claim 1 to 13 described in any item electronic ticket data matching methods based on distributed caching.
CN201910795269.6A 2019-08-27 2019-08-27 Electronic ticket data matching method and device based on distributed caching Pending CN110503484A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910795269.6A CN110503484A (en) 2019-08-27 2019-08-27 Electronic ticket data matching method and device based on distributed caching

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910795269.6A CN110503484A (en) 2019-08-27 2019-08-27 Electronic ticket data matching method and device based on distributed caching

Publications (1)

Publication Number Publication Date
CN110503484A true CN110503484A (en) 2019-11-26

Family

ID=68589705

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910795269.6A Pending CN110503484A (en) 2019-08-27 2019-08-27 Electronic ticket data matching method and device based on distributed caching

Country Status (1)

Country Link
CN (1) CN110503484A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111784393A (en) * 2020-06-30 2020-10-16 中国工商银行股份有限公司 Electronic ticket issuing method and device
CN111861566A (en) * 2020-07-22 2020-10-30 南京欣网互联网络科技有限公司 Distributed cache-based prize pool dynamic control method and system
CN112269780A (en) * 2020-10-30 2021-01-26 北京小米移动软件有限公司 Method and device for screening data in data pool and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040148336A1 (en) * 2000-03-30 2004-07-29 Hubbard Edward A Massively distributed processing system architecture, scheduling, unique device identification and associated methods
CN106157071A (en) * 2015-03-27 2016-11-23 天脉聚源(北京)科技有限公司 A kind of method and system of public's account prize drawing
CN108073684A (en) * 2017-11-16 2018-05-25 深圳市买买提信息科技有限公司 A kind of data processing method, server and computer readable storage medium
CN108881368A (en) * 2018-04-22 2018-11-23 平安科技(深圳)有限公司 High concurrent service request processing method, device, computer equipment and storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040148336A1 (en) * 2000-03-30 2004-07-29 Hubbard Edward A Massively distributed processing system architecture, scheduling, unique device identification and associated methods
CN106157071A (en) * 2015-03-27 2016-11-23 天脉聚源(北京)科技有限公司 A kind of method and system of public's account prize drawing
CN108073684A (en) * 2017-11-16 2018-05-25 深圳市买买提信息科技有限公司 A kind of data processing method, server and computer readable storage medium
CN108881368A (en) * 2018-04-22 2018-11-23 平安科技(深圳)有限公司 High concurrent service request processing method, device, computer equipment and storage medium

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111784393A (en) * 2020-06-30 2020-10-16 中国工商银行股份有限公司 Electronic ticket issuing method and device
CN111784393B (en) * 2020-06-30 2024-02-02 中国工商银行股份有限公司 Electronic coupon issuing method and device
CN111861566A (en) * 2020-07-22 2020-10-30 南京欣网互联网络科技有限公司 Distributed cache-based prize pool dynamic control method and system
CN112269780A (en) * 2020-10-30 2021-01-26 北京小米移动软件有限公司 Method and device for screening data in data pool and storage medium

Similar Documents

Publication Publication Date Title
US11062554B2 (en) Decentralized distributed peer-to-peer wagering architecture and related systems and methods
CN110503484A (en) Electronic ticket data matching method and device based on distributed caching
JP2012113445A (en) Common point management server, common point management system and virtual currency exchange program
US20200394619A1 (en) Dynamic varyiance of crypto tokens supply including user holdings
CN111582844A (en) Block chain based commission fee distribution method, device and storage medium
KR102110395B1 (en) Server for mining exchange based on variable contribution and method for mining based on variable contribution
CN114830158B (en) Method and system for transaction verification in a distributed computing system
AU2004248209B2 (en) A monitoring system
CN109600414A (en) A kind of resource allocation methods, device, equipment and storage medium
JP7402187B2 (en) Control method, server, and program
WO2019040119A1 (en) Crypt - decentralized crypto-monetization system and method
JP2023115165A (en) Information processing device and program
EP2660767A1 (en) System for playing on the stock market (embodiments)
KR20150096569A (en) Funding system for social funding service
RU67744U1 (en) EXCHANGE GAME SYSTEM (OPTIONS)
CN110333953A (en) Data storage resource dispatching method and device
CN109801154A (en) Credit refund configuration method, device, equipment and storage medium
US11798358B2 (en) Casino decentralized management to collect and share player credit data
CN109670812A (en) Method of payment, device, terminal and storage medium
CN111815323B (en) Block chain donation method, electronic device and storage medium
KR20130082929A (en) Method and system for providing arcade game contents using cloud computing
JP7311194B1 (en) Profit sharing system, its program and profit sharing method
JP6121939B2 (en) Fee determining device, fee determining method and fee determining system
KR102582328B1 (en) Game system based on blockchain and the method thereof
US20240029521A1 (en) Computerized system and method for controlling an electronic account via executed betting schemes

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20191126