Explain transactions in WCF. - .NET WCF

Explain transactions in WCF.

- Transactions in WCF allow several components to concurrently participate in an operation.

- It is a collection of one or more units of operation executed as a whole.

- Transactions are a group of operations that are atomic, consistent, isolated and durable.

- WCF has features that allow distributed transactions.

- Application config file can be used for setting transaction timeouts.

- It plays an important role in any business application that involved CRUD operations.

It has following four characteristics:

1. Atomic
2. Consistent
3. Isolated
4. Durable

1. Atomic:
- Transaction must be atomic, it means either all the operations of the transactions succeed or none of them succeed.

2. Consistent:
- Consistent transaction means that the outcome is exactly what you expected it to be.

3. Isolated:
- Isolated transactions are private, it means that no else knows about the transaction until it is committed.

4. Durable:
- Durable transaction must survive failures. In this, the changes have taken effect. For a transaction to be durable, it must maintain its committed state if there is a failure.
What are the various programming approaches for WCF? - .NET WCF
Programming approaches for WCF - Imperative, Configuration based, Attributes....
What are the advantages of hosting WCF services in IIS? - .NET WCF
Advantages of hosting WCF services in IIS - Provides process activation and recycling ability thereby increasing reliability......
What are different isolation levels provided in WCF? - .NET WCF
The different isolation levels: READ UNCOMMITTED, READ COMMITTED, REPEATABLE READ, SERIALIZABLE....
Post your comment