English  |  正體中文  |  简体中文  |  Post-Print筆數 : 27 |  Items with full text/Total items : 114898/145937 (79%)
Visitors : 53929618      Online Users : 755
RC Version 6.0 © Powered By DSPACE, MIT. Enhanced by NTU Library IR team.
Scope Tips:
  • please add "double quotation mark" for query phrases to get precise results
  • please goto advance search for comprehansive author search
  • Adv. Search
    HomeLoginUploadHelpAboutAdminister Goto mobile version
    政大機構典藏 > 資訊學院 > 資訊科學系 > 學位論文 >  Item 140.119/155973
    Please use this identifier to cite or link to this item: https://nccur.lib.nccu.edu.tw/handle/140.119/155973


    Title: 支援容器化RESTful微服務的分散式交易機制
    Supporting Transparent Distributed Transactions among Containerized RESTful Microservices
    Authors: 黃薇倫
    Huang, Wei-Lun
    Contributors: 廖峻鋒
    Liao, Chun-Feng
    黃薇倫
    Huang, Wei-Lun
    Keywords: 分散式交易
    RESTful服務
    容器化
    Distributed Transaction
    RESTful Service
    Web API
    Container
    Date: 2025
    Issue Date: 2025-03-03 14:04:00 (UTC+8)
    Abstract: RESTful 架構風格在各種服務互動方式中日漸受歡迎。與此同時,如何支援跨多個服務的分散式交易在現今軟體系統中一直是個挑戰。此外,隨著微服務架構的興起以及將微服務託管於容器的普及,如何實現高效且可擴展的容器化 RESTful 服務交易管理機制成了必要的研究議題。本文介紹的分散式交易協定可以通透地為現有的 RESTful 服務結合容器化方式實現分散式交易。主要理念是將交易處理邏輯獨立,藉由依循邊車模式設計的容器附加到 REST 服務上。與其他針對 RESTful 服務的分散式交易機制不同,本研究提出的方法不需要修改 RESTful 服務邏輯和通訊協議。綜上所述,本研究提出了一個能以透通的方式,整合分散式交易邏輯至既存以容器為基礎的微服務的方法。此外,本文後半段也透過系統測試和實驗證明了方法的可行性並評估其效能。
    In modern software systems, supporting transactions across multiple services presents a significant challenge. Among the various interaction approaches, the RESTful architectural style stands out as a popular choice. With the rise of microservice architecture and the growing popularity of hosting microservices in containers, the need for efficient and scalable transaction management mechanisms for containerized RESTful services has become increasingly important. This paper introduces a novel approach that transparently enhances existing non-transactional containerized RESTful services with transaction capabilities. The main idea is to implement transaction handling logic in a sidecar container, which can be attached to service containers as needed. Unlike other distributed transaction mechanisms for RESTful services, this approach eliminates the need to modify both the service logic and the communication protocol (HTTP). This research demonstrates the feasibility of the proposed method through case studies and experiments. Overall, this approach offers a seamless and efficient solution for integrating transaction management into containerized microservices.
    Reference: [1] R. Fielding and R. Taylor, “Principled design of the modern web architecture”, in
    Proceedings of the 2000 International Conference on Software Engineering. ICSE
    2000 the New Millennium, 2000, pp. 407–416.
    [2] R. T. Fielding and R. N. Taylor, “Principled design of the modern web architecture”,
    vol. 2, no. 2, pp. 115–150, May 2002.
    [3] A. Elmagarmid, Database Transaction Models for Advanced Applications (The
    Morgan Kaufmann Series in Data Management Systems). Elsevier Science, 1992,
    ISBN: 9781558602144.
    [4] P. Bernstein and E. Newcomer, Principles of Transaction Processing (The Morgan
    Kaufmann Series in Data Management Systems). Elsevier Science, 2009.
    [5] A. Verma, L. Pedrosa, M. R. Korupolu, D. Oppenheimer, E. Tune, and J. Wilkes,
    “Large-scale cluster management at Google with Borg”, in Proceedings of the European Conference on Computer Systems (EuroSys), 2015.
    [6] M. Fowler and J. Lewis. “Microservices: A definition of this new architectural
    term”. (2014), [Online]. Available: https://martinfowler.com/articles/microservices.
    html.
    [7] E. Daraghmi, C. Zhang, and S. Yuan, “Enhancing saga pattern for distributed transactions within a microservices architecture”, Applied Sciences (Switzerland), vol. 12,
    no. 12, Jun. 2022, Publisher Copyright: © 2022 by the authors. Licensee MDPI,
    Basel, Switzerland.
    [8] F. Haupt, F. Leymann, A. Scherer, and K. Vukojevic-Haupt, “A framework for the
    structural analysis of rest apis”, in 2017 IEEE International Conference on Software
    Architecture (ICSA), IEEE, 2017, pp. 55–58.
    [9] S. Kochman, P. T. Wojciechowski, and M. Kmieciak, “Batched transactions for
    restful web services”, in International Conference on Web Engineering, Springer,
    2011, pp. 86–98.
    [10] L. Frosini, P. Pagano, L. Candela, M. Simi, and C. Bernardeschi, “Relock: A resilient two-phase locking restful transaction model”, Service Oriented Computing
    and Applications, vol. 15, no. 1, pp. 75–92, 2021.
    [11] A. Dey, A. Fekete, and U. Röhm, “Rest+t: Scalable transactions over http”, in 2015
    IEEE international conference on cloud engineering, IEEE, 2015, pp. 36–41.
    [12] D. Krafzig, K. Banke, and D. Slama, Enterprise SOA: Service-Oriented Architecture Best Practices (The Coad Series). USA: Prentice Hall PTR, 2004.
    [13] B. Burns, Designing Distributed Systems: Patterns and Paradigms for Scalable,
    Reliable Services. O’Reilly Media, 2018, ISBN: 9781491983614.
    [14] H. Nielsen, J. Mogul, L. M. Masinter, et al., Hypertext Transfer Protocol – HTTP/1.1,
    RFC 2616, Jun. 1999. DOI: 10.17487/RFC2616. [Online]. Available: https://
    www.rfc-editor.org/info/rfc2616.
    [15] B. Burns, Designing Distributed Systems: Patterns and Paradigms for Scalable,
    Reliable Services, 1st. O’Reilly Media, Inc., 2018, ISBN: 1491983647.
    [16] G. Pardon and C. Pautasso, Towards Distributed Atomic Transactions over RESTful
    Services, E. Wilde and C. Pautasso, Eds. New York, NY: Springer New York, 2011,
    pp. 507–524.
    [17] M. Little. “Rest and transactions? [accessed: Dec. 15, 2023]”. (2009).
    [18] N. Mihindukulasooriya, M. Esteban-Gutiérrez, and R. García-Castro, “Seven challenges for restful transaction models”, in Proceedings of the 23rd International
    Conference on World Wide Web, 2014, pp. 949–952.
    [19] O. Group., “Distributed TP: The XA Specification”, Feb. 1992.
    [20] A. Dey, A. Fekete, and U. Röhm, “Rest+t: Scalable transactions over http”, in 2015
    IEEE International Conference on Cloud Engineering, 2015, pp. 36–41.
    [21] L. Maciel and C. Hirata, “A timestamp-based two phase commit protocol for web
    services using rest architectural style”, Journal of Web Engineering (JWE), vol. 9,
    pp. 266–282, Sep. 2010.
    [22] C.-F. Liao and P.-Y. Chen, “Rosa: Resource-oriented service management schemes
    for web of things in a smart home”, Sensors, vol. 17, no. 10, 2017.
    Description: 碩士
    國立政治大學
    資訊科學系
    112753104
    Source URI: http://thesis.lib.nccu.edu.tw/record/#G0112753104
    Data Type: thesis
    Appears in Collections:[資訊科學系] 學位論文

    Files in This Item:

    File Description SizeFormat
    310401.pdf2028KbAdobe PDF0View/Open


    All items in 政大典藏 are protected by copyright, with all rights reserved.


    社群 sharing

    著作權政策宣告 Copyright Announcement
    1.本網站之數位內容為國立政治大學所收錄之機構典藏,無償提供學術研究與公眾教育等公益性使用,惟仍請適度,合理使用本網站之內容,以尊重著作權人之權益。商業上之利用,則請先取得著作權人之授權。
    The digital content of this website is part of National Chengchi University Institutional Repository. It provides free access to academic research and public education for non-commercial use. Please utilize it in a proper and reasonable manner and respect the rights of copyright owners. For commercial use, please obtain authorization from the copyright owner in advance.

    2.本網站之製作,已盡力防止侵害著作權人之權益,如仍發現本網站之數位內容有侵害著作權人權益情事者,請權利人通知本網站維護人員(nccur@nccu.edu.tw),維護人員將立即採取移除該數位著作等補救措施。
    NCCU Institutional Repository is made to protect the interests of copyright owners. If you believe that any material on the website infringes copyright, please contact our staff(nccur@nccu.edu.tw). We will remove the work from the repository and investigate your claim.
    DSpace Software Copyright © 2002-2004  MIT &  Hewlett-Packard  /   Enhanced by   NTU Library IR team Copyright ©   - Feedback