CN103729269A - Cloud architecture-based network test data double-cache method - Google Patents

Cloud architecture-based network test data double-cache method Download PDF

Info

Publication number
CN103729269A
CN103729269A CN201410036143.8A CN201410036143A CN103729269A CN 103729269 A CN103729269 A CN 103729269A CN 201410036143 A CN201410036143 A CN 201410036143A CN 103729269 A CN103729269 A CN 103729269A
Authority
CN
China
Prior art keywords
data
client
module
examination
process data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201410036143.8A
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.)
State Grid Corp of China SGCC
State Grid Jiangsu Electric Power Co Ltd
Electric Power Research Institute of State Grid Jiangsu Electric Power Co Ltd
Original Assignee
State Grid Corp of China SGCC
State Grid Jiangsu Electric Power Co Ltd
Electric Power Research Institute of State Grid Jiangsu Electric Power 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 State Grid Corp of China SGCC, State Grid Jiangsu Electric Power Co Ltd, Electric Power Research Institute of State Grid Jiangsu Electric Power Co Ltd filed Critical State Grid Corp of China SGCC
Priority to CN201410036143.8A priority Critical patent/CN103729269A/en
Publication of CN103729269A publication Critical patent/CN103729269A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention discloses a cloud architecture-based network test data double-cache method. The method comprises the following steps: acquiring test paper information from a cloud architecture network test by using a client; establishing a data cache file area at the client, and establishing a data storage system at a server end; establishing a client cache module and a server end cache module; generating a data cache file and storing the data cache file according to the test process data by using the client process data storage module; recovering the data to a computer of a test terminal by using a client process data recovery module; storing test process record data into a data storage system of a remote server by using a server process data storage module; recovering the test process data to the computer of the test terminal by using the server end process data recovery module. With the method, the loss of temporary test process data caused by a client computer can be prevented, the loss of test process data caused by replacing a computer because of computer crashing or other reasons can be prevented, the double-cache speed is high, and the safety performance is high.

Description

