What is the difference between web service and remoting?

前端 未结 7 1656
轮回少年
轮回少年 2021-02-04 04:17

I know web service and have some knowledge on remoting. Both concepts invoke methods on the client machine so where lies the difference ??

Through remoting we can also e

7条回答
  •  陌清茗
    陌清茗 (楼主)
    2021-02-04 04:35

    WebServices are a form of remoting, since you are effectively executing code else where or on the same machine outside of you AppDomain.

    Remoting (InterProcess) on the same machine or over the network, is different in the sence that you Marshal your object between AppDomain/ platform boundries through transparent proxies and serialization. Remoting comes with its complexities and can easily become very complexe. WCF has made things much simpler to maintain. Performance wise, I haven't compared both approaches and would definitely be interested to see how both fare in an InterProcess context. Since WCF can communicate with binary bindings and is not limited to the HTTP Protocol.

    WCF has made this much simpler using Pipes for InterProcess communication.

    In the end WebServices used to communicate via port 80 (standard) HTTP and Remoting could communicate via predefined ports and channels using different serialization formatters.

    They have now been upgraded by WCF which now provides methods for these types of communications.

提交回复
热议问题