CN104281643A - Service data storage method, service machine and storage machine - Google Patents

Service data storage method, service machine and storage machine Download PDF

Info

Publication number
CN104281643A
CN104281643A CN201410396086.4A CN201410396086A CN104281643A CN 104281643 A CN104281643 A CN 104281643A CN 201410396086 A CN201410396086 A CN 201410396086A CN 104281643 A CN104281643 A CN 104281643A
Authority
CN
China
Prior art keywords
business
business datum
statistics data
timestamp
machine
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
CN201410396086.4A
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.)
Guangzhou Huaduo Network Technology Co Ltd
Original Assignee
Guangzhou Huaduo Network Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangzhou Huaduo Network Technology Co Ltd filed Critical Guangzhou Huaduo Network Technology Co Ltd
Priority to CN201410396086.4A priority Critical patent/CN104281643A/en
Publication of CN104281643A publication Critical patent/CN104281643A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/64Protecting data integrity, e.g. using checksums, certificates or signatures
    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07CTIME OR ATTENDANCE REGISTERS; REGISTERING OR INDICATING THE WORKING OF MACHINES; GENERATING RANDOM NUMBERS; VOTING OR LOTTERY APPARATUS; ARRANGEMENTS, SYSTEMS OR APPARATUS FOR CHECKING NOT PROVIDED FOR ELSEWHERE
    • G07C13/00Voting apparatus

Abstract

The invention discloses a service data storage method, a service machine and a storage machine, and belongs to the technical field of information. The service data storage method comprises the following steps that service data sent by at least one terminal is received in real time; a main storage machine for storing the service data is determined, and the main storage machine is connected in preset times; if the main storage machine is not successfully connected in the preset times, the service data is sent to a sub storage machine, and the service data is stored by the main storage machine; if the main storage machine is successfully connected in the preset times, the service data is sent to the main storage machine, the main storage machine stores the service data, the service data is subjected to synchronous mark addition, obtained synchronous data is sent to the sub storage machine, and the sub storage machine stores the synchronous data. When the main storage machine for storing the service data is not successfully connected in the preset times, the service data received in real time is sent to the sub storage machine to be stored, so the lost service data is reduced, the completeness of the stored service data is ensured, and the access efficiency of the service data is improved.

Description

