entity framework - Calling two WCF services in one transaction. Both talk to the same database. Is MSDTC is the only option -
i have wcf service servicea.
that in turn has call 2 individual wcf services serviceb , servicec 2 different things, if call servicec fails want rollback serviceb did.
i did implement using transactionscope (i using ef 6.0) without enabling msdtc not working. there workaround this? not want go through msdtc route because afraid cause lot of performance issues , web admins against it.
what want distributed transaction, because transaction contains cross boundary participants. best of knowledge, solution distributed transaction in windows platform msdtc, there no way around this.
i would, however, recommend try seek more eventual consistent solution, rather strictly transactional, because solution perform , scale better. granted, have deal special cases data not consistent, lead more complex code.
from experience, worth it, you.
Comments
Post a Comment