Skip to content
Surf Wiki
Save to docs
general/data-management

From Surf Wiki (app.surf) — the open knowledge base

Long-running transaction

Computer database transaction pattern


Computer database transaction pattern

Long-running transactions (also known as the saga interaction pattern) are computer database transactions that avoid locks on non-local resources, use compensation to handle failures, potentially aggregate smaller ACID transactions (also referred to as atomic transactions), and typically use a coordinator to complete or abort the transaction. In contrast to rollback in ACID transactions, compensation restores the original state, or an equivalent, and is business-specific. For example, the compensating action for making a hotel reservation is canceling that reservation.

A number of protocols have been specified for long-running transactions using Web services within business processes. OASIS Business Transaction Processing and WS-CAF are examples. These protocols use a coordinator to mediate the successful completion or use of compensation in a long-running transaction.

References

References

  1. (7 January 1987). "SAGAS". Department of Computer Science Princeton University.
  2. Rotem-Gal-Oz, Arnon. (September 24, 2012). "SOA Patterns". Manning Publications.
  3. "OASIS Business Transactions TC | OASIS".
  4. "OASIS Web Services Composite Application Framework (WS-CAF) TC | OASIS".
Info: Wikipedia Source

This article was imported from Wikipedia and is available under the Creative Commons Attribution-ShareAlike 4.0 License. Content has been adapted to SurfDoc format. Original contributors can be found on the article history page.

Want to explore this topic further?

Ask Mako anything about Long-running transaction — get instant answers, deeper analysis, and related topics.

Research with Mako

Free with your Surf account

Content sourced from Wikipedia, available under CC BY-SA 4.0.

This content may have been generated or modified by AI. CloudSurf Software LLC is not responsible for the accuracy, completeness, or reliability of AI-generated content. Always verify important information from primary sources.

Report