I read some discussions about RPC
style and RESTful
web services.
So far I have the following 2 thoughts:
The argue between
RPC
andREST
seems kind of similar to the argue betweenCISC
andRISC
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?