The two caching methods of a kind of online exam data based on cloud framework
Technical field
The present invention relates to a kind of network test system, especially relate to a kind of network cloud examination system, belong to field of computer technology.
Background technology
In order to meet the demand of more and more examinations, improve the efficiency of examination, guarantee the correctness of examination, developed the cloud examination system based on cloud framework, cloud examination online exam has alleviated complicacy and the dirigibility of organizing examination on the spot greatly, can greatly facilitate various examinations and test that enterprise organizes cross-region at any time, even in user Bu enterprise, also can participate at any time the examination of appointment.
But examination process data is unstable, the mode that traditional examination system ubiquity examination process data is preserved due to this locality easily produces the problem of examination loss of data, when examination examination question is too much, cannot support to occur in examination or examination submission process the phenomenon of a large amount of examination loss of datas.
If the mode as traditional preservation examination process data to local computer, has three kinds of risks and causes examinee's data to recover: when browser, system crash or during computer circuit breaking, and cause file to fail complete preservation; When reduction card has been installed on computing machine; When computing machine causes system again to restart due to special situation.
Summary of the invention
For above-mentioned problems of the prior art, the object of the invention is to solve the problem that examination process data is lost, and provides a kind of online exam data based on cloud framework two caching methods.
For achieving the above object, the present invention adopts following technology and scheme:
The two caching methods of online exam data based on cloud framework, comprise the following steps:
Client is obtained paper information from the online exam of cloud framework, and loads examinee information and answer information, according to concrete topic type and control information, shows corresponding paper.
At client nginx discharge device, set up data buffer storage file area, at server end, set up datum number storage according to storage system; Described data-storage system uses key-value pair data group storage examination process data;
Client and server end is set up respectively client-cache module and server end cache module, by client-cache Module Division, is that client process data are preserved module and client process data recovery module; Server end cache module is divided into server end process data and preserves module and server end process data recovery module;
Client process data preservation module forms fixing data layout by examination process data and passes through, after the encryption of process data encryption rule, data generated data cache file to be saved in to the data buffer storage file area of the computing machine of examination terminal; Examination process data comprises examination question ID, service number, exam number, examination reel number, examinee number, entry time, submission time, examination question numbering, script, mark.
Client process data recovery module returns to data on the computing machine of examination terminal by the data buffer storage file of client storage by preserving with described client process data the deciphering rule that module adapts;
Client is regularly preserved module to server process data and is sent examination process record data, and examination process record data are saved in the data-storage system of remote server;
It is data buffer storage file by the examination process data in servers' data storage system by predetermined format conversion that server end process data is recovered module, and the deciphering rule by client process data recovery module returns on the computing machine of examination terminal.
The store method that client process data preservation module is saved in examination terminal computer by examination process data comprises the following steps: examination process data is used key-value pair to connect, data after key-value pair series connection are merged, form a complete answer record data string, to described complete answer record data string be shifted encrypt after in client storage, key-value pair is used the examination question ID of paper as key.
The data reconstruction method that server end process data is recovered module specifically comprises the following steps: the examination process record data that the examination process record data that client encrypt is preserved and server end are preserved read in internal memory, and then the key of answer record data and the examination question key of the paper having loaded being carried out corresponding, the selection mode of the data value on can correspondence carries out correspondence and fills.
More preferably, examinee successfully submits to after examination, deletes client-side data cache file, and the caching record of caching server is deleted.After the successfully submission that guarantees data security, can discharge timely storage space, intelligence is alleviated storage pressure.
More preferably, data-storage system comprises and is provided with password authentification mongoDB data storage method, and data-storage system is executing data backup in storing process, guarantees data integrity.
More preferably, data-storage system comprises Redis data storage method, the caching server that utilizes redis to build, and in examination process, can the short time, intermittently to server, send request, user's answer record is sent to caching server, be kept at remote port.
More preferably, data buffer storage file is ozt formatted file.
Compared with prior art; beneficial effect of the present invention is: the present invention can prevent the loss of the interim examination process data that causes due to client computer, and prevents from causing examination process data to be lost because computer crashes or other reasons cause changing computing machine.
Further, client and server end is set up respectively client-cache module and server end cache module, and two buffer memorys are used modularization management, reduces mutual mutual complexity between two buffer memorys, ensures two buffer memory stability.
Further, client-cache is file layout, and server usage data storage system form, has taken into account the agility of client-cache and the security of server end, and storage speed is fast, security performance is high.
Further, at client deployment nginx discharge device, configuration is simple, and performance is good, and when a certain testing server cannot provide service, nginx can arrive other servers by automatic distributing.
Accompanying drawing explanation
Fig. 1 is the schematic flow sheet of invention.
Embodiment
Below in conjunction with accompanying drawing, the invention will be further described.
As seen from Figure 1, the two caching methods of a kind of online exam data based on cloud framework, comprise the following steps:
1) client is obtained paper information from the online exam of cloud framework, and loads examinee information and answer information, according to concrete topic type and control information, shows corresponding paper.
2) at client nginx discharge device, set up data buffer storage file area, at server end, set up datum number storage according to storage system; Data-storage system comprises and is provided with password authentification mongoDB data storage method and Redis data storage method.
3) client and server end is set up respectively client-cache module and server end cache module, by client-cache Module Division, is that client process data are preserved module and client process data recovery module; Server end cache module is divided into server end process data and preserves module and server end process data recovery module.
4) client process data are preserved after module forms examination process data fixing data layout and encrypt by process data encryption rule, data generated data cache file are saved in to the data buffer storage file area of the computing machine of examination terminal; The process data recording of taking an examination uses test_id as key, the value of test_id is value, be that the value value of concrete examination question selection mode is carried out key-value pair with examination question ID and is connected in series, then the str these being connected in series remerges, call the hold function of client, automatically this serially added close and be saved in local disk, concrete preservation position is { SystemPath}/{ User}/{ TempPath}/student numbering _ test sheet numbers .ozt.
5) client process data recovery module returns to data on the computing machine of examination terminal by the data buffer storage file of client storage by preserving with described client process data the deciphering rule that module adapts; Student's answer record that student's answer record that local cipher is preserved and server end are preserved reads in internal memory, and then undertaken corresponding by take the examination question test_id of test_id the answer record data that are key and the paper having loaded, the selection mode (whether single choice (radio), multiselect (checkbox) are chosen) of data value on can correspondence or answer content (text, textarea) are carried out correspondence and are filled, be that single choice, multiselect carry out checked operation, text sky arranges value value.
6) client is regularly preserved module to server process data and is sent examination process record data, and examination process record data are saved in the data-storage system of remote server;
7) to recover module be data buffer storage file by the examination process data in servers' data storage system by predetermined format conversion to server end process data, and the deciphering rule by client process data recovery module returns on the computing machine of examination terminal.
Examinee's paper is successfully submitted to after examination, deletes client-side data cache file, and the caching record of caching server is deleted.After the successfully submission that guarantees data security, can discharge timely storage space, intelligence is alleviated storage pressure.
The above is only the preferred embodiment of the present invention; be noted that for those skilled in the art; under the premise without departing from the principles of the invention, can also make some improvements and modifications, these improvements and modifications also should be considered as protection scope of the present invention.

