Skip to main content

Sagas

  • Reference work entry
  • First Online:
  • 19 Accesses

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:

$$ {T}_1{T}_2,\dots, {T}_n $$

in which case that saga is said to have committed or one of the transaction sequences

$$ {T}_1,\dots, {T}_j{C}_j,\dots, C $$

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

Chapter
USD   29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD   4,499.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Hardcover Book
USD   6,499.99
Price excludes VAT (USA)
  • Durable hardcover edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Learn about institutional subscriptions

Recommended Reading

  1. Chrysanthis PK, Ramamritham K. Synthesis of extended transaction models using ACTA. ACM Trans Database Syst. 1994;19(3):450–91.

    Article  Google Scholar 

  2. Garcia-Molina H. Using semantic knowledge for transaction processing in a distributed database. ACM Trans Database Syst. 1983;8(2):186–213.

    Article  MATH  Google Scholar 

  3. Garcia-Molina H, Salem K. Sagas. In: Proceedings of the ACM SIGMOD International Conference on Management of Data; 1987. p. 249–59.

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Kenneth Salem .

Editor information

Editors and Affiliations

Section Editor information

Rights and permissions

Reprints and permissions

Copyright information

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

About this entry

Check for updates. Verify currency and authenticity via CrossMark

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

Publish with us

Policies and ethics