簡易檢索 / 詳目顯示

研究生: 王師堃
Wang, Shi-Kun
論文名稱: 分佈式資料庫之設計與實作 - 以網路購物系統為例験證
Design and Implementation of A Distributed Database: Using A Shopping System as A Testing Case
指導教授: 朱治平
Chu, Chih-Ping
學位類別: 碩士
Master
系所名稱: 電機資訊學院 - 資訊工程學系
Department of Computer Science and Information Engineering
論文出版年: 2018
畢業學年度: 106
語文別: 英文
論文頁數: 47
中文關鍵詞: 分佈式資料庫Spring MVCMySQL網路購物
外文關鍵詞: Distributed Database, Spring MVC, MySQL, On-line Shopping
相關次數: 點閱:95下載:16
分享至:
查詢本校圖書館目錄 查詢臺灣博碩士論文知識加值系統 勘誤回報
  • 近年來,隨著計算機技術的飛速發展,越來越多的行業都會涉及到互聯網業務。由於業務量的不斷增多,資料總量不斷變大,傳統的集中式資料庫逐漸無法滿足資料存儲的需求。與傳統集中式資料庫不同,分佈式資料庫(Distributed Database)具有更高的靈活性,更高的可用性、可靠性,並且在海量資料的需求下,具有明顯的成本優勢,和更高的效率。本文以網路購物系統為例,設計和實現了一個分佈式資料庫系統。
    本系統使用MVC設計模式,對請求進行接收與回執,使用網頁瀏覽器作為前端交互界面,實作了一個核心業務(Core Service)處理元件(Component),對接收到的請求作處理分發,以多個MySQL關係型資料庫作為子節點(Node),實現對資料的存取。
    本系統具有維持用戶登錄,記錄用戶信息,瀏覽并購買商品,并對經營者提供一個后臺管理系統,對商品信息與庫存進行維護,與系統狀態的監測等功能。經測試,該系統能夠在服務器上運行良好並可以實現分佈式事務功能,比集中式資料庫具備更高的效率、擴展性與可靠性。

    In recent years, Internet business has been permeated into almost all industries as computer technology advances. Since the huge increment in business volume and total data, traditional centralized database can no longer satisfy the need for data storage. Compared with traditional centralized database, distributed database has the attributes of more flexibility, availability and reliability. Especially, under the condition of processing massive data, distributed database can perform more efficiently with lower costs. In this thesis, a distributed database has been designed and implemented by the case of on-line shopping system.
    The on-line shopping system is framed by the MVC design pattern, which is able to send and receive requests from users. Users would interactive with this system through the net browser. A component called "CoreService" is achieved to distribute all the received requests. Data, storing in several MySQL databases, can be got and stored by nodes.
    System can keep login status, record user-information and monitor system status. Customers can browse and buy products. On the other hand, managers can maintain product information and inventory by the background management system. The system can be well executed on a service and implements the function of distributed transaction. Compared with centralized database, this system has been confirmed to perform better on web service with more effectiveness, flexibility and reliability.

    Contents 摘要 I Abstract II 誌謝 III Contents IV List of Tables VII List of Figures VIII Chapter 1 Introduction 1 1.1 Research Background 1 1.2 Research Purpose 2 Chapter 2 Introduction of Distributed Database Systems 3 2.1 What is a Distributed Database System? 3 2.2 Characteristics of Distributed Database Systems 3 2.3 Advantages and Disadvantages 4 2.3.1 Advantages: 4 2.3.2 Disadvantages: 5 2.4 Data Fragmentation and Data Allocation 6 2.4.1 Three ways of data fragmentation 6 2.4.2 Data allocation method: 7 2.5 Components 7 2.6 Query 9 2.7 Update 10 Chapter 3 Design of Distributed Database System 13 3.1 Overview of System Structure 13 3.2 Overview of System Design 14 3.3 Data Allocation Method 16 Chapter 4 Testing Case: Design of an Online Shopping System 17 4.1 Demand Analysis 17 4.2 System Composition 18 4.3 Introduction of System Process 18 4.4 System Architecture Design 21 4.4.1 Web Browser: 21 4.4.2 Controller: 21 4.4.3 Service: 22 4.4.4 Dao: 23 4.4.5 Database: 23 4.5 Design of Basic Table 23 Chapter 5 Implementation of Distributed Database 28 5.1 Construction of Development Environment 28 5.2 Preparation for Developing the Project 33 5.3 Introduction of Dao Development 34 5.4 Introduction of Service Development 36 5.5 Introduction of Controller Development 38 5.6 Other Components Development 40 5.7 Display of Front-End Interface 41 5.8 Introduction of Node Expansion 42 Chapter 6 Summary and Future 44 References 46

    References
    [1] S. Ceri and S. Owicki, "ON THE USE OF OPTIMISTIC METHODS FOR CONCURRENCY CONTROL IN DISTRIBUTED DATABASES," in Proceedings of the Sixth Berkeley Workshop on Distributed Data Management and Computer Network, Asilomar, February 16-19, 1982, 1982, vol. 13452, p. 117: Lawrence Berkeley Laboratory.
    [2] A. K. Elmagarmid, Database transaction models for advanced applications. Morgan Kaufmann Publishers Inc., 1992.
    [3] A. R. Hevner and S. B. Yao, "Query processing in distributed database system," IEEE Transactions on Software Engineering, no. 3, pp. 177-187, 1979.
    [4] S. Ladd, D. Davison, S. Devijver, C. Yates, R. Harrop, and K. Donald, Expert Spring MVC and Web Flow. Springer, 2006.
    [5] R. Laddad, Aspectj in action: enterprise AOP with spring applications. Manning Publications Co., 2009.
    [6] S. Menon, "Allocating fragments in distributed databases," IEEE transactions on parallel and distributed systems, vol. 16, no. 7, pp. 577-585, 2005.
    [7] M. T. Özsu and P. Valduriez, Principles of distributed database systems. Springer Science & Business Media, 2011.
    [8] G. F. Pfister, In search of clusters. Prentice Hall PTR Englewood Cliffs, 1998.
    [9] G. R. Thompson, W. F. Lee, P. L. Olson, T. C. Reyes, G. F. Thomas III, and B. Vassaur, "Fault-tolerant distributed database system and method for the management of correctable subtransaction faults by the global transaction source node," ed: Google Patents, 1993.
    [10] 陈珉, 喻丹丹, and 涂国庆, "分布式数据库系统中数据一致性维护方法研究," 2002.
    [11] 陈永强, "分布式数据库系统安全策略分析," 武汉工业学院学报, vol. 22, no. 2, pp. 35-39, 2003.
    [12] 盖九宇, 张忠能, and 肖鹤, "分布式数据库数据复制技术的分析与应用," 计算机应用与软件, vol. 22, no. 7, pp. 36-38, 2005.
    [13] 黄伟, "在 JSP 中使用连接池优化数据库访问效率," 计算机应用, vol. 22, no. 4, pp. 67-70, 2002.
    [14] 陆荣幸, 郁洲, 阮永良, and 王志强, "J2EE 平台上 MVC 设计模式的研究与实现," 2003.
    [15] 孟小峰, 周龙骧, and 王珊, "数据库技术发展趋势," 2004.
    [16] 邵佩英, 分布式数据库系统及其应用. 科学出版社, 2000.
    [17] 王进, "B/S 模式下的三层架构模式," 软件导刊, no. 3, pp. 30-31, 2011.
    [18] 谢长生, 胡庆平, and 谭志虎, "Heartbeat-Gear: 一种新型的实时心跳监测技术," 计算机工程与科学, vol. 26, no. 5, pp. 62-65, 2004.
    [19] 杨晶, 刘天时, and 马刚, "分布式数据库数据分片与分配," 现代电子技术, vol. 29, no. 18, pp. 119-121, 2006.

    下載圖示 校內:立即公開
    校外:立即公開
    QR CODE