coffee, black   no sugar


20070514 Monday May 14, 2007
RPC vs. REST in two sentences

In a recent posting in rest-discuss Roy Fielding answered (probably for the zillionth time) the Question:

On May 10, 2007, at 11:25 AM, Ittay Dror wrote:
> i'm having a hard time understanding your explanation. can you 
> please post two examples, one "RPC plus streaming", the other true 
> REST?

RPC is remote procedure call. One of the things that typical RPC
mechanisms lack is the ability to describe responses (or even
parameters) as a stream of data as opposed to a small data type.
HTTP has no problem doing that even when it is used in an RPC way.
[...]

I offer a description of the main diffence in two short sentences:

In RPC style URIs name questions. In REST style URIs name answers.
You can insert some mainly somewhere and point out edge cases, but it still remains the basic difference.

Technorati Tags: , ,

Comments:

Comments are closed for this entry.