CST(54)-Chained and Nested Transactions

Chained transaction : The chained transaction as the name implies introduces some form of linear control for sequencing through the tran...

Chained transaction :

The chained transaction as the name implies introduces some form of linear control for sequencing through the transaction . The simplest form of chaining is to use synchpoints which is known as save points . The synch points lets you to rollback the accumulated piece of work. And stile remains alive in the transaction. But commit ends a transaction. While there is a power failure the savepoints are not reliable . The commit is realiable in this place.

Chained transactions are a variation of synchpoints that make the accumulated work durable. They allow you to commit work while staying within the transactions . But the entire chain of work is not allowed to roll back.

Sagas extend the chained transaction to let you rollback the entire chain. They do that by maintaining a chain of compensating transactions . We can still get crash resistance of the intermediate commits but you have the choice of rolling back the entire chain under program control.

Nested transaction :

Nested transaction provide the ability to define the transactions within other transaction. They do that by breaking a transaction into hierarchies of sub transactions.

Each sub transactions can issue a commit or rollback for its designated pieces of work. When a sub transaction commits its results are only accessible to the parent that spawned it. A sub transactions commit is mad e permanent after it issues a local commit and all its ancestors commit. If a parent transactions rollback all its descendant transactions also rollbacks. The main benefit of nesting is that a failure in a sub transaction can be trapped and retried using an alternative method.
Name

ADO,131,ASP,3,C++,61,CORE JAVA,1,CSS,115,HTML,297,index,5,JAVASCRIPT,210,OS,47,PHP,65,SAD,53,SERVLETS,23,SOFTWARE ENGINEERING,245,SQL,71,TCP/IP,1,XHTML,9,XML,18,
ltr
item
Best Online Tutorials | Source codes | Programming Languages: CST(54)-Chained and Nested Transactions
CST(54)-Chained and Nested Transactions
Best Online Tutorials | Source codes | Programming Languages
https://www.1000sourcecodes.com/2023/07/cst54-chained-and-nested-transactions.html
https://www.1000sourcecodes.com/
https://www.1000sourcecodes.com/
https://www.1000sourcecodes.com/2023/07/cst54-chained-and-nested-transactions.html
true
357226456970214079
UTF-8
Loaded All Posts Not found any posts VIEW ALL Readmore Reply Cancel reply Delete By Home PAGES POSTS View All RECOMMENDED FOR YOU LABEL ARCHIVE SEARCH ALL POSTS Not found any post match with your request Back Home Sunday Monday Tuesday Wednesday Thursday Friday Saturday Sun Mon Tue Wed Thu Fri Sat January February March April May June July August September October November December Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec just now 1 minute ago $$1$$ minutes ago 1 hour ago $$1$$ hours ago Yesterday $$1$$ days ago $$1$$ weeks ago more than 5 weeks ago Followers Follow THIS PREMIUM CONTENT IS LOCKED STEP 1: Share to a social network STEP 2: Click the link on your social network Copy All Code Select All Code All codes were copied to your clipboard Can not copy the codes / texts, please press [CTRL]+[C] (or CMD+C with Mac) to copy Table of Content