Claims (7)

1. the two caching methods of the online exam data based on cloud framework, is characterized in that, comprise the following steps:
Client is obtained paper information from the online exam of cloud framework, and loads examinee information and answer information;
At client deployment nginx discharge device, set up data buffer storage file area, at server end, set up data-storage system, described data-storage system uses key-value pair data group storage examination process data;
Client and server end is set up respectively client-cache module and server end cache module, by client-cache Module Division, is that client process data are preserved module and client process data recovery module; Server end cache module is divided into server end process data and preserves module and server end process data recovery module;
Client process data preservation module forms fixing data layout by examination process data and passes through, after the encryption of process data encryption rule, data generated data cache file to be saved in to the data buffer storage file area of the computing machine of examination terminal;
Client process data recovery module returns to data on the computing machine of examination terminal by the data buffer storage file of client storage by preserving with described client process data the deciphering rule that module adapts;
Client is regularly preserved module to server process data and is sent examination process record data, and examination process record data are saved in the data-storage system of remote server;
It is data buffer storage file by the examination process data in servers' data storage system by predetermined format conversion that server end process data is recovered module, and the deciphering rule by client process data recovery module returns on the computing machine of examination terminal.
2. two caching methods of a kind of online exam data based on cloud framework according to claim 1, it is characterized in that, the store method that described client process data preservation module is saved in examination terminal computer by examination process data comprises the following steps: examination process data is used key-value pair to connect, data after key-value pair series connection are merged, form a complete answer record data string, to described complete answer record data string be shifted encrypt after in client storage.
3. two caching methods of a kind of online exam data based on cloud framework according to claim 1, it is characterized in that, the data reconstruction method that server end process data is recovered module specifically comprises the following steps: the examination process record data that the examination process record data that client encrypt is preserved and server end are preserved read in internal memory, and then the key of answer record data and the examination question key of the paper having loaded being carried out corresponding, the selection mode of the data value on can correspondence carries out correspondence and fills.
4. two caching methods of a kind of online exam data based on cloud framework according to claim 1, it is characterized in that, described data-storage system comprises and is provided with password authentification mongoDB data storage method, and data-storage system is executing data backup in storing process.
5. the two caching methods of a kind of online exam data based on cloud framework according to claim 1, is characterized in that, described data-storage system comprises Redis data storage method.
6. the two caching methods of a kind of online exam data based on cloud framework according to claim 1, is characterized in that, described data buffer storage file is ozt formatted file.
7. two caching methods of a kind of online exam data based on cloud framework according to claim 1, it is characterized in that, further comprising the steps of: examinee successfully submits to after examination, delete client-side data cache file, and the caching record of caching server is deleted.
CN201410036143.8A 2014-01-26 2014-01-26 Cloud architecture-based network test data double-cache method Pending CN103729269A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410036143.8A CN103729269A (en) 2014-01-26 2014-01-26 Cloud architecture-based network test data double-cache method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410036143.8A CN103729269A (en) 2014-01-26 2014-01-26 Cloud architecture-based network test data double-cache method

Publications (1)

Publication Number Publication Date
CN103729269A true CN103729269A (en) 2014-04-16

Family

ID=50453351

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410036143.8A Pending CN103729269A (en) 2014-01-26 2014-01-26 Cloud architecture-based network test data double-cache method

Country Status (1)