The storage means of business datum, kiosk and memory machine
Technical field
The present invention relates to areas of information technology, particularly a kind of storage means of business datum, kiosk and memory machine.
Background technology
Along with the development of infotech, class of business gets more and more, and business datum amount rapidly increases.For internet ballot activity, owing to needing record often to open the business datums such as the source of ballot, business datum is had real-time is high, data volume is large feature, brings difficulty to the storage of business datum.
At present, when storage service data, the business datum that primary storage machine receiving terminal sends, and storage service data; If primary storage machine breaks down, then artificial primary storage machine is replaced by slack storage machine, makes the business datum that slack storage machine receiving terminal sends, and storage service data.
Realizing in process of the present invention, inventor finds that prior art at least exists following problem:
The data sent due to terminal in the process changed at memory machine can be lost, and the artificial replacing construction changing memory machine is longer, make the business datum of losing more, cannot ensure the integrality of the business datum stored.
Summary of the invention
In order to solve the problem of prior art, embodiments provide a kind of storage means of business datum, kiosk and memory machine.Described technical scheme is as follows:
First aspect, provides a kind of storage means of business datum, and described method comprises:
The business datum that at least one terminal of real-time reception sends;
Determine the primary storage machine storing described business datum, and in preset times, connect described primary storage machine;
If the described primary storage machine of unsuccessful connection, then send to from memory machine by described business datum in preset times, store described business datum by described from memory machine;
If successfully connect described primary storage machine in preset times, then described business datum is sent to described primary storage machine, described business datum is stored by described primary storage machine, and the synchrodata obtained described business datum interpolation sync id is sent to from memory machine, store described synchrodata by described from memory machine.
In conjunction with first aspect, in the first possible implementation of first aspect, described method, also comprises:
The business statistics data read request that receiving terminal sends, and described business statistics data read request is transmitted to primary storage machine and from memory machine;
Receive the first business statistics data and described the second business statistics data returned according to described business statistics data read request from memory machine that described primary storage machine returns according to described business statistics data read request;
The timestamp of more described first business statistics data and described second business statistics data and statistical magnitude, obtain the first comparative result;
The business statistics data determined according to described first comparative result are returned to described terminal;
Wherein, described first business statistics data are added timestamp by described primary storage machine to each business datum received and are carried out statistics and obtain, timestamp up-to-date in the timestamp of the described first business statistics data timestamp that to be described primary storage machine add each business datum received, the statistical magnitude of described first business statistics data is the quantity of the business datum received of described primary storage machine statistics; Described second business statistics data by described from memory machine each business datum received added to timestamp and carries out statistics obtain, the timestamp of described second business statistics data is timestamp up-to-date the described timestamp added each business datum received from memory machine, and the statistical magnitude of described second business statistics data is the quantity of the described business datum from memory machine statistics; Or, described second business statistics data are carried out statistics from memory machine to each synchrodata received obtained by described, the timestamp of described second business statistics data is described timestamp up-to-date from the timestamp that primary storage machine described in each synchrodata that memory machine receives adds, and the statistical magnitude of described second business statistics data is the quantity of the described synchrodata from memory machine statistics.
Second aspect, provides a kind of access method of business datum, and described method comprises:
Be received in the business datum of the kiosk transmission that success in preset times connects, described business datum is the business datum of at least one terminal transmission that described kiosk receives;
Sync id is added to described business datum, obtains the synchrodata that described business datum is corresponding;
Store described business datum, and described synchrodata is sent to from memory machine, described in making, store described synchrodata from memory machine.
In conjunction with second aspect, in the first possible implementation of second aspect, described method, also comprises:
Receive the business statistics data read request of the terminal transmission that kiosk forwards;
The first business statistics data are returned to described kiosk according to described business statistics data read request, described first business datum obtains by adding timestamp to the business datum received and carry out statistics, the timestamp of described first business statistics data is timestamp up-to-date in the timestamp added each business datum received, and the statistical magnitude of described first business statistics data is the quantity of the business datum received of statistics.
The third aspect, provides a kind of access method of business datum, and described method comprises:
The business datum that the kiosk being received in unsuccessful connection primary storage machine in preset times sends, described business datum is the business datum of at least one terminal transmission that described kiosk receives;
Store described business datum;
Be received in the synchrodata of the primary storage machine transmission that kiosk in preset times successfully connects, described synchrodata is added sync id by described primary storage machine to the business datum that the kiosk received sends and is obtained, and described business datum is the business datum of at least one terminal transmission that described kiosk receives;
Store described synchrodata.
In conjunction with the third aspect, in the first possible implementation of the third aspect, described method, also comprises:
Receive the business statistics data read request of the terminal transmission that kiosk forwards;
The second business statistics data are returned to described kiosk according to described business statistics data read request;
Wherein, when the business datum that the kiosk being received in unsuccessful connection primary storage machine in preset times sends, described second business statistics data obtain by adding timestamp to each business datum received and carry out statistics, the timestamp of described second business statistics data is timestamp up-to-date in the timestamp added each business datum received, and the statistical magnitude of described second business statistics data is the quantity of the business datum received of statistics; When being received in the synchrodata of the primary storage machine transmission that kiosk in preset times successfully connects, described second business statistics data obtain by carrying out statistics to each synchrodata received, timestamp up-to-date in the timestamp that the timestamp of described second business statistics data adds for primary storage machine described in each synchrodata of receiving, the statistical magnitude of described second business statistics data is the quantity of the synchrodata received of statistics.
Fourth aspect, provides a kind of kiosk, and described kiosk comprises:
First receiver module, for the business datum that at least one terminal of real-time reception sends;
Determination module, for determining the primary storage machine storing described business datum;
Link block, for connecting described primary storage machine in preset times;
First sending module, for when the described primary storage machine of connection unsuccessful in preset times, sends to from memory machine by described business datum, stores described business datum by described from memory machine;
Second sending module, for when successfully connecting described primary storage machine in preset times, described business datum is sent to described primary storage machine, described business datum is stored by described primary storage machine, and the synchrodata obtained described business datum interpolation sync id is sent to from memory machine, store described synchrodata by described from memory machine.
In conjunction with fourth aspect, in the first possible implementation of fourth aspect, described kiosk, also comprises:
Second receiver module, for the business statistics data read request that receiving terminal sends;
Forwarding module, for being transmitted to primary storage machine by described business statistics data read request and from memory machine;
3rd receiver module, for receiving the first business statistics data and described the second business statistics data returned according to described business statistics data read request from memory machine that described primary storage machine returns according to described business statistics data read request;
Comparison module, for timestamp and the statistical magnitude of more described first business statistics data and described second business statistics data, obtains the first comparative result;
Return module, for the business datum determined according to described first comparative result is returned to described terminal;
Wherein, described first business statistics data are added timestamp by described primary storage machine to each business datum received and are carried out statistics and obtain, timestamp up-to-date in the timestamp of the described first business statistics data timestamp that to be described primary storage machine add each business datum received, the statistical magnitude of described first business statistics data is the quantity of the business datum received of described primary storage machine statistics; Described second business statistics data by described from memory machine each business datum received added to timestamp and carries out statistics obtain, the timestamp of described second business statistics data is timestamp up-to-date the described timestamp added each business datum received from memory machine, and the statistical magnitude of described second business statistics data is the quantity of the described business datum from memory machine statistics; Or, described second business statistics data are carried out statistics from memory machine to each synchrodata received obtained by described, the timestamp of described second business statistics data is described timestamp up-to-date from the timestamp that primary storage machine described in each synchrodata that memory machine receives adds, and the statistical magnitude of described second business statistics data is the quantity of the described synchrodata from memory machine statistics.
5th aspect, provides a kind of primary storage machine, and described primary storage machine comprises:
First receiver module, for being received in the business datum of the kiosk transmission that success in preset times connects, described business datum is the business datum of at least one terminal transmission that described kiosk receives;
First adds module, for adding sync id to described business datum, obtains the synchrodata that described business datum is corresponding;
Memory module, for storing described business datum, and sends to from memory machine by described synchrodata, stores described synchrodata described in making from memory machine.
In conjunction with the 5th aspect, in the first the possible implementation in the 5th, described primary storage machine, also comprises:
Second receiver module, the business statistics data read request that the terminal forwarded for receiving kiosk sends;
Return module, for returning the first business statistics data according to described business statistics data read request to described kiosk, described first business datum obtains by adding timestamp to the business datum received and carry out statistics, the timestamp of described first business statistics data is timestamp up-to-date in the timestamp added each business datum received, and the statistical magnitude of described first business statistics data is the quantity of the business datum received of statistics.
6th aspect, provides a kind of from memory machine, describedly comprises from memory machine:
First receiver module, the business datum that the kiosk for being received in unsuccessful connection primary storage machine in preset times sends, described business datum is the business datum of at least one terminal transmission that described kiosk receives;
First memory module, for storing described business datum;
Second receiver module, the synchrodata that the primary storage machine successfully connected for being received in kiosk in preset times sends, described synchrodata is added sync id by described primary storage machine to the business datum that the kiosk received sends and is obtained, and described business datum is the business datum of at least one terminal transmission that described kiosk receives;
Second memory module, for storing described synchrodata.
In conjunction with the 6th aspect, in the first the possible implementation in the 6th, described from memory machine, also comprise:
3rd receiver module, the business statistics data read request that the terminal forwarded for receiving kiosk sends;
Return module, for returning the second business statistics data according to described business statistics data read request to described kiosk;
Wherein, when the business datum that the kiosk being received in unsuccessful connection primary storage machine in preset times sends, described second business statistics data obtain by adding timestamp to each business datum received and carry out statistics, the timestamp of described second business statistics data is timestamp up-to-date in the timestamp added each business datum received, and the statistical magnitude of described second business statistics data is the quantity of the business datum received of statistics; When being received in the synchrodata of the primary storage machine transmission that kiosk in preset times successfully connects, described second business statistics data obtain by carrying out statistics to each synchrodata received, timestamp up-to-date in the timestamp that the timestamp of described second business statistics data adds for primary storage machine described in each synchrodata of receiving, the statistical magnitude of described second business statistics data is the quantity of the synchrodata received of statistics.
The beneficial effect that the technical scheme that the embodiment of the present invention provides is brought is:
By the business datum that at least one terminal of real-time reception sends, and determine the primary storage machine of storage service data, when in preset times during unsuccessful connection primary storage machine, business datum is sent to and stores from memory machine, or, when successfully connecting primary storage machine in preset times, primary storage machine business datum is sent to store, and send to store adding synchrodata that sync id obtains to business datum from memory machine, thus reduce the business datum of losing, ensure that the integrality of the business datum of storage, improve the access efficiency of business datum.
Accompanying drawing explanation
In order to be illustrated more clearly in the technical scheme in the embodiment of the present invention, below the accompanying drawing used required in describing embodiment is briefly described, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is the process flow diagram of the storage means of the business datum that one embodiment of the invention provides;
Fig. 2 is the process flow diagram of the storage means of the business datum that another embodiment of the present invention provides;
Fig. 3 is the process flow diagram of the storage means of the business datum that another embodiment of the present invention provides;
Fig. 4 is the Organization Chart of the disaster tolerance system that another embodiment of the present invention provides;
Fig. 5 is the process flow diagram of the storage means of the business datum that another embodiment of the present invention provides;
Fig. 6 is the process flow diagram of the storage means of the business datum that another embodiment of the present invention provides;
Fig. 7 is the structural representation of the kiosk that another embodiment of the present invention provides;
Fig. 8 is the structural representation of the kiosk that another embodiment of the present invention provides;
Fig. 9 is the structural representation of the kiosk that another embodiment of the present invention provides;
Figure 10 is the structural representation of the primary storage machine that another embodiment of the present invention provides;
Figure 11 is the structural representation of the primary storage machine that another embodiment of the present invention provides;
Figure 12 is the structural representation of the memory module that another embodiment of the present invention provides;
Figure 13 is the structural representation of the primary storage machine that another embodiment of the present invention provides;
Figure 14 is the structural representation from memory machine that another embodiment of the present invention provides;
Figure 15 is the structural representation from memory machine that another embodiment of the present invention provides;
Figure 16 is the structural representation of the first memory module that another embodiment of the present invention provides;
Figure 17 is the structural representation of the second memory module that another embodiment of the present invention provides;
Figure 18 is the structural representation from memory machine that another embodiment of the present invention provides.
Embodiment
For making the object, technical solutions and advantages of the present invention clearly, below in conjunction with accompanying drawing, embodiment of the present invention is described further in detail.
In the scenes such as the large-scale survey in internet, network select-elite, user may vote at any time, and needs the source of recording each ballot paper, and therefore, business datum has the advantages that real-time is high, data volume is large.But at present when storage service data, the data that in the process carrying out changing that breaks down at memory machine, terminal sends can be lost, and the replacing construction of artificial replacing memory machine is longer, makes the business datum of loss more, cannot ensure the integrality of the business datum stored.For the problems referred to above, embodiments provide a kind of storage means of business datum, perform the angle of the method that the embodiment of the present invention provides for kiosk, see Fig. 1, method flow comprises:
101: the business datum that at least one terminal of real-time reception sends;
102: the primary storage machine determining storage service data, and in preset times, connect primary storage machine;
103: if in preset times unsuccessful connection primary storage machine, then business datum is sent to from memory machine, by from memory machine storage service data;
104: if successfully connect primary storage machine in preset times, then business datum is sent to primary storage machine, by primary storage machine storage service data, and send to from memory machine by adding the synchrodata that sync id obtains to business datum, store synchrodata by from memory machine.
As a kind of embodiment, the method, also comprises:
The business statistics data read request that receiving terminal sends, and business statistics data read request is transmitted to primary storage machine and from memory machine;
Receive the first business statistics data that primary storage machine returns according to business statistics data read request and the second business statistics data returned according to business statistics data read request from memory machine;
Compare timestamp and the statistical magnitude of the first business statistics data and the second business statistics data, obtain the first comparative result;
The business statistics data determined according to the first comparative result are returned to terminal;
Wherein, first business statistics data are added timestamp by primary storage machine to each business datum received and are carried out statistics and obtain, timestamp up-to-date in the timestamp of the first business statistics data timestamp that to be primary storage machine add each business datum received, the statistical magnitude of the first business statistics data is the quantity of the business datum received of primary storage machine statistics; Second business statistics data obtain by adding timestamp from memory machine to each business datum received and carry out statistics, the timestamp of the second business statistics data is from memory machine to timestamp up-to-date the timestamp of each business datum interpolation received, and the statistical magnitude of the second business statistics data is the quantity of the business datum from memory machine statistics; Or, second business statistics data obtain by carrying out statistics from memory machine to each synchrodata received, the timestamp of the second business statistics data is timestamp up-to-date in the timestamp that primary storage machine adds from each synchrodata that memory machine receives, and the statistical magnitude of the second business statistics data is the quantity of the synchrodata from memory machine statistics.
As a kind of embodiment, compare timestamp and the statistical magnitude of the first business statistics data and the second business statistics data, comprising:
The timestamp of the business statistics data relatively stored in the first business statistics data, the second business statistics data and conversation server and statistical magnitude.
As a kind of embodiment, after the timestamp comparing the first business statistics data and the second business statistics data and statistical magnitude, also comprise:
The business statistics data determined according to the first comparative result are stored into conversation server.
Perform the angle of the method that the embodiment of the present invention provides for primary storage machine, see Fig. 2, method flow comprises:
201: the business datum being received in the kiosk transmission that success in preset times connects, business datum is the business datum of at least one terminal transmission that kiosk receives;
As a kind of embodiment, after being received in the business datum of the kiosk transmission that success in preset times connects, also comprise: timestamp is added to business datum.
202: sync id is added to business datum, obtains the synchrodata that business datum is corresponding;
As a kind of embodiment, sync id is added to business datum, comprising:
Sync id is added to the business datum of adding timestamp.
203: storage service data, and synchrodata is sent to from memory machine, make to store synchrodata from memory machine.
As a kind of embodiment, storage service data, comprising:
The business datum of adding timestamp is added up;
The business datum of adding timestamp is stored according to statistics.
As a kind of embodiment, the method, also comprises:
Receive the business statistics data read request of the terminal transmission that kiosk forwards;
The first business statistics data are returned to kiosk according to business statistics data read request, first business datum obtains by adding timestamp to the business datum received and carry out statistics, the timestamp of the first business statistics data is timestamp up-to-date in the timestamp added each business datum received, and the statistical magnitude of the first business statistics data is the quantity of the business datum received of statistics.
To perform the angle of the method that the embodiment of the present invention provides from memory machine, see Fig. 3, method flow comprises:
301: the business datum that the kiosk being received in unsuccessful connection primary storage machine in preset times sends, business datum is the business datum of at least one terminal transmission that kiosk receives;
302: storage service data;
303: the synchrodata being received in the primary storage machine transmission that kiosk in preset times successfully connects, synchrodata is added sync id by primary storage machine to the business datum that the kiosk received sends and is obtained, and business datum is the business datum of at least one terminal transmission that kiosk receives;
304: store synchrodata.
As a kind of embodiment, after the business datum that the kiosk being received in unsuccessful connection primary storage machine in preset times sends, also comprise: timestamp is added to business datum;
Storage service data, comprising:
The business datum of adding timestamp is added up;
The business datum of adding timestamp is stored according to statistics.
As a kind of embodiment, synchrodata adds timestamp by the business datum of primary storage machine to the kiosk transmission received and sync id obtains, and stores synchrodata, comprising:
Synchrodata is added up, stores synchrodata according to statistics.
As a kind of embodiment, the method, also comprises:
Receive the business statistics data read request of the terminal transmission that kiosk forwards;
The second business statistics data are returned to kiosk according to business statistics data read request;
Wherein, when the business datum that the kiosk being received in unsuccessful connection primary storage machine in preset times sends, second business statistics data obtain by adding timestamp to each business datum received and carry out statistics, the timestamp of the second business statistics data is timestamp up-to-date in the timestamp added each business datum received, and the statistical magnitude of the second business statistics data is the quantity of the business datum received of statistics; When being received in the synchrodata of the primary storage machine transmission that kiosk in preset times successfully connects, second business statistics data obtain by carrying out statistics to each synchrodata received, the timestamp of the second business statistics data is timestamp up-to-date in the timestamp that in each synchrodata received, primary storage machine adds, and the statistical magnitude of the second business statistics data is the quantity of the synchrodata received of statistics.
The method that the embodiment of the present invention provides, by the business datum that at least one terminal of real-time reception sends, and determine the primary storage machine of storage service data, when in preset times during unsuccessful connection primary storage machine, business datum is sent to from memory machine, by from memory machine storage service data, or, when successfully connecting primary storage machine in preset times, primary storage machine business datum is sent to store, and send to store adding synchrodata that sync id obtains to business datum from memory machine, thus reduce the business datum of losing, ensure that the integrality of the business datum of storage, improve the access efficiency of business datum.
Embodiments provide a kind of storage means of business datum, in conjunction with the Organization Chart of the disaster tolerance system shown in the content of the embodiment shown in the arbitrary figure of above-mentioned Fig. 1, Fig. 2 or Fig. 3 and Fig. 4, ballot system is applied to for the storage means of business datum, in detail explanation is explained to the method that the embodiment of the present invention provides, see Fig. 5, method flow comprises:
501: the business datum that at least one terminal of kiosk real-time reception sends;
For ballot system, business datum comprises but is not limited to polling option ID (mark), and voter ID and poll etc., the present embodiment does not limit business datum.In order to the business datum enabling at least one terminal of kiosk real-time reception send, kiosk sets up wired or wireless connection by modes such as networks with at least one terminal, the business datum sent by least one terminal of connection real-time reception set up.Wherein, the quantity of kiosk can be one or more, and the present embodiment does not limit the quantity of kiosk.
502: the primary storage machine of kiosk determination storage service data, and in preset times, connect primary storage machine;
In order to the safety of business datum, in the method that the present embodiment provides, kiosk forms the storage system of business datum with at least two memory machines, and kiosk can determine the primary storage machine of a memory machine as storage service data in all memory machines.About the mode of primary storage machine determining storage service data, the present embodiment does not do concrete restriction.During concrete enforcement, kiosk can give tacit consent to the primary storage machine that arbitrary memory machine is storage service data.
Further, after the primary storage machine of kiosk determination storage service data, primary storage machine can be connected in preset times.About preset times, the present embodiment does not do concrete restriction.For the ease of understanding, be 3 to be described for preset times, if kiosk first time attempts connecting primary storage machine, unsuccessful connection primary storage machine, then kiosk second time attempts connection primary storage machine; If the unsuccessful connection primary storage machine of kiosk second time, then kiosk third time attempts connecting primary storage machine; If kiosk third time still unsuccessful connection primary storage machine, then show kiosk unsuccessful connection primary storage machine in preset times.
503: if kiosk unsuccessful connection primary storage machine in preset times, then business datum is sent to from memory machine;
Due to reasons such as primary storage machine break down, kiosk may in preset times unsuccessful connection primary storage machine, if business datum to be sent to primary storage machine, then business datum will be lost.Again because kiosk and at least two memory machines form the storage system of business datum, after the primary storage machine of kiosk determination storage service data, can determine that other memory machines except primary storage machine are from memory machine.Therefore, in order to ensure the safety of business datum, business datum is stored in time, business datum sends to from memory machine by the method that the present embodiment provides.
About mode business datum sent to from memory machine, the present embodiment does not do concrete restriction.During concrete enforcement, send business datum by kiosk and the connection of setting up from memory machine.
504: the business datum being received in the kiosk transmission of unsuccessful connection primary storage machine in preset times from memory machine, business datum is the business datum of at least one terminal transmission that kiosk receives;
About the mode of the business datum that the kiosk being received in unsuccessful connection primary storage machine in preset times from memory machine sends, the present embodiment does not do concrete restriction.In order to the storage of finishing service data, the method that the present embodiment provides also comprises subsequent step.
As a kind of embodiment, from memory machine after the business datum that the kiosk receiving unsuccessful connection primary storage machine in preset times sends, the method that the present embodiment provides also comprises: add timestamp from memory machine to business datum.
Wherein, timestamp receives the time of business datum for identifying, can judge the new and old of business datum by the timestamp added.
505: from memory machine storage service data;
About the mode from memory machine storage service data, the present embodiment does not do concrete restriction.During concrete enforcement, can direct storage service data from memory machine, also can add up business datum, according to statistics storage service data.
In addition, if in above-mentioned steps 504, add timestamp from memory machine to business datum, then from memory machine storage service data, include but not limited to:
From memory machine, the business datum of adding timestamp is added up;
Store the business datum of adding timestamp according to statistics from memory machine.
Wherein, the present embodiment does not limit the statistical of the business datum of adding timestamp, when specifically implementing, and can according to the content statistics business datum of business datum.Such as, business datum comprises polling option ID, voter ID and poll, then, when adding up business datum, can carry out accumulated counts according to poll to each polling option ID and each voter ID.
Further, namely completed the storage of business datum by above-mentioned steps 501 to step 505, in order to utilize the business datum stored, the method that the present embodiment provides also comprises subsequent step.
506: the business statistics data read request that kiosk receiving terminal sends, and business statistics data read request is transmitted to primary storage machine and from memory machine;
In actual applications, user, after being voted by terminal, can check voting results usually.Such as, the vote interface of terminal provides and checks option, after detecting and checking that option is clicked, namely triggering terminal sends business statistics data read request to kiosk, and then kiosk can receive the business statistics data read request that terminal sends.
Further, because business datum may be stored in primary storage machine, also may be stored in from memory machine, then business statistics data read request is transmitted to primary storage machine and from memory machine, namely obtains business statistics data from primary storage machine and from memory machine by kiosk.
507: the business statistics data read request receiving the terminal transmission that kiosk forwards from memory machine;
About the mode of the business statistics data read request that the terminal receiving kiosk forwarding from memory machine sends, the present embodiment does not do concrete restriction.In order to the reading of finishing service statistics, the method that the present embodiment provides also comprises subsequent step.In addition, primary storage machine receives the business statistics data read request of the terminal transmission that kiosk forwards equally.
508: return second business statistics data according to business statistics data read request to kiosk from memory machine;
From memory machine after the business statistics data read request receiving kiosk transmission, the business datum that store when receive the business statistics data read request of the terminal transmission that kiosk forwards from memory machine can be read according to business statistics data read request.
As a kind of embodiment, if from memory machine according to the statistics storage service data of business datum of adding timestamp, the the second business statistics data then returned to kiosk according to business statistics data read request from memory machine obtain by adding timestamp from memory machine to each business datum received and carry out statistics, the timestamp of the second business statistics data is to timestamp up-to-date the timestamp of each business datum interpolation received from memory machine, the statistical magnitude of the second business statistics data is the quantity of the business datum received from memory machine statistics.Such as, second business statistics data can account for the number percent etc. of all votes for the poll of each polling option, the timestamp of the second business statistics data can be the polling hours up-to-date in all ballots, and the statistical magnitude of the second business statistics data can be all votes.
In addition, primary storage machine, after receiving business statistics data read request, returns the first business statistics data according to business statistics data read request to kiosk.Wherein, first business datum is added timestamp by primary storage machine to the business datum that receives and is carried out statistics and obtains, timestamp up-to-date in the timestamp of the first business statistics data timestamp that to be primary storage machine add each business datum received, the statistical magnitude of the first business statistics data is the quantity of the business datum received of primary storage machine statistics.
509: kiosk receives the first business statistics data that primary storage machine returns according to business statistics data read request and the second business statistics data returned according to business statistics data read request from memory machine;
The mode of the second business statistics data receiving about kiosk the first business statistics data that primary storage machine returns according to business statistics data read request and return according to business statistics data read request from memory machine, the present embodiment does not do concrete restriction.In order to the reading of finishing service data, the method that the present embodiment provides also comprises subsequent step.
510: kiosk compares timestamp and the statistical magnitude of the first business statistics data and the second business statistics data, obtains the first comparative result;
For ballot system, when business datum normal storage, the business datum of storage has dull conforming feature, and namely along with the increase of time, the business datum of storage also can increase or remain unchanged, and there will not be the situation of minimizing.Therefore, kiosk compares timestamp and the statistical magnitude of the first business statistics data and the second business statistics data, obtains the first comparative result.
As a kind of embodiment, after the timestamp that kiosk compares the first business statistics data and the second business statistics data and statistical magnitude, also include but not limited to:
The business statistics data determined according to the first comparative result are stored into conversation server by kiosk.
As a kind of embodiment, kiosk compares timestamp and the statistical magnitude of the first business statistics data and the second business statistics data, includes but not limited to:
Kiosk compares timestamp and the statistical magnitude of the business statistics data stored in the first business statistics data, the second business statistics data and conversation server.
By comparing timestamp and the statistical magnitude of the business statistics data stored in the first business statistics data, the second business statistics data and conversation server, when making at primary storage machine and occur loss of data from memory machine, the statistical magnitude of the business statistics data read also can not reduce, ensure that the session consistance of the reading process of business statistics data and dull consistance, improve the experience of user.
It should be noted that, when comparing timestamp and the statistical magnitude of the first business statistics data and the second business statistics data first, also non-storage service statistics in conversation server, then can compare timestamp and the statistical magnitude of the first business statistics data and the second business statistics data; When non-compare timestamp and the statistical magnitude of the first business statistics data and the second business statistics data first time, storage service statistics in conversation server, then can compare timestamp and the statistical magnitude of the business statistics data stored in the first business statistics data, the second business statistics data and conversation server.
511: the business statistics data determined according to the first comparative result are returned to terminal by kiosk.
About kiosk, the business statistics data determined according to the first comparative result are returned to the mode of terminal, the present embodiment does not do concrete restriction.By the business statistics determined data are returned to terminal, make the user of operating terminal can know business statistics data, thus the business datum completed storing read.
The method that the embodiment of the present invention provides, by the business datum that at least one terminal of real-time reception sends, and determine the primary storage machine of storage service data, when in preset times during unsuccessful connection primary storage machine, business datum is sent to from memory machine, by from memory machine storage service data, thus reduce the business datum of losing, ensure that the integrality of the business datum of storage, improve the access efficiency of business datum.
Embodiments provide a kind of storage means of business datum, in conjunction with the Organization Chart of the disaster tolerance system shown in the content of the embodiment shown in the arbitrary figure of above-mentioned Fig. 1, Fig. 2 or Fig. 3 and Fig. 4, ballot system is applied to for the storage means of business datum, in detail explanation is explained to the method that the embodiment of the present invention provides, see Fig. 6, method flow comprises:
601: the business datum that at least one terminal of kiosk real-time reception sends;
The implementation of this step is identical with the implementation of step 501 in the embodiment shown in above-mentioned Fig. 5, specifically see the content of step 501 in the embodiment shown in above-mentioned Fig. 5, can repeat no more herein.
602: the primary storage machine of kiosk determination storage service data, and in preset times, connect primary storage machine;
The implementation of this step is identical with the implementation of step 502 in the embodiment shown in above-mentioned Fig. 5, specifically see the content of step 502 in the embodiment shown in above-mentioned Fig. 5, can repeat no more herein.
603: if kiosk successfully connects primary storage machine in preset times, then business datum is sent to primary storage machine;
When kiosk successfully connects primary storage machine in preset times, show that primary storage machine normally can receive business datum.Therefore, business datum is sent to primary storage machine.About mode business datum being sent to primary storage machine, the present embodiment does not do concrete restriction.During concrete enforcement, the connection of setting up by kiosk and primary storage machine sends business datum.
604: primary storage machine is received in the business datum of the kiosk transmission that success in preset times connects, business datum is the business datum of at least one terminal transmission that kiosk receives;
Be received in the mode of the business datum of the kiosk transmission that success in preset times connects about primary storage machine, the present embodiment does not do concrete restriction.In order to the storage of finishing service data, the method that the present embodiment provides also comprises subsequent step.
As a kind of embodiment, primary storage machine also includes but not limited to: primary storage machine adds timestamp to business datum after being received in the business datum of the kiosk transmission that success in preset times connects.
Wherein, timestamp receives the time of business datum for identifying, can judge the new and old of business datum by the timestamp added.
605: primary storage machine adds sync id to business datum, obtain the synchrodata that business datum is corresponding;
About the mode of business datum being added to sync id, the present embodiment does not do concrete restriction.By adding sync id to business datum, obtaining the synchrodata that business datum is corresponding, the synchrodata comprising sync id can be distinguished with business datum.
In addition, if after being received in the business datum of the kiosk transmission that success in preset times connects in above-mentioned steps 604, timestamp is added to business datum, then sync id is added to business datum, include but not limited to: timestamp is added to the business datum of adding timestamp.
606: primary storage machine storage service data, and synchrodata is sent to from memory machine;
About the mode of primary storage machine storage service data, the present embodiment does not do concrete restriction.During concrete enforcement, primary storage machine can direct storage service data, also can add up business datum, according to statistics storage service data.
In addition, if in above-mentioned steps 604, primary storage machine adds timestamp to business datum, then primary storage machine storage service data, includes but not limited to:
Primary storage machine is added up the business datum of adding timestamp;
Primary storage machine stores the business datum of adding timestamp according to statistics.
Wherein, the present embodiment does not limit the statistical of the business datum of adding timestamp, when specifically implementing, and can according to the content statistics business datum of business datum.Such as, business datum comprises polling option ID, voter ID and poll, then, when adding up business datum, can carry out accumulated counts according to poll to each polling option ID and each voter ID.
Further, in order to ensure the safety of business datum, synchrodata corresponding for business datum, after receiving business datum, is sent another memory machine and backs up by arbitrary memory machine.Therefore, synchrodata sends to from memory machine by the method that the present embodiment provides.Because synchrodata comprises sync id, make from memory machine after receiving synchrodata, synchrodata will be sent to primary storage machine carry out the backup of business datum, avoid primary storage machine and the synchronization loop from memory machine formation endless loop.
It should be noted that, the backup of business datum is real-time synchronization, backup to from memory machine business datum is also unsuccessful, and when primary storage machine breaks down, the business datum of unsuccessful backup can be lost; Because the time delay of the backup of business datum is at Millisecond, the business datum of loss is little.The business datum of losing in this case in log, thus can be recovered the business datum of losing by the mode of manually searching daily record.
607: the synchrodata being received in the primary storage machine transmission that kiosk in preset times successfully connects from memory machine, synchrodata is added sync id by primary storage machine to the business datum that the kiosk received sends and is obtained, and business datum is the business datum of at least one terminal transmission that kiosk receives;
About the mode being received in the synchrodata that primary storage machine that kiosk in preset times successfully connects sends from memory machine, the present embodiment does not do concrete restriction.In order to the backup of finishing service data, the method that the present embodiment provides also comprises subsequent step.
608: store synchrodata from memory machine;
The mode storing synchrodata from memory machine is identical with the mode of primary storage machine storage service data above-mentioned steps 606, specifically see the content of above-mentioned steps 606, can repeat no more herein.
Further, namely completed the storage of business datum by above-mentioned steps 601 to step 608, in order to utilize the business datum of storage, the method that the present embodiment provides also comprises subsequent step.
609: the business statistics data read request that kiosk receiving terminal sends, and business statistics data read request is transmitted to primary storage machine and from memory machine;
The implementation of this step is identical with the implementation of step 506 in the embodiment shown in above-mentioned Fig. 5, specifically see the content of step 506 in the embodiment shown in above-mentioned Fig. 5, can repeat no more herein.
610: primary storage machine receives the business statistics data read request of the terminal transmission that kiosk forwards;
Receive the mode of the business statistics data read request of the terminal transmission that kiosk forwards about primary storage machine, the present embodiment does not do concrete restriction.In order to the reading of finishing service statistics, the method that the present embodiment provides also comprises subsequent step.In addition, the business statistics data read request of the terminal transmission that kiosk forwards is received equally from memory machine.
611: primary storage machine returns the first business statistics data according to business statistics data read request to kiosk, the first business datum obtains by adding timestamp to the business datum received and carry out statistics;
Primary storage machine, after the business statistics data read request of the kiosk transmission received, can read the business datum that store when primary storage machine receives the business statistics data read request of the terminal transmission that kiosk forwards according to business statistics data read request.
As a kind of embodiment, if primary storage machine is according to the statistics storage service data of the business datum of interpolation timestamp, then the first business statistics data of returning to kiosk according to business statistics data read request of primary storage machine are added timestamp by primary storage machine to each business datum received and are carried out statistics and obtain, the timestamp of the first business statistics data is that primary storage machine is to timestamp up-to-date in the timestamp of each business datum interpolation received, the statistical magnitude of the first business statistics data is the quantity of the business datum received of primary storage machine statistics.Such as, first business statistics data can account for the number percent etc. of all votes for the poll of each polling option, the timestamp of the first business statistics data can be the polling hours up-to-date in all ballots, and the statistical magnitude of the first business statistics data can be all votes.
In addition, from memory machine after receiving business statistics data read request, return the second business statistics data according to business statistics data read request to kiosk.Wherein, second business statistics data obtain by carrying out statistics from memory machine to each synchrodata received, the timestamp of the second business statistics data is timestamp up-to-date in the timestamp that primary storage machine adds from each synchrodata that memory machine receives, and the statistical magnitude of the second business statistics data is the quantity of the synchrodata received from memory machine statistics.
612: kiosk receives the first business statistics data that primary storage machine returns according to business statistics data read request and the second business statistics data returned according to business statistics data read request from memory machine;
The implementation of this step is identical with the implementation of step 509 in the embodiment shown in above-mentioned Fig. 5, specifically see the content of step 509 in the embodiment shown in above-mentioned Fig. 5, can repeat no more herein.
613: kiosk compares timestamp and the statistical magnitude of the first business statistics data and the second business statistics data, obtains the first comparative result;
The implementation of this step is identical with the implementation of step 510 in the embodiment shown in above-mentioned Fig. 5, specifically see the content of step 510 in the embodiment shown in above-mentioned Fig. 5, can repeat no more herein.
614: the business statistics data determined according to the first comparative result are returned to terminal by kiosk.
The implementation of this step is identical with the implementation of step 511 in the embodiment shown in above-mentioned Fig. 5, specifically see the content of step 511 in the embodiment shown in above-mentioned Fig. 5, can repeat no more herein.
The method that the embodiment of the present invention provides, by the business datum that at least one terminal of real-time reception sends, and determine the primary storage machine of storage service data, when successfully connecting primary storage machine in preset times, business datum is sent to primary storage machine, by primary storage machine storage service data, and send to from memory machine by adding the synchrodata that sync id obtains to business datum, synchrodata is stored by from memory machine, thus reduce the business datum of losing, ensure that the integrality of the business datum of storage, improve the access efficiency of business datum.
See Fig. 7, embodiments provide a kind of kiosk, this kiosk is for performing in above-mentioned Fig. 1 to Fig. 3, Fig. 5 and Fig. 6 method performed by kiosk in the embodiment shown in arbitrary figure.This kiosk comprises:
First receiver module 701, for the business datum that at least one terminal of real-time reception sends;
Determination module 702, for determining the primary storage machine of storage service data;
Link block 703, for connecting primary storage machine in preset times;
First sending module 704, for when during unsuccessful connection primary storage machine, business datum being sent to from memory machine in preset times, by from memory machine storage service data;
Second sending module 705, for when successfully connecting primary storage machine in preset times, business datum is sent to primary storage machine, by primary storage machine storage service data, and send to from memory machine by adding the synchrodata that sync id obtains to business datum, store synchrodata by from memory machine.
As a kind of embodiment, see Fig. 8, this kiosk, also comprises:
Second receiver module 706, for the business statistics data read request that receiving terminal sends;
Forwarding module 707, for being transmitted to primary storage machine and from memory machine by business statistics data read request;
3rd receiver module 708, for receiving the first business statistics data that primary storage machine returns according to business statistics data read request and the second business statistics data returned according to business statistics data read request from memory machine;
Comparison module 709, for comparing timestamp and the statistical magnitude of the first business statistics data and the second business statistics data, obtains the first comparative result;
Return module 710, for the business datum determined according to the first comparative result is returned to terminal;
Wherein, first business statistics data are added timestamp by primary storage machine to each business datum received and are carried out statistics and obtain, timestamp up-to-date in the timestamp of the first business statistics data timestamp that to be primary storage machine add each business datum received, the statistical magnitude of the first business statistics data is the quantity of the business datum received of primary storage machine statistics; Second business statistics data obtain by adding timestamp from memory machine to each business datum received and carry out statistics, the timestamp of the second business statistics data is from memory machine to timestamp up-to-date the timestamp of each business datum interpolation received, and the statistical magnitude of the second business statistics data is the quantity of the business datum from memory machine statistics; Or, second business statistics data obtain by carrying out statistics from memory machine to each synchrodata received, the timestamp of the second business statistics data is timestamp up-to-date in the timestamp that primary storage machine adds from each synchrodata that memory machine receives, and the statistical magnitude of the second business statistics data is the quantity of the synchrodata from memory machine statistics.
As a kind of embodiment, comparison module 709, for comparing timestamp and the statistical magnitude of the business statistics data stored in the first business statistics data, the second business statistics data and conversation server.
As a kind of embodiment, participate in Fig. 9, this kiosk, also comprises:
Memory module 711, for being stored into conversation server by the business statistics determined according to the first comparative result data.
The kiosk that the embodiment of the present invention provides, by the business datum that at least one terminal of real-time reception sends, and determine the primary storage machine of storage service data, when in preset times during unsuccessful connection primary storage machine, business datum is sent to from memory machine, by from memory machine storage service data, or, when successfully connecting primary storage machine in preset times, primary storage machine business datum is sent to store, and send to store adding synchrodata that sync id obtains to business datum from memory machine, thus reduce the business datum of losing, ensure that the integrality of the business datum of storage, improve the access efficiency of business datum.
See Figure 10, embodiments provide a kind of primary storage machine, this primary storage machine is for performing in above-mentioned Fig. 1 to Fig. 3, Fig. 5 and Fig. 6 method performed by primary storage machine in the embodiment shown in arbitrary figure.This primary storage machine comprises:
First receiver module 1101, for being received in the business datum of the kiosk transmission that success in preset times connects, business datum is the business datum of at least one terminal transmission that kiosk receives;
First adds module 1102, for adding sync id to business datum, obtains the synchrodata that business datum is corresponding;
Memory module 1103, for storage service data, and sends to from memory machine by synchrodata, makes to store synchrodata from memory machine.
As a kind of embodiment, see Figure 11, this primary storage machine, also comprises: second adds module 1004, for adding timestamp to business datum;
First adds module 1102, for adding sync id to the business datum of adding timestamp;
See Figure 12, memory module 1103, comprising:
Statistic unit 11031, for adding up the business datum of adding timestamp;
Storage unit 11032, for storing the business datum of adding timestamp according to statistics.
As a kind of embodiment, see Figure 13, primary storage machine, also comprises:
Second receiver module 1105, the business statistics data read request that the terminal forwarded for receiving kiosk sends;
Return module 1106, for returning the first business statistics data according to business statistics data read request to kiosk, first business datum obtains by adding timestamp to the business datum received and carry out statistics, the timestamp of the first business statistics data is timestamp up-to-date in the timestamp added each business datum received, and the statistical magnitude of the first business statistics data is the quantity of the business datum received of statistics.
The primary storage machine that the embodiment of the present invention provides, by being received in the business datum of the kiosk transmission that success in preset times connects, storage service data, and send to from memory machine by adding the synchrodata that sync id obtains to business datum, make to store synchrodata from memory machine, thus reduce the business datum of losing, ensure that the integrality of the business datum of storage, improve the access efficiency of business datum.
See Figure 14, embodiments provide a kind of from memory machine, should from memory machine for performing above-mentioned Fig. 1 to Fig. 3, Fig. 5 and Fig. 6 in the embodiment shown in arbitrary figure from method performed by memory machine.Should comprise from memory machine:
First receiver module 1501, the business datum that the kiosk for being received in unsuccessful connection primary storage machine in preset times sends, business datum is the business datum of at least one terminal transmission that kiosk receives;
First memory module 1502, for storage service data;
Second receiver module 1503, the synchrodata that the primary storage machine successfully connected for being received in kiosk in preset times sends, synchrodata is added sync id by primary storage machine to the business datum that the kiosk received sends and is obtained, and business datum is the business datum of at least one terminal transmission that kiosk receives;
Second memory module 1504, for storing synchrodata.
As a kind of embodiment, see Figure 15, from memory machine, also should comprise: add module 1505, for adding timestamp to business datum;
See Figure 16, the first memory module 1502, comprising:
First statistic unit 15021, for adding up the business datum of adding timestamp;
First storage unit 15022, for storing the business datum of adding timestamp according to statistics.
As a kind of embodiment, the synchrodata that the second receiver module 1503 receives adds timestamp by the business datum of primary storage machine to the kiosk transmission received and sync id obtains, and see Figure 17, the second memory module 1504, comprising:
Second statistic unit 15041, for adding up synchrodata;
Second storage unit 15042, for storing synchrodata according to statistics.
As a kind of embodiment, see Figure 18, from memory machine, also comprise:
3rd receiver module 1506, the business statistics data read request that the terminal forwarded for receiving kiosk sends;
Return module 1507, for returning the second business statistics data according to business statistics data read request to kiosk;
Wherein, when the business datum that the kiosk being received in unsuccessful connection primary storage machine in preset times sends, second business statistics data obtain by adding timestamp to each business datum received and carry out statistics, the timestamp of the second business statistics data is timestamp up-to-date in the timestamp added each business datum received, and the statistical magnitude of the second business statistics data is the quantity of the business datum received of statistics; When being received in the synchrodata of the primary storage machine transmission that kiosk in preset times successfully connects, second business statistics data obtain by carrying out statistics to each synchrodata received, the timestamp of the second business statistics data is timestamp up-to-date in the timestamp that in each synchrodata received, primary storage machine adds, and the statistical magnitude of the second business statistics data is the quantity of the synchrodata received of statistics.
The embodiment of the present invention provide from memory machine, by the business datum that the kiosk being received in unsuccessful connection primary storage machine in preset times sends, and storage service data, thus reduce the business datum of losing, ensure that the integrality of the business datum of storage, improve the access efficiency of business datum.
It should be noted that: the kiosk that above-described embodiment provides, primary storage machine and from memory machine when storage service data, only be illustrated with the division of above-mentioned each functional module, in practical application, can distribute as required and by above-mentioned functions and be completed by different functional modules, different functional modules is divided into, to complete all or part of function described above by kiosk, primary storage machine and the inner structure from memory machine.In addition, the kiosk that above-described embodiment provides, primary storage machine and the storage means embodiment from memory machine and business datum belong to same design, and its specific implementation process refers to embodiment of the method, repeats no more here.
One of ordinary skill in the art will appreciate that all or part of step realizing above-described embodiment can have been come by hardware, the hardware that also can carry out instruction relevant by program completes, described program can be stored in a kind of computer-readable recording medium, the above-mentioned storage medium mentioned can be ROM (read-only memory), disk or CD etc.
The foregoing is only preferred embodiment of the present invention, not in order to limit the present invention, within the spirit and principles in the present invention all, any amendment done, equivalent replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (12)

