Loading...
|
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 |
Size | Format | |
310401.pdf | | 2028Kb | Adobe PDF | 0 | View/Open |
|
All items in 政大典藏 are protected by copyright, with all rights reserved.
|