WCF快多少是TCP比HTTP [英] WCF How much faster is TCP than HTTP

查看:245
本文介绍了WCF快多少是TCP比HTTP的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

据我所知,TCP比HTTP的WCF更快,但我有兴趣来了解你多少。我有一个使用HTTP的大型应用程序的性能问题,并正在考虑是否移动到netTcp会产生足够的性能改进,使投资是值得的。

I understand that TCP is faster than HTTP for WCF but I'm interested to know by how much. I have a performance issue with a large application that uses HTTP and am considering whether moving to netTcp would yield a sufficient performance improvement to make the investment worthwhile.

任何人都知道通过netTCP发送的数据量的差异相比,HTTP绑定?

Anyone know the difference in the amount of data sent by netTCP compared to Http bindings?

推荐答案

到目前为止,很多答案,但没有具体的数据。

So far lots of answers but no concrete data.

微软公司生产的一个测试来衡量的究竟的你问 - 性能(吞吐量)之间的HTTP和TCP的WCF服务的差异。 (该测试没有考虑数据包大小!)

Microsoft produced a test to measure exactly what you asked about - the performance (throughput) difference between HTTP and TCP for WCF services. (The test didn't consider packet size!)

图1:峰值TPS价格为Web服务测试的IBM

什么这表明是TCP /二进制提供近2倍的吞吐量的HTTP / XML的,对于在此测试中的消息。这个测试的瓶颈是服务器CPU,而不是网络。您的结果可能有所不同,因为你的信息会更多(或更少)的复杂,你的网络将是更多(或更少)的限制,并且您的应用程序code将更多(或更少)的CPU密集。但是,这给你一个想法。

What this shows is that TCP/binary delivers nearly 2x the throughput of HTTP/xml, for the messages in this test. The bottleneck on this test was Server CPU, not network. Your results will vary because your messages will be more (or less) complex, your network will be more (or less) constrained, and your app code will be more (or less) CPU-intensive. But this gives you an idea.

其实Stocktrader基准是一个有竞争力的东西,比较WCF的Windows Server上表现了WebSphere在Linux上的。但由于该部分,MS也比较WCF的使用HTTP的WCF使用TCP性能的性能。

Actually the Stocktrader benchmark was a competitive thing, comparing the performance of WCF on Windows Server to that of WebSphere on Linux. But as part of that, MS also compared the performance of WCF using HTTP to the performance of WCF using TCP.

<一个href=\"http://download.microsoft.com/download/4/8/6/486b4b4f-5a87-4b5c-beec-455290f83274/TradeBenchmark_WinServer2008.pdf\"相对=nofollow>下载完整报告Stocktrader

这篇关于WCF快多少是TCP比HTTP的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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