`
junj
  • 浏览: 32716 次
  • 来自: ...
最近访客 更多访客>>
文章分类
社区版块
存档分类
最新评论

Performance: Remoting vs. Web Services

阅读更多
HTTP vs. TCP. Even though TCP squeezes out more throughput in extreme scenarios, it's hard to argue against the ubiquity of HTTP and port 80. It costs a little more, but you get proxies, compression, routing, and a lot more. Well worth it for the small cost.


Windows Service vs. IIS. Really the same argument as above. Like HTTP, IIS is such a well understood entity. It gives you a lot of free bonus functionality you wouldn't get in a vanilla service (think web farms for scalability). It's hard to justify not using it, given the minor performance hit.


Binary vs. SOAP. Binary is "poor man's compression". Plaintext/SOAP has the advantage of transparency, so if you can get a decent compression layer in there somewhere, you really don't need binary. I can't believe MS didn't include a compression layer in their remoting stack, so you might as well plan on using binary for now. This ties directly into the serialization time, which can be significant on large objects/datasets; the improvement in performance can be dramatic.


Remoting vs. Web Service. Where do I start? It depends how tightly coupled you want your application to be to your server-side API. Remoting is a little easier to get running with minimal work in the short term, but the long term benefits skew heavily towards Web Services. When you build a WS, you've built a truly generic HTTP interface layer that you can leverage for the forseeable future. This isn't a COM or CORBA flash in the pan.


http://www.codinghorror.com/blog/archives/000049.html

分享到:
评论

相关推荐

    surrogatesample.exe

    Generally, Remoting is more efficient than WebServices. But for large DataSets, that is not the case. Accessing large DataSets over WebServices has better performance characteristic than remoting. ...

    Applied XML Programming for Microsoft .NET

    XML is everywhere in the Microsoft® .NET Framework, from Remoting to Web services and from data access to configuration. Learn about the extensive XML core classes in .NET and find out how to program...

    中美 IT 培训 C# Asp.net 笔记3

    详细地讲授Web Service及其应用和相关的安全性问题、WSE(Web Services Enhancements)、SOAP、WSDL、UDDI、Windows Service、VSS(Visual Source Safe)。讲授用户控件和第三方控件的开发和使用。学习HTML、XML、...

    Professional C# 3rd Edition

    Using Pointers to Optimize Performance 212 Summary 216 Chapter 8: Strings and Regular Expressions 217 System.String 218 Building Strings 219 Format Strings 223 Regular Expressions 229 Introduction to ...

    flex3 java 通信

    通过WSDL(Web Services Description Language)定义服务接口,Flex客户端可以调用这些服务,处理复杂的数据交换。 5. **Flash Remoting**:虽然不是Flex3与Java通信的首选方式,但Flash Remoting(通过...

    Developing Applications With Visual Studio.Net

    The .NET Framework supplies programmers with rich standard run-time services, supports the development of Web-based services, and provides both inter-language and inter-machine interoperability....

    中美 IT 培训 C# Asp.net 笔记2

    详细地讲授Web Service及其应用和相关的安全性问题、WSE(Web Services Enhancements)、SOAP、WSDL、UDDI、Windows Service、VSS(Visual Source Safe)。讲授用户控件和第三方控件的开发和使用。学习HTML、XML、...

    中美 IT 培训 C# Asp.net 全套笔记1

    详细地讲授Web Service及其应用和相关的安全性问题、WSE(Web Services Enhancements)、SOAP、WSDL、UDDI、Windows Service、VSS(Visual Source Safe)。讲授用户控件和第三方控件的开发和使用。学习HTML、XML、...

    值类型与引用类型理论内容.part01.rar

    重点讲叙VS2005的新功能实现Web编程) <br>培养目标:IT人才市场紧缺的精通.Net应用开发的软件技术人才。 精通C#.Net、ASP.Net、ADO.Net、AJAX、WEB2.0、XML、JavaScript、SQL Server 2000、Web Service、...

    值类型与引用类型理论内容.part05.rar

    重点讲叙VS2005的新功能实现Web编程) <br>培养目标:IT人才市场紧缺的精通.Net应用开发的软件技术人才。 精通C#.Net、ASP.Net、ADO.Net、AJAX、WEB2.0、XML、JavaScript、SQL Server 2000、Web Service、...

    开发人员应该了解的知识.txt

    - **Web Services**:Web 服务提供了一种标准化的方法来实现应用程序间的通信,如 SOAP 和 RESTful 服务。 #### 九、.NET应用程序部署与优化 - **Build Configurations**:Debug Build 和 Release Build 分别用于...

    C#学习的101个经典例子

    Web Services - Consume a Web Service WebService - How To Transfer Binary Data Windows Forms - How-To Data Binding with Navigation Windows Forms - How-To System Tray Icon Windows Forms - How-To ...

    TMNS

    此外,SOAP(Simple Object Access Protocol)是TMNS中常用的Web服务协议,C#提供了System.Web.Services支持SOAP通信。 6. **异步编程**:考虑到网络操作可能涉及大量的I/O操作,C#的异步编程模型(如async/await...

Global site tag (gtag.js) - Google Analytics