REST WCF 服务中的事务 [英] Transaction in REST WCF service

查看:53
本文介绍了REST WCF 服务中的事务的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们有一个 REST WCF 服务.我们希望此 REST 服务上的保存操作处于事务中.有没有办法通过网络将事务对象传递给 REST WCF 服务?

We are having a REST WCF service. we want the save operation on this REST service to be in transaction. Is there a way to pass Transaction object over the wire to REST WCF service?

推荐答案

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

Here is a quote from Roy Fielding, the guy who invented the term REST

如果您发现自己需要分布式事务协议,然后你怎么可能说你的架构基于REST?一世根本看不到你怎么能从一种情况(使用 RESTful客户端上的应用程序状态和超媒体确定所有状态过渡)到下一个情况需要分布式协议事务语义,其中客户端必须告诉服务器如何管理自己的资源.

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.

这是来自 REST-discuss 上的消息2009 年 6 月 9 日的列表.

This is from a message on the REST-discuss list from June 9th, 2009.

这篇关于REST WCF 服务中的事务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