Skip to main content

Sagas

  • Reference work entry
Encyclopedia of Database Systems
  • 59 Accesses

Definition

A saga [3] is a sequence of atomic transactions T 1,...,T n for which the following execution guarantee is made. Either the component transactions T i will all commit in the order

$$T_1 \,T_2,..., T_n$$

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

$$T_1,...,T_j \,C_j, ...,C_1$$

will be executed (for some 0 ≤ j < n), in which case the saga is said to have aborted. The transactions C i are compensating transactions for the corresponding saga transactions T i . Each transaction T i in a saga must have a corresponding compensating transaction, which is responsible for undoing the T i ’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 to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 2,500.00
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Recommended Reading

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

    Google Scholar 

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

    Google Scholar 

  3. Garcia-Molina H. and Salem K. Sagas. In Proc. ACM SIGMOD Int. Conf. on Management of Data, 1987, pp. 249–259.

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2009 Springer Science+Business Media, LLC

About this entry

Cite this entry

Salem, K. (2009). Sagas. In: LIU, L., ÖZSU, M.T. (eds) Encyclopedia of Database Systems. Springer, Boston, MA. https://doi.org/10.1007/978-0-387-39940-9_724

Download citation

Publish with us

Policies and ethics