Previous | Home | Next |
WCF supports the two-phase commit process but the transaction protocol that is used varies based on the situation. WCF supports the following three types of transaction protocols:
Lightweight protocol:
Lightweight protocol is used in a local context only, inside the same app domain to manage transactions . Under this protocol, Transaction must be within a single AppDomain. There should not be any cross calls for other AppDomains, so logically no client-service calls are allowed..The lightweight protocol is used only inside a service or outside services.Lightweight protocol cannot propagate the transaction across the app domain boundary nor can it flow the transaction across any service boundary . The Lightweight protocol yields the best performance compared with the other protocols
OleTx Protocol:
OleTx protocol is used to propagate transactions across app domain, process, and machine boundaries, and to manage the two-phase commit protocol.he OLE Transaction (OleTx) protocol is the standard for use with distributed transactions in a homogeneous environment.The protocol uses RPC calls, and the exact binary format of the calls is Windows-specific.As a result of the use of both the RPC and the Windows-specific format, it cannot go across firewalls or interoperate with non-Windows parties. Under this protocal communication through firewalls is now allowed and cross-platform communications are also not allowed. Because of this, it is typically used in a Windows intranet scenario.This is usually not a problem because the primary use for the OleTx protocol is for managing transactions in an intranet, in a homogenous Windows environment, and when a single transaction manager is involved
WSAT ProtocoL:
WS-Atomic (WS-AT) protocol is not different from OleTx in terms of its capabilities.This protocol is similar to the OleTx protocol in that it too can propagate the transaction across app domain, process, and machine boundaries, and manage the two-phase commit protocol.It is a two-phase protocol that can propagate transactions across process, App-Domain, and computer boundaries.the WSAT protocol is based on an industry standard and, when used over HTTP with text encoding, can go across firewalls.
The main difference is that although OleTx is limited to computers running Windows behind a firewall, WS-AT is an industry standard that can be used over HTTP
LTM promotion: LTM is the Lightweight Transaction Manager.if the transaction tries to enlist a second durable resource or the transaction is propagated to a service, WCF will promote the transaction from the LTM to the DTC
KTM promotion: The KTM can manage a transaction as long as it interacts with a single KRM and as long as the transaction is local.
Previous | Home | Next |