淘客熙熙

主题:【文摘】.NET Remoting vs. XML Web Services -- 老兵帅客

共:💬6 新:
全看树展主题 · 分页首页 上页
/ 1
下页 末页
家园 【文摘】.NET Remoting vs. XML Web Services

XML Web services offer a simpler model for distributed applications than that provided by .NET Remoting. XML Web services are fine-tuned for Internet scenarios and cross-platform use. Although you can apply .NET Remoting in these scenarios, thanks to its SOAP formatter and HTTP channel, .NET Remoting is more suitable as a high-speed solution for binary communication between proprietary .NET components, usually over an internal network. And although XML Web services can't match the communication speed of .NET Remoting over a binary channel, they still lend themselves to high-performance designs thanks to their stateless nature and ASP.NET's multithreaded hosting service.

Here's a quick overview of the major differences between the XML Web service and .NET Remoting technologies:

XML Web services are more restricted than objects exposed over .NET Remoting. An XML Web service works in a similar way to a SingleCall .NET Remoting object. It isn't possible to create a singleton or a client-activated object.

Because of the restricted nature of XML Web services, the design issues are simplified. XML Web services are generally easier to create than remotable components (and easier to design well).

Communication with .NET Remoting can be faster than XML Web service communication if you use a binary formatter. XML Web services support only SOAP message formatting, which uses larger XML text messages.

XML Web services support open standards that target cross-platform use. For example, each .NET XML Web service has an associated WSDL document that describes how a client can interact with the service. Therefore, any client that can parse an XML message and connect over an HTTP channel can use an XML Web service, even if the client is written in Java and hosted on a UNIX computer.

XML Web services are designed for use between companies and organizations. They can use a dynamic discovery mechanism or a UDDI registry that "advertises" services to interested parties over the Internet.

XML Web services don't require a dedicated hosting program because they are always hosted by ASP.NET. That also means that they gain access to some impressive platform services, including data caching, Web farm?Cready session state management, authentication, and an application collection for global, shareable objects. These features, if required, can be extremely difficult to re-create by hand in a component exposed through .NET Remoting.

Because XML Web services work through Microsoft Internet Information Services (IIS) and ASP.NET, they can communicate with clients using the default HTTP channel (usually port 80). This means that consumers can use XML Web services just as easily as they can download HTML pages from the Internet. There's no need for an administrator to open additional ports on a firewall.

家园 .NET 1.0 Beta的时候,我还真花了几天摆弄Remoting,

还对比Java RMI。后来工作中一直没有用到,现在连概念都有些生疏了!

家园 微软的书里对它的解释

微软说.Net Remoting和Web Service是并行开发的,.Net Remoting可以认为是DCOM的一个某种后继而Web Service则属于开放结构。

家园 鬼子这边大项目里,这种东西都不让用.....所以只有...

用MQ把Server连接,然后自己构筑Server间通讯协议了,呵呵呵

家园 Remoting微软自己都不怎么推销,可能因为是太Proprietary了。

所以别人也不怎么用。

web application/web service 可能是save bet,大多数公司可能都这么想。

家园 .Net Remoting还是有它的优点的

只是需求不是很大,而且相比较于它的缺点和其它方案,它的吸引力自然就不够强了。

全看树展主题 · 分页首页 上页
/ 1
下页 末页


有趣有益,互惠互利;开阔视野,博采众长。
虚拟的网络,真实的人。天南地北客,相逢皆朋友

Copyright © cchere 西西河