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
分享到:
相关推荐
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. ...
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...
详细地讲授Web Service及其应用和相关的安全性问题、WSE(Web Services Enhancements)、SOAP、WSDL、UDDI、Windows Service、VSS(Visual Source Safe)。讲授用户控件和第三方控件的开发和使用。学习HTML、XML、...
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 ...
通过WSDL(Web Services Description Language)定义服务接口,Flex客户端可以调用这些服务,处理复杂的数据交换。 5. **Flash Remoting**:虽然不是Flex3与Java通信的首选方式,但Flash Remoting(通过...
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....
详细地讲授Web Service及其应用和相关的安全性问题、WSE(Web Services Enhancements)、SOAP、WSDL、UDDI、Windows Service、VSS(Visual Source Safe)。讲授用户控件和第三方控件的开发和使用。学习HTML、XML、...
详细地讲授Web Service及其应用和相关的安全性问题、WSE(Web Services Enhancements)、SOAP、WSDL、UDDI、Windows Service、VSS(Visual Source Safe)。讲授用户控件和第三方控件的开发和使用。学习HTML、XML、...
重点讲叙VS2005的新功能实现Web编程) <br>培养目标:IT人才市场紧缺的精通.Net应用开发的软件技术人才。 精通C#.Net、ASP.Net、ADO.Net、AJAX、WEB2.0、XML、JavaScript、SQL Server 2000、Web Service、...
重点讲叙VS2005的新功能实现Web编程) <br>培养目标:IT人才市场紧缺的精通.Net应用开发的软件技术人才。 精通C#.Net、ASP.Net、ADO.Net、AJAX、WEB2.0、XML、JavaScript、SQL Server 2000、Web Service、...
- **Web Services**:Web 服务提供了一种标准化的方法来实现应用程序间的通信,如 SOAP 和 RESTful 服务。 #### 九、.NET应用程序部署与优化 - **Build Configurations**:Debug Build 和 Release Build 分别用于...
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 ...
此外,SOAP(Simple Object Access Protocol)是TMNS中常用的Web服务协议,C#提供了System.Web.Services支持SOAP通信。 6. **异步编程**:考虑到网络操作可能涉及大量的I/O操作,C#的异步编程模型(如async/await...