• [织梦吧]唯一域名:www.dedecms8.com,织梦DedeCMS学习平台.

当前位置: > 编程与数据库 > net编程 >

WCF服务编程设计规范(6):队列服务、安全和服务总线(2)

来源: www.dedecms8.com 编辑:织梦吧 时间:2012-06-27点击:

11. On the client side, do not store a queued service proxy in a member variable.

在客户端,不要在成员变量里存储队列服务的代理

12. Avoid relatively short values of TimeToLive, as they negate the justification for a queued service.

避免使用相对短的TimeToLive值,因为这会干扰队列服务的决策

13. Avoid nontransactional queues.

避免非事务性队列

14. When using a response queue, have the service participate in the playback transaction and queue the response in that transaction.

当使用一个应答队列时,让服务参与到一个回放事务中,并且在事务里,把应答消息装入队列。

15. Have the response service participate in the response playback transaction.

让应答服务参与到应答回放事务里

16. Avoid lengthy processing in a queued response operation.

避免在应答操作里进行冗长的处理工作

17. With MSMQ 3.0, prefer a response service to a poison queue service dealing with failures of the service itself.

对于MSMQ3.0,推荐使用应答服务来处理服务自身失败,而不是毒信队列

 

18. With MSMQ 4.0, use ReceiveErrorHandling.Reject for poison messages unless you have advanced processing with ReceiveErrorHandling.Move.

About D8

  • ©2014 织梦吧(d8) DedeCMS学习交流平台
  • 唯一网址 www.DedeCMS8.com 网站地图
  • 联系我们 1170734538@qq.com ,  QQ