哪种WCF绑定最好 [英] which WCF binding is best

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

问题描述

我已经为在相同服务器和服务上运行的三个网站创建了wcf服务.我应该使用哪种类型的绑定.为什么?
并且我在服务中有一种返回数据大小大于65536的方法,并且客户端默认大小为maxReceivedMessageSize ="65536",所以我也可以增加默认大小.

i have create a wcf service for my three web site that runs on same server and service also. what type of binding i should use. and why?
and i have one method in service that return data size is more than 65536, and client side default size is maxReceivedMessageSize="65536" , so how can i increase default size also.

推荐答案

取决于服务所在的位置.

如果它们在同一台计算机上,则NetNamedPipeBinding 应该为您提供最佳性能.

否则,如果它们必须通过Internet进行通信,互操作性等,则必须根据它们的位置进行选择.
参考号: WCF绑定性能 [哪种WCF绑定最佳? [ ^ ]

类似的讨论:
哪个绑定协议是最适合将服务与WCF应用程序绑定 [
Depends on where the services are located.

If they''re on the same machine, NetNamedPipeBinding should give you the maximum performance.

Otherwise you''ll have to choose depending on where they are located, if they have to communicate over the internet, interopability etc.
Ref.: WCF Binding Performance[^]

Refer Rick Rainey''s Blog:
Which WCF Binding Is Best?[^]

Similar discussion:
Which Binding Protocol is best for binding the service with WCF application[^]


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

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