1. a storage means for business datum, is characterized in that, described method comprises:
The business datum that at least one terminal of real-time reception sends;
Determine the primary storage machine storing described business datum, and in preset times, connect described primary storage machine;
If the described primary storage machine of unsuccessful connection, then send to from memory machine by described business datum in preset times, store described business datum by described from memory machine;
If successfully connect described primary storage machine in preset times, then described business datum is sent to described primary storage machine, described business datum is stored by described primary storage machine, and the synchrodata obtained described business datum interpolation sync id is sent to from memory machine, store described synchrodata by described from memory machine.
2. method according to claim 1, is characterized in that, described method, also comprises:
The business statistics data read request that receiving terminal sends, and described business statistics data read request is transmitted to primary storage machine and from memory machine;
Receive the first business statistics data and described the second business statistics data returned according to described business statistics data read request from memory machine that described primary storage machine returns according to described business statistics data read request;
The timestamp of more described first business statistics data and described second business statistics data and statistical magnitude, obtain the first comparative result;
The business statistics data determined according to described first comparative result are returned to described terminal;
Wherein, described first business statistics data are added timestamp by described primary storage machine to each business datum received and are carried out statistics and obtain, timestamp up-to-date in the timestamp of the described first business statistics data timestamp that to be described primary storage machine add each business datum received, the statistical magnitude of described first business statistics data is the quantity of the business datum received of described primary storage machine statistics; Described second business statistics data by described from memory machine each business datum received added to timestamp and carries out statistics obtain, the timestamp of described second business statistics data is timestamp up-to-date the described timestamp added each business datum received from memory machine, and the statistical magnitude of described second business statistics data is the quantity of the described business datum from memory machine statistics; Or, described second business statistics data are carried out statistics from memory machine to each synchrodata received obtained by described, the timestamp of described second business statistics data is described timestamp up-to-date from the timestamp that primary storage machine described in each synchrodata that memory machine receives adds, and the statistical magnitude of described second business statistics data is the quantity of the described synchrodata from memory machine statistics.
3. an access method for business datum, is characterized in that, described method comprises:
Be received in the business datum of the kiosk transmission that success in preset times connects, described business datum is the business datum of at least one terminal transmission that described kiosk receives;
Sync id is added to described business datum, obtains the synchrodata that described business datum is corresponding;
Store described business datum, and described synchrodata is sent to from memory machine, described in making, store described synchrodata from memory machine.
4. method according to claim 3, is characterized in that, described method, also comprises:
Receive the business statistics data read request of the terminal transmission that kiosk forwards;
The first business statistics data are returned to described kiosk according to described business statistics data read request, described first business datum obtains by adding timestamp to the business datum received and carry out statistics, the timestamp of described first business statistics data is timestamp up-to-date in the timestamp added each business datum received, and the statistical magnitude of described first business statistics data is the quantity of the business datum received of statistics.
5. an access method for business datum, is characterized in that, described method comprises:
The business datum that the kiosk being received in unsuccessful connection primary storage machine in preset times sends, described business datum is the business datum of at least one terminal transmission that described kiosk receives;
Store described business datum;
Be received in the synchrodata of the primary storage machine transmission that kiosk in preset times successfully connects, described synchrodata is added sync id by described primary storage machine to the business datum that the kiosk received sends and is obtained, and described business datum is the business datum of at least one terminal transmission that described kiosk receives;
Store described synchrodata.
6. method according to claim 5, is characterized in that, described method, also comprises:
Receive the business statistics data read request of the terminal transmission that kiosk forwards;
The second business statistics data are returned to described kiosk according to described business statistics data read request;
Wherein, when the business datum that the kiosk being received in unsuccessful connection primary storage machine in preset times sends, described second business statistics data obtain by adding timestamp to each business datum received and carry out statistics, the timestamp of described second business statistics data is timestamp up-to-date in the timestamp added each business datum received, and the statistical magnitude of described second business statistics data is the quantity of the business datum received of statistics; When being received in the synchrodata of the primary storage machine transmission that kiosk in preset times successfully connects, described second business statistics data obtain by carrying out statistics to each synchrodata received, timestamp up-to-date in the timestamp that the timestamp of described second business statistics data adds for primary storage machine described in each synchrodata of receiving, the statistical magnitude of described second business statistics data is the quantity of the synchrodata received of statistics.
7. a kiosk, is characterized in that, described kiosk comprises:
First receiver module, for the business datum that at least one terminal of real-time reception sends;
Determination module, for determining the primary storage machine storing described business datum;
Link block, for connecting described primary storage machine in preset times;
First sending module, for when the described primary storage machine of connection unsuccessful in preset times, sends to from memory machine by described business datum, stores described business datum by described from memory machine;
Second sending module, for when successfully connecting described primary storage machine in preset times, described business datum is sent to described primary storage machine, described business datum is stored by described primary storage machine, and the synchrodata obtained described business datum interpolation sync id is sent to from memory machine, store described synchrodata by described from memory machine.
8. kiosk according to claim 7, is characterized in that, described kiosk, also comprises:
Second receiver module, for the business statistics data read request that receiving terminal sends;
Forwarding module, for being transmitted to primary storage machine by described business statistics data read request and from memory machine;
3rd receiver module, for receiving the first business statistics data and described the second business statistics data returned according to described business statistics data read request from memory machine that described primary storage machine returns according to described business statistics data read request;
Comparison module, for timestamp and the statistical magnitude of more described first business statistics data and described second business statistics data, obtains the first comparative result;
Return module, for the business datum determined according to described first comparative result is returned to described terminal;
Wherein, described first business statistics data are added timestamp by described primary storage machine to each business datum received and are carried out statistics and obtain, timestamp up-to-date in the timestamp of the described first business statistics data timestamp that to be described primary storage machine add each business datum received, the statistical magnitude of described first business statistics data is the quantity of the business datum received of described primary storage machine statistics; Described second business statistics data by described from memory machine each business datum received added to timestamp and carries out statistics obtain, the timestamp of described second business statistics data is timestamp up-to-date the described timestamp added each business datum received from memory machine, and the statistical magnitude of described second business statistics data is the quantity of the described business datum from memory machine statistics; Or, described second business statistics data are carried out statistics from memory machine to each synchrodata received obtained by described, the timestamp of described second business statistics data is described timestamp up-to-date from the timestamp that primary storage machine described in each synchrodata that memory machine receives adds, and the statistical magnitude of described second business statistics data is the quantity of the described synchrodata from memory machine statistics.
9. a primary storage machine, is characterized in that, described primary storage machine comprises:
First receiver module, for being received in the business datum of the kiosk transmission that success in preset times connects, described business datum is the business datum of at least one terminal transmission that described kiosk receives;
First adds module, for adding sync id to described business datum, obtains the synchrodata that described business datum is corresponding;
Memory module, for storing described business datum, and sends to from memory machine by described synchrodata, stores described synchrodata described in making from memory machine.
10. primary storage machine according to claim 9, is characterized in that, described primary storage machine, also comprises:
Second receiver module, the business statistics data read request that the terminal forwarded for receiving kiosk sends;
Return module, for returning the first business statistics data according to described business statistics data read request to described kiosk, described first business datum obtains by adding timestamp to the business datum received and carry out statistics, the timestamp of described first business statistics data is timestamp up-to-date in the timestamp added each business datum received, and the statistical magnitude of described first business statistics data is the quantity of the business datum received of statistics.
11. 1 kinds, from memory machine, is characterized in that, describedly comprise from memory machine:
First receiver module, the business datum that the kiosk for being received in unsuccessful connection primary storage machine in preset times sends, described business datum is the business datum of at least one terminal transmission that described kiosk receives;
First memory module, for storing described business datum;
Second receiver module, the synchrodata that the primary storage machine successfully connected for being received in kiosk in preset times sends, described synchrodata is added sync id by described primary storage machine to the business datum that the kiosk received sends and is obtained, and described business datum is the business datum of at least one terminal transmission that described kiosk receives;
Second memory module, for storing described synchrodata.
12. is according to claim 11 from memory machine, it is characterized in that, described from memory machine, also comprises:
3rd receiver module, the business statistics data read request that the terminal forwarded for receiving kiosk sends;
Return module, for returning the second business statistics data according to described business statistics data read request to described kiosk;
Wherein, when the business datum that the kiosk being received in unsuccessful connection primary storage machine in preset times sends, described second business statistics data obtain by adding timestamp to each business datum received and carry out statistics, the timestamp of described second business statistics data is timestamp up-to-date in the timestamp added each business datum received, and the statistical magnitude of described second business statistics data is the quantity of the business datum received of statistics; When being received in the synchrodata of the primary storage machine transmission that kiosk in preset times successfully connects, described second business statistics data obtain by carrying out statistics to each synchrodata received, timestamp up-to-date in the timestamp that the timestamp of described second business statistics data adds for primary storage machine described in each synchrodata of receiving, the statistical magnitude of described second business statistics data is the quantity of the synchrodata received of statistics.
CN201410396086.4A 2014-08-12 2014-08-12 Service data storage method, service machine and storage machine Pending CN104281643A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410396086.4A CN104281643A (en) 2014-08-12 2014-08-12 Service data storage method, service machine and storage machine

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410396086.4A CN104281643A (en) 2014-08-12 2014-08-12 Service data storage method, service machine and storage machine

