Research of Data Eventually Consistent Strategy Based on NoSQL

Author
LiFangChao
Advisor
ZhangWen
School
Harbin Engineering University
Major
Computer System Architecture
Classification
TP311.13 Database theory and systems
Degree
Master's thesis
Year
2012
Downloads
288
Citations
1

Request the full text

Abstract

The increasing amount of data and its demand on accessing speeds, especially with therapid development of SNS and Web2.0, makes the traditional database encountering seriousbottleneck problem when users read or write data from the system. The traditional solutionis the distributed technology, who allocates data to different nodes by distributed algorithm.Due to the ease of management and replication, Master-Slave architecture is generally usedby distributed cluster. Because replication in this architecture is a passively asynchronousreplication, it causes a certain time delay problem, and resuts in incoincidences betweenmaster data and slave one. Based on the relational database, this paper introduced a NoSQLdatabase, a caching-database who is on the basis of Key-Value model, to make reading andwriting data more effective. The consistency of the data is a important standard fordistributed database, and the consistency study on NoSQL database model is a new areawith researchers’ serious concern. Inspirationally, success has been achieved in some specialareas, and research in the strategy of data eventually consistent based on NoSQL has veryhighly academic significance.This paper presented an rapid-developed NoSQL database modal based on therelational database, and constructed a system architecture combined NoSQL and relationaldatabases, where memcached was used as a caching layer for MySQL. This paper address amethod to slove the problem of data-replication delay, which used the control of clientaccess of memcached and MySQL triggers Strategy. Under this architecture,when systemhave request of select, it executed commands in memecached and returned to the client atfirst,while the result is not in memcached, it went on executing commands into theunderlying database and wrote into memcached;if the request is modified commands, itexecuted commands in the primary database because of control of memcached client,thenthe tigger based on row record make use of the programmed udf keeping a consistent withthe primary database. The method of paper managed consistency problem of data using theMySQL UDF and triggers, due to the flexibility of UDF and the efficiency of triggers, so itis very efficient method to achieve the underlying database and cache database dataconsistency problems, which can alleviate data inconsistencies problem caused by datareplication in master-slave architecture. Client programming complexity will decline by tigger strategy and memcached eliminated objects by the use of LRU mechanism, it ensurea higher hit rate.Through experiments data analysis, the design has good performance, it can be verytimely to ensure data consistency requirements, and can simplify client programmingcomplexity.

Table of contents

Summary 5-6 Abstract 6-10 Chapter 1 Introduction 10-14 research background and significance of 1.1 topics 10-11 1.2 research status research 11-12 1.3 article 12-13 1.4 thesis organization 13-14 Chapter 2 examines the basic theory and related technologies 14-25 2.1 NoSQL basic theory and related technology 14-19 2.1.1 NoSQL defined its data model 14 2.1.2 consistency theory 14-16 2.1.3 memcached database 16-18 2.1.4 NoSQL comparison with SQL 18-19 2.2 distributed database technology 19-22 2.2.1 distributed database architecture 19-21 2.2. 2 data replication technology 21-22 2.3 MySQL database technology 22-23 2.3.1 user-defined functions 22-23 2.3. 2 MySQL trigger 23 2.4 Summary 23-25 ?? Chapter 3 based NoSQL database consistency mechanism design 25-52 3.1 memcached -based database system 25-34 3.1.1 memcached -based system features a 25-26 3.1.2 memcached -based system architecture of 26-28 3.1.3 memcached communication mechanism based on the system of 28-30 3.1.4 memcached -based system consistency relations 30-34 3.2 memcached -based data consistency of the system design 34-44 3.2.1 memcached client system design 34-41 3.2.2 re- mapping strategy based on the primary key 41-43 3.2.3 master data is copied from the design 43-44 3.3 memcached -based system to achieve data consistency 44-51 3.3.1 based memcached client side implementation 44-47 3.3.2 re- mapping strategy based on the primary key to achieve 47-50 3.3.3 MySQL master-slave replication to achieve 50-51 3.4 Summary 51-52 Chapter 4 System conformance testing and results analysis 52-60 build 4.1 testing environment 52 4.2 theoretical analysis and summary of test results 52-59 4.2.1 system conformance Test 52-54 4.2.2 Memcached and MySQL performance comparison 54-57 4.2.3 database Consistency analysis 57-59 4.3 Summary 59-60 conclusion 60 - 62 References published 62-65 master's degree thesis and obtained during the research 65-66 Thanks 66

Related dissertations

  1. Design and Implementation of Cloud Computing Platform Resource Monitoring System
    WuJing ·University of Jinan ·2013 ·Master's thesis
  2. A Gearman/MongoDB Based Transaction Monitoring and Reporting System Research and Implementation
  3. Research of a Parallel Data Incremental Processing Mechanism Based on NoSQL Database
  4. Study on the Theory and Method of Road Network Optimization Based on Four Factors
    ChenBo ·Chang'an University ·2013 ·Master's thesis
  5. Cloth Simulation with Adaptive Refined Meshes Based on Nonconforming Elements
    LvSiJie ·Zhejiang University ·2013 ·Master's thesis
  6. The indoor positioning algorithm and experimental research based on RFID
    ZhengDaShuai ·Jiamusi University ·2013 ·Master's thesis
  7. Design and Implementation of the Data Analysis System Besed on Hadoop
  8. Search and Implementation of Medical Information Oriented Cloud Storage System
    LiWeiHong ·South China University of Technology ·2012 ·Master's thesis
  9. Research on Security of NoSQL Databases Based on Hadoop
    CaiPing ·Shanghai Jiaotong University ·2013 ·Master's thesis
  10. Design and Implementation of a Massive Image Storage System Based on Cloud Computing Technologies
  11. Research on Localization Algorithm of Coal Mine Based on WSN
    ZhaoQingWei ·Hebei University of Engineering ·2012 ·Master's thesis
  12. Research on Barrier Coverage in Wireless Sensor Networks
  13. Multidimensional Scaling-based Sensor Localization Algorithm in Wireless Sensor Networks
    PengZuo ·Hunan University ·2008 ·Master's thesis
  14. Study on Simulation Technology of Analog Circuit
  15. Researches on Clustering Algorithms in Wireless Sensor Networks
    LiuHe ·Central China Normal University ·2007 ·Master's thesis
  16. An Optimal Power Flow Model Based on a Transformer Model with a Virtual Node in Polar Coordinates
    ZhouMiLu ·Guangxi University ·2008 ·Master's thesis
  17. Research on Multidimensional Scaling Localization Algorithm in Wireless Sensor Networks
    LiNianZan ·Hunan University ·2009 ·Master's thesis
  18. Gridless Method for the Simulation of Heat Conduction
  19. Research on the Node Load Balance Control Mechanism in Unstructured P2P Networks
    ChenLiLong ·Central China Normal University ·2011 ·Master's thesis
  20. Qos-based Resource Allocation and Cooperation Technology