logoalt Hacker News

nchmytoday at 8:39 PM1 replyview on HN

but if state lives on the server and all you are delivering is html, how is that not "restful"?


Replies

frollogastontoday at 8:49 PM

One of the main properties of REST: "Each request from any client contains all the information necessary to service the request, and the session state is held in the client."

In practice, REST makes things like caching, load-balancing, and debugging easier at the cost of needing to send more state back and forth. In HTTP, there are ways to reduce or at least hide the repeated TCP handshakes.