Hacker News new | ask | show | jobs
by icebraining 3735 days ago
REST is based on a lot of optimism.

REST is based on the observation of the communications patterns developed for the web. Optimism? About what?

And by the way, OpenBSD includes a RESTful server in its core projects.

1 comments

REST works well over HTTP as it handles hypertext, but it's interesting that Fielding wrote the following:

REST does not restrict communication to a particular protocol, but it does constrain the interface between components, and hence the scope of interaction and implementation assumptions that might otherwise be made between components. For example, the Web's primary transfer protocol is HTTP, but the architecture also includes seamless access to resources that originate on pre-existing network servers, including FTP, Gopher, and WAIS. Interaction with those services is restricted to the semantics of a REST connector. This constraint sacrifices some of the advantages of other architectures, such as the stateful interaction of a relevance feedback protocol like WAIS, in order to retain the advantages of a single, generic interface for connector semantics. In return, the generic interface makes it possible to access a multitude of services through a single proxy. If an application needs the additional capabilities of another architecture, it can implement and invoke those capabilities as a separate system running in parallel, similar to how the Web architecture interfaces with "telnet" and "mailto" resources. [1]

1. https://www.ics.uci.edu/~fielding/pubs/dissertation/rest_arc...