Publications (1)

Publication Number Publication Date
CN104281643A true CN104281643A (en) 2015-01-14

Family

ID=52256516

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410396086.4A Pending CN104281643A (en) 2014-08-12 2014-08-12 Service data storage method, service machine and storage machine

Country Status (1)

Country Link
CN (1) CN104281643A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109491838A (en) * 2018-11-01 2019-03-19 郑州云海信息技术有限公司 A kind of method and device handling virtual-machine data
CN113836221A (en) * 2021-08-21 2021-12-24 济南浪潮数据技术有限公司 Data synchronization method and device of distributed storage system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050278458A1 (en) * 2004-06-09 2005-12-15 Microsoft Corporation Analysis services database synchronization
CN101562543A (en) * 2009-05-25 2009-10-21 阿里巴巴集团控股有限公司 Cache data processing method and processing system and device thereof
CN101826073A (en) * 2009-03-06 2010-09-08 华为技术有限公司 Synchronous method, apparatus and system for distributed database
CN102265277A (en) * 2011-06-01 2011-11-30 华为技术有限公司 Operation method and device for data memory system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050278458A1 (en) * 2004-06-09 2005-12-15 Microsoft Corporation Analysis services database synchronization
CN101826073A (en) * 2009-03-06 2010-09-08 华为技术有限公司 Synchronous method, apparatus and system for distributed database
CN101562543A (en) * 2009-05-25 2009-10-21 阿里巴巴集团控股有限公司 Cache data processing method and processing system and device thereof
CN102265277A (en) * 2011-06-01 2011-11-30 华为技术有限公司 Operation method and device for data memory system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109491838A (en) * 2018-11-01 2019-03-19 郑州云海信息技术有限公司 A kind of method and device handling virtual-machine data
CN113836221A (en) * 2021-08-21 2021-12-24 济南浪潮数据技术有限公司 Data synchronization method and device of distributed storage system

