wcf - REST WCF 服务中的事务

标签 wcf rest transactions wcf-rest

我们有 REST WCF 服务。 我们希望此 REST 服务上的保存操作处于事务中。 有没有办法将 Transaction 对象通过线路传递给 REST WCF 服务?

最佳答案

这里引用 Roy Fielding 的话,他是 REST 一词的发明者

If you find yourself in need of a distributed transaction protocol, then how can you possibly say that your architecture is based on REST? I simply cannot see how you can get from one situation (of using RESTful application state on the client and hypermedia to determine all state transitions) to the next situation of needing distributed agreement of transaction semantics wherein the client has to tell the server how to manage its own resources.

...for now I consider "rest transaction" to be an oxymoron.

这来自 message自 2009 年 6 月 9 日起在 REST 讨论列表中。

关于wcf - REST WCF 服务中的事务,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1389881/

相关文章:

c# - WCF 服务对象序列化

wcf - 垃圾回收后 WCF 中 COM 对象的访问冲突

c# - 缓存 ASP.NET AJAX 服务 javascript 代理

rest - 出现并发错误时抛出什么状态码?

sql-server - 计算 SQL Server 2008 中的回滚次数

java - 将多个 Maven 目标合并到一个事务中(例如部署和站点部署,如果站点部署失败怎么办?)

WCF超时异常详查

java - 在内部从 Java 进行多个 REST 调用

api - 使用 GNU Parallel 进行分页

python - Django 嵌套 transaction.atomic 抛出 IntegrityError "SAVEPOINT does not exist"与 MySQL