IIS 中双工 wcf 服务数据传输速度

发布于 2024-09-17 11:25:07 字数 314 浏览 4 评论 0原文

我有一个网络服务,它通过回调接口将消息发送回客户端。消息在不同的线程上发送。当服务自托管时,性能相当不错。但是,当托管在 II5 中时,消息发送速度较慢。

例如,在自托管服务上,发送 200KB 消息需要 0.2 秒。对于 IIS 托管服务,需要长达 2 秒的时间。在这两种情况下,服务都使用 Silverlight 4 Http 轮询双工绑定,transferMode=streamedResponse。

可能是什么原因以及可以采取哪些措施来提高 IIS 中的传输速度?我尝试在网络配置中设置 aspNetCompatibilityEnabled="true" ,但速度变得更糟。

I have a web service which sends messages back to the client via callback interface. The messages are sent on a different thread. The performance is pretty good when the service is self-hosted. However, when hosted in II5, the messages are sent at slower speed.

For example, on a self-hosted service, it takes 0.2s to send a 200KB message. For the IIS hosted service, it takes a whopping 2 seconds. In both cases, the services are using Silverlight 4 Http Polling Duplex binding, transferMode=streamedResponse.

What could be the reasons and what can be done to improve the transfer speed in IIS? I have tried setting aspNetCompatibilityEnabled="true" in web config and the speed got even worse.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文