Web service: RPC vs. RESTful = CISC vs. RISC?

I read some discussions about RPC style and RESTful web services.

So far I have the following 2 thoughts:

  • The argue between RPC and REST seems kind of similar to the argue between CISC and RISC instruction architecture. RPC looks forward to using a more complex vocabulary while REST just use a few common verbs.

  • The REST style just introduce the HTTP protocol as the middle-layer between client and server in the hope to decouple the 2 parties. Just like David Wheeler said:

    All problems in computer science can be solved by another level of indirection, except of course for the problem of too many indirections.

  • So:

  • Are these 2 thoughts valid?

  • What are the most appropriate scenarios for these 2 styles, respectively?

  • 链接地址: http://www.djcxy.com/p/71278.html

    上一篇: 样式的Web服务使用REST还是SOAP?

    下一篇: Web服务:RPC与RESTful = CISC与RISC?