Country Link
CN (1) CN103729269A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106055422A (en) * 2016-05-04 2016-10-26 临沂大学 Guiding device for students' ideological and political education based on new media technologies
CN107169897A (en) * 2017-04-12 2017-09-15 深圳市海云天科技股份有限公司 A kind of nonpaperlized examination method for monitoring state and system
CN107666501A (en) * 2016-07-28 2018-02-06 北京京东尚科信息技术有限公司 Questionnaire answer method and system
CN113238896A (en) * 2021-06-21 2021-08-10 北京飞思特信息技术有限公司 Disaster recovery and recovery system of distributed examination service based on USB flash disk
CN117221619A (en) * 2023-09-06 2023-12-12 广州长鹏光电科技有限公司 Video caching method for examination video paper reading

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6370355B1 (en) * 1999-10-04 2002-04-09 Epic Learning, Inc. Blended learning educational system and method
US20020119433A1 (en) * 2000-12-15 2002-08-29 Callender Thomas J. Process and system for creating and administering interview or test
CN1595873A (en) * 2004-06-23 2005-03-16 北京邮电大学 Network examination system based on mixed architecture and multiple safety mechanism, and implementing method thereof
CN1732490A (en) * 2002-11-13 2006-02-08 教育考试服务中心 Systems and method for testing over a distributed network
CN102682640A (en) * 2012-05-17 2012-09-19 江苏中科梦兰电子科技有限公司 Electronic lesson test system and test method
CN103118093A (en) * 2013-01-24 2013-05-22 广州南方宜信信息科技有限公司 Large-scale distributed network examination method based on multi-level cache

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6370355B1 (en) * 1999-10-04 2002-04-09 Epic Learning, Inc. Blended learning educational system and method
US20020119433A1 (en) * 2000-12-15 2002-08-29 Callender Thomas J. Process and system for creating and administering interview or test
CN1732490A (en) * 2002-11-13 2006-02-08 教育考试服务中心 Systems and method for testing over a distributed network
CN1595873A (en) * 2004-06-23 2005-03-16 北京邮电大学 Network examination system based on mixed architecture and multiple safety mechanism, and implementing method thereof
CN102682640A (en) * 2012-05-17 2012-09-19 江苏中科梦兰电子科技有限公司 Electronic lesson test system and test method
CN103118093A (en) * 2013-01-24 2013-05-22 广州南方宜信信息科技有限公司 Large-scale distributed network examination method based on multi-level cache

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106055422A (en) * 2016-05-04 2016-10-26 临沂大学 Guiding device for students' ideological and political education based on new media technologies
CN107666501A (en) * 2016-07-28 2018-02-06 北京京东尚科信息技术有限公司 Questionnaire answer method and system
CN107666501B (en) * 2016-07-28 2021-01-26 北京京东尚科信息技术有限公司 Question answering method and system
CN107169897A (en) * 2017-04-12 2017-09-15 深圳市海云天科技股份有限公司 A kind of nonpaperlized examination method for monitoring state and system
CN113238896A (en) * 2021-06-21 2021-08-10 北京飞思特信息技术有限公司 Disaster recovery and recovery system of distributed examination service based on USB flash disk
CN117221619A (en) * 2023-09-06 2023-12-12 广州长鹏光电科技有限公司 Video caching method for examination video paper reading
CN117221619B (en) * 2023-09-06 2024-05-10 广州长鹏光电科技有限公司 Video caching method for examination video paper reading

Similar Documents

Publication Publication Date Title
CN103309767B (en) A kind of client log disposal route and device
US10592873B2 (en) Edit transactions for blockchains
CN109542980B (en) Data processing method, device, equipment and medium for block chain
CN103729269A (en) Cloud architecture-based network test data double-cache method
CN105912428B (en) Realize that source data is converted into the system and method for virtual machine image in real time
CN105871587A (en) Log uploading method and device
CN103916483A (en) Self-adaptation data storage and reconstruction method for coding redundancy storage system
CN106802892B (en) Method and equipment for checking consistency of main and standby data
CN104598168B (en) A kind of data reconstruction method and object storage device
CN106709069A (en) High-reliability big data logging collection and transmission method
CN105824846B (en) Data migration method and device
CN109710185A (en) Data processing method and device
CN103765373A (en) Data storage method, data storage device, and storage equipment
CN107678883A (en) A kind of cluster recovery method and apparatus based on storage system
CN107018185A (en) The synchronous method and device of cloud storage system
CN106126374A (en) Method for writing data, method for reading data and device
CN104965835B (en) A kind of file read/write method and device of distributed file system
CN108205482B (en) File mount restoration methods
CN107340971A (en) A kind of data storage is with recovering framework and method
CN104461774B (en) Asynchronous replication method, apparatus and system
CN103136370A (en) Restoring method of meta data and device
CN106027638A (en) Hadoop data distribution method based on hybrid coding
CN105068760B (en) Date storage method, data storage device and storage device
CN106339176A (en) Intermediate file processing method, client, server and system
CN102325171B (en) Data storage method in monitoring system and system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into 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: 20140416