简体   繁体   English

是否应为Intranet方案禁用WCF可靠会话?

[英]Should I disable WCF reliable sessions for Intranet scenarios?

The scenario is a web server in a DMZ that talks to a WCF server for all database related calls. 该方案是DMZ中的Web服务器,该服务器与WCF服务器进行所有数据库相关的调用。

All calls are server to server in an intranet, either over netTcp or wsHttp from a ASPX page which calls an SVC service. 所有调用都是通过调用SVC服务的ASPX页面上的netTcp或wsHttp通过Intranet进行的。

Theoretically speaking, should I take action to disable the reliable session features, or should I enable them, or would it make no difference? 从理论上讲,我应该采取措施禁用可靠的会话功能,还是应该启用它们,或者没有什么区别?

It appears that reliable sessions introduces configuration risks (ie failures because WCF is so difficult to configure). 似乎可靠的会话会带来配置风险(即,由于WCF难以配置而导致失败)。

This is problematic if there never is a message that fails to go from one intranet server to the other, or if there never is an out-of-order message. 如果从来没有一条消息无法从一个Intranet服务器发送到另一台Intranet服务器,或者从不存在乱序消息,则这是有问题的。

I wish I could load test this and monitor for the existence of dropped messages, but my available test environments are way different from the production environment with respect to network reliability. 我希望可以对此进行负载测试并监视是否存在丢弃的消息,但是就网络可靠性而言,我可用的测试环境与生产环境有所不同。

Note : The users are not using WCF clients, they are just using ordinary web browsers talking to an ASPX page, all WCF activity is on the intranet side of the firewall. 注意 :用户使用的不是WCF客户端,而只是使用与ASPX页面通信的普通Web浏览器,所有WCF活动都在防火墙的Intranet一侧。

According to msdn: 根据msdn:

If your scenario has any of the following characteristics, then you should consider using a WCF reliable session: 如果您的方案具有以下任何特征,则应考虑使用WCF可靠会话:

  1. SOAP intermediaries, such as SOAP routers. SOAP中介,例如SOAP路由器。
  2. Proxy intermediaries or transport bridges. 代理中介或传输桥。
  3. Intermittent connectivity. 间歇性连接。
  4. Sessions over HTTP. 通过HTTP的会话。

I think it doesn't make sense whether intranet or DMZ, so it depends on your requirement. 我认为Intranet或DMZ没有意义,因此取决于您的要求。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM