gpt4 book ai didi

wcf - REST WCF 服务中的事务

转载 作者:行者123 更新时间:2023-12-03 03:30:25 26 4
gpt4 key购买 nike

我们有 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/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com