netTcpBinding/BasicHttpBinding
有人可以帮助了解 netTcpBinding 与 BasicHttpBinding 之间的主要区别吗?
在我当前的项目中,我们将 BasicHttpBinding 转换为 netTcpBinding 并遇到性能问题,即使 BizTalk 中的值设置为 1:00:00,它也会开始超时。我们不明白为什么?
Can someone help to what are the major diff between netTcpBinding v/s BasicHttpBinding ?
In my current project we convert BasicHttpBinding to netTcpBinding and get performance issue, it start timing out even thou the value in BizTalk is set to 1:00:00. We couldn't figure out why ?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
netTcp 和 basicHttp 绑定使用完全不同的传输机制:TCP 而不是 HTTP。理论上来说,TCP的二进制编码应该比HTTP的文本编码要快。
正如所讨论的 此处,由于额外的安全开销和/或争用,netTcpBinding 可能不会那么快:
另请注意,如果没有有关通信哪一部分超时的更多信息,则很难说出确切的原因。请记住,交易的每一方对于“打开”、“关闭”以及“发送或接收”都有不同的超时设置。
netTcp and basicHttp bindings use entirely different transport mechanisms: TCP instead of HTTP. In theory, the binary encoding of TCP should be faster than the text encoding of HTTP.
As discussed here, netTcpBinding may not be as fast, because of additional security overhead and/or contention:
Also note that without more information on what part of communication is timing out, it's difficult to say the exact cause. Remember, each side of the transaction has different timeout settings for Open, Close, and Send or Receive.