Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

RESTful and reliable HTTP sessions

 
Tom Stevns
Ranch Hand
Posts: 122
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello !

How solves RESTful the need for WebServices based on HTTP to be extreme
reliable.

Implicit that HTTP is an unreliable protocol.
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HTTP is a reliable protocol, since it's based on TCP, which adds reliability to the protocol stack.

In what way do you perceive HTTP to be unreliable?

REST is a different method of programming/using WS; it adds nothing in terms of reliability (and actually diminishes the security that the SOAP stack has by way of WS-Security - which may be just fine for some or many applications).
 
Leonard Richardson
author
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Tom: If you need to make sure that an HTTP request goes through, you can usually just keep sending the request until you get a response. The HTTP standard puts restrictions on what the server can do in response to a GET, PUT, or DELETE request, so nothing bad will happen if the request is processed multiple times. (Assuming the service is well designed.)

However, those restrictions don't hold for POST requests. There are other ways of making POST requests reliable (like Post Once Exactly, which we cover in RWS), or replacing POST with PUT.
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!