WCF - 最快的绑定是什么? [英] WCF - what is the fastest binding?

查看:28
本文介绍了WCF - 最快的绑定是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前有一个 WCF 服务,它使用 BasicHTTP 绑定,并用安全路由器/防火墙 (PFSense) 封装.

I currently have a WCF service which uses BasicHTTP binding, and is wrapped with a secure router/firewall (PFSense).

我听说有比 BasicHTTP 绑定更快的绑定,但我现在知道它是什么.

I have heard that there is a faster binding than BasicHTTP binding, but I do now know what it is.

有人知道吗?

更新:好的,内部网/本地主机的两个很好的答案.谢谢!互联网部署的应用程序呢?有没有更快的以互联网为中心的解决方案?

推荐答案

如果您的解决方案部署到 Intranet,您可以使用 NetTcpBinding.

If your solution is deployed to an intranet, you can use NetTcpBinding.

http://msdn.microsoft.com/en-us/library/system.servicemodel.nettcpbinding.aspx

虽然可能不具有权威性,这篇文章涵盖了这些结果的一些基准测试,其中与我的回答和 parapura 的一致:

While perhaps not authoratative, this post covers some benchmarking with these results, which are consistent with my answer and parapura's:

WSDualHttpBinding: Processed 1602 calls in 10 seconds
WSHttpBinding: Processed 2531 calls in 10 seconds
BasicHttpBinding: Processed 17913 calls in 10 seconds
NetTcpBinding: Processed 39957 calls in 10 seconds
NetNamedPipeBinding: Processed 48255 calls in 10 seconds

这篇关于WCF - 最快的绑定是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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