Similar Documents

Publication Publication Date Title
CN108122165B (en) Block chain consensus method and system
CN102355368B (en) Fault processing method of network equipment and system
CN103699063B (en) The harvester of off-line data and method in a kind of Manufacturing Executive System MES
CN103370904A (en) Method for determining a severity of a network incident
CN111182531B (en) Associated information backfilling method, device, equipment and storage medium
CN105407117A (en) Distributed data backup method, device and system
CN111291008B (en) Data processing method, device, system, electronic equipment and computer storage medium
CN102437921B (en) Memory method and network device of configuration information
CN104281643A (en) Service data storage method, service machine and storage machine
CN101924777B (en) Method, system and equipment for searching active nodes in P2P streaming media system
CN107241216A (en) Maintain the method and device of the stable transmission of critical data
CN112600703B (en) Network equipment remote access fault positioning method and device
CN111260227B (en) Service data source processing method, device, computer equipment and storage medium
CN102984739A (en) Breakdown information processing method and processing device
CN100413248C (en) Improved method and system for carrying out charging based on flow
CN109039427B (en) Ship monitoring management device
CN108055151B (en) Port management method and device of network node, network node and storage medium
CN111010706A (en) Exception recovery method and device
CN107645563B (en) Internet of things communication method and system of medical test equipment
CN113595894B (en) Communication method, device, equipment and medium between service nodes and client nodes
CN101715202A (en) Method and system for monitoring wireless network user behaviors
CN101783712B (en) Method, user terminal and network node for identifying LTE (Long Term Evolution) version
CN112416532A (en) Industrial data processing system and method
CN103582170A (en) Method and device for providing communication connection for multiple candidate applications in mobile equipment
CN110489272A (en) The operating system recovery method, apparatus and web camera of web camera

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: 511446 Guangzhou City, Guangdong Province, Panyu District, South Village, Huambo Business District Wanda Plaza, block B1, floor 28

Applicant after: Guangzhou Huaduo Network Technology Co., Ltd.

Address before: 510655, Guangzhou, Whampoa Avenue, No. 2, creative industrial park, building 3-08,

Applicant before: Guangzhou Huaduo Network Technology Co., Ltd.

CB02 Change of applicant information
RJ01 Rejection of invention patent application after publication

Application publication date: 20150114

RJ01 Rejection of invention patent application after publication