Encyclopedia of Database Systems

2018 Edition
| Editors: Ling Liu, M. Tamer Özsu

Two-Phase Commit

  • Yousef J. Al-HoumailyEmail author
  • George Samaras
Reference work entry
DOI: https://doi.org/10.1007/978-1-4614-8265-9_713


Two-phase commit (2PC) is a synchronization protocol that solves the atomic commitment problem, a special case of the Byzantine Generals problem. Essentially, it is used in distributed database systems to ensure global atomicity of transactions in spite of site and communication failures, assuming that a failure will be, eventually, repaired and each site guarantees atomicity of transactions at its local level.

Historical Background

2PC is the simplest and most studied atomic commit protocol (ACP). It was first published in [9] and [4]. Since then, the protocol has received much attention from the academia and industry due to its importance in distributed database systems, and the research has resulted in numerous variants and optimizations for different distributed database environments. These environments include main memory databases (e.g., [10]), real-time databases (e.g., [5]), mobile database systems (e.g., [12]), heterogeneous database systems (e.g., [2]), Web...

This is a preview of subscription content, log in to check access.

Recommended Reading

  1. 1.
    Al-Houmaily Y. Atomic commit protocols, their integration, and their optimisations in distributed database systems. Int J Intell Inf Database Syst. 2010;4(4):373–412.Google Scholar
  2. 2.
    Al-Houmaily Y. Incompatibility dimensions and integration of atomic commit protocols. Int Arab J Inf Technol. 2008;5(4):381–392.Google Scholar
  3. 3.
    Al-Houmaily Y, Chrysanthis P. Atomicity with incompatible presumptions. In: Proceedings of the 18th ACM SIGACT-SIGMOD-SIGART Symposium on Principles of Database Systems; 1999. p. 306–15.Google Scholar
  4. 4.
    Gray JN. Notes on data base operating systems. In: Flynn MJ et al., editors. Operating systems – an advanced course, LNCS, vol. 60. London: Springer; 1978. p. 393–481.CrossRefGoogle Scholar
  5. 5.
    Haritsa J, Ramamritham K, Gupta R. The PROMPT real-time commit protocol. IEEE Trans Parallel Distrib Syst. 2000;11(2):160–81.CrossRefGoogle Scholar
  6. 6.
    ISO. Open systems interconnection – distributed transaction processing – Part 1: OSI TP Model. ISO/IEC, 10026-1. 1998.Google Scholar
  7. 7.
    Lamport L, Shostak R, Pease M. The byzantine generals problem. ACM Trans Program Lang Syst. 1982;4(3):382–401.zbMATHCrossRefGoogle Scholar
  8. 8.
    Lampson B, Lomet D. A new presumed commit optimization for two phase commit. In: Proceedings of the 19th International Conference on Very Large Data Bases; 1993. p. 630–40.Google Scholar
  9. 9.
    Lampson B., Sturgis H. Crash recovery in a distributed data storage system. Technical report, Computer Science Laboratory, Xerox Palo Alto Research Center, CA, 1976.Google Scholar
  10. 10.
    Lee I, Yeom H. A single phase distributed commit protocol for main memory database systems. In: Proceedings of the 16th International Parallel and Distributed Processing Symposium; 2002. p. 14–21.Google Scholar
  11. 11.
    Mohan C, Lindsay B, Obermarck R. Transaction management in the R* distributed data base management system. ACM Trans Database Syst. 1986;11(4):378–96.CrossRefGoogle Scholar
  12. 12.
    Nouali N, Drias H, Doucet A. A mobility-aware two-phase commit protocol. Int Arab J Inf Technol. 2006;3(1):1–8.Google Scholar
  13. 13.
    Samaras G, Britton K, Citron A, Mohan C. Two-phase commit optimizations in a commercial distributed environment. Distrib Parallel Database. 1995;3(4):325–61.CrossRefGoogle Scholar
  14. 14.
    X/Open Company Limited. Distributed transaction processing: reference model. Version 3 (X/Open Document No. 504). 1996.Google Scholar
  15. 15.
    Yu W, Pu C. A dynamic two-phase commit protocol for adaptive composite services. Int J Web Serv Res. 2007;4(1):80–100.CrossRefGoogle Scholar

Copyright information

© Springer Science+Business Media, LLC, part of Springer Nature 2018

Authors and Affiliations

  1. 1.Institute of Public AdministrationRiyadhSaudi Arabia
  2. 2.University of CyprusNicosiaCyprus

Section editors and affiliations

  • Kian-Lee Tan
    • 1
  1. 1.Dept. of Computer ScienceNational Univ. of SingaporeSingaporeSingapore