Definition
A saga [3] is a sequence of atomic transactions T1 , … , Tn for which the following execution guarantee is made. Either the component transactions Ti will all commit in the order:
in which case that saga is said to have committed or one of the transaction sequences
will be executed (for some 0 ≤ j < n), in which case the saga is said to have aborted. The transactions Ci are compensating transactions for the corresponding saga transactions Ti. Each transaction Ti in a saga must have a corresponding compensating transaction, which is responsible for undoing the Ti′s effects.
Key Points
A saga is a type of extended transaction model [1]. Each component transaction in a saga is executed atomically, but the saga itself is not atomic. Effects of the component transactions are visible to other operations as soon as those transactions commit, which may be well before the saga has finished.
The saga model guarantees...
This is a preview of subscription content, log in via an institution.
Buying options
Tax calculation will be finalised at checkout
Purchases are for personal use only
Learn about institutional subscriptionsRecommended Reading
Chrysanthis PK, Ramamritham K. Synthesis of extended transaction models using ACTA. ACM Trans Database Syst. 1994;19(3):450–91.
Garcia-Molina H. Using semantic knowledge for transaction processing in a distributed database. ACM Trans Database Syst. 1983;8(2):186–213.
Garcia-Molina H, Salem K. Sagas. In: Proceedings of the ACM SIGMOD International Conference on Management of Data; 1987. p. 249–59.
Author information
Authors and Affiliations
Corresponding author
Editor information
Editors and Affiliations
Section Editor information
Rights and permissions
Copyright information
© 2018 Springer Science+Business Media, LLC, part of Springer Nature
About this entry
Cite this entry
Salem, K. (2018). Sagas. In: Liu, L., Özsu, M.T. (eds) Encyclopedia of Database Systems. Springer, New York, NY. https://doi.org/10.1007/978-1-4614-8265-9_724
Download citation
DOI: https://doi.org/10.1007/978-1-4614-8265-9_724
Published:
Publisher Name: Springer, New York, NY
Print ISBN: 978-1-4614-8266-6
Online ISBN: 978-1-4614-8265-9
eBook Packages: Computer ScienceReference Module Computer Science and Engineering