none
Does MSDTC required when Multiple Services Hosted on same machine? RRS feed

  • Question

  • Hi,

    Say i have two WCF services (WS-AT supported) hosted on Same IIS &  client wish to perform some operations on both services under a single Transaction so Does MSDTC required when Multiple Services Hosted on same machine?

    Tuesday, May 13, 2014 9:43 AM

Answers

  • Microsoft Distributed Transaction Coordinator a.k.a MSDTC is primarily designed to maintain transactions with in two resources (your case service) which is distributed in nature i.e multiple box (IIS, Process/AppPool)

    In your case if both the service are on same box and uses same Process (IIS W3wp/AppPool), you do not need a MSDTC (Though MSDTC will work but not a good choice). Refer 6 Steps to Enable Transactions in WCF to see how you can enable AT with out MSDTC.

    If you have both the service deployed on two separate box or both hosted in different Process (AppPool), MSDTC is require to have a AT.


    Lingaraj Mishra

    • Marked as answer by Deepak dixit Tuesday, May 13, 2014 11:21 AM
    Tuesday, May 13, 2014 10:21 AM
  • Yes as both are running on two different process.

    Lingaraj Mishra

    • Marked as answer by Deepak dixit Tuesday, May 13, 2014 1:30 PM
    Tuesday, May 13, 2014 11:42 AM

All replies

  • Microsoft Distributed Transaction Coordinator a.k.a MSDTC is primarily designed to maintain transactions with in two resources (your case service) which is distributed in nature i.e multiple box (IIS, Process/AppPool)

    In your case if both the service are on same box and uses same Process (IIS W3wp/AppPool), you do not need a MSDTC (Though MSDTC will work but not a good choice). Refer 6 Steps to Enable Transactions in WCF to see how you can enable AT with out MSDTC.

    If you have both the service deployed on two separate box or both hosted in different Process (AppPool), MSDTC is require to have a AT.


    Lingaraj Mishra

    • Marked as answer by Deepak dixit Tuesday, May 13, 2014 11:21 AM
    Tuesday, May 13, 2014 10:21 AM
  • Just for clarification, In case both services are hosted on different application pool in same IIS then do we need MSDTC?
    Tuesday, May 13, 2014 11:24 AM
  • Yes as both are running on two different process.

    Lingaraj Mishra

    • Marked as answer by Deepak dixit Tuesday, May 13, 2014 1:30 PM
    Tuesday, May 13, 2014 11:42 AM