NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

Working with Transactions

When you purchase a book from an online bookstore, you exchange money (in the form of credit) for a book. If your credit is good, a series of related operations ensures that you get the book and the bookstore gets your money. However, if a single operation in the series fails during the exchange, the entire exchange fails. You don’t get the book and the bookstore doesn’t get your money.

The technology responsible for making the exchange balanced and predictable is called transaction processing. Transactions ensure that data-oriented resources are not permanently updated unless all operations within the transactional unit complete successfully. By composing a set of related operations into a unit that either completely succeeds or completely fails, you can simplify error recovery and make your application more reliable.

This guide to transaction processing explains the following:

Topic Description
Transaction Processing Fundamentals Introduces basic transaction processing terms and concepts.
Transaction Models Compares and contrasts two models for adding transactions to your NGWS application.