Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Is Put idempotent?

 
Ankur Jain Kothari
Ranch Hand
Posts: 154
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hanumant says that put is idempotent because no matter how many times you Put a file on server the same file is going to be uploaded...is this corrent? since in some toher threads i found it too confusing
 
Siva Masilamani
Ranch Hand
Posts: 385
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Idompotent means doing the same thing should not cause bad side effect atleast incase of HTTP.

So if you put a file more than once in a server it will not cause any bad side effect and hence it is consider to be idompotent.

 
Joe Harry
Ranch Hand
Posts: 10128
3
Eclipse IDE Mac PPC Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Anything that causes a change is Idempotent!
 
Ali Murtaza Shaikh
Ranch Hand
Posts: 55
Eclipse IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
@ jothi : Any thing that does not cause a change is idempotent..for example : GET is idempotent because it is only used to get data not changed it...all the methods except POST are idempotent...

@ted :
Hey buddy.have a look at this thread, this might help you:

http://www.coderanch.com/t/176113/Web-Component-Certification-SCWCD/certification/GET-idempotent-POST-not-anybody
 
Łukasz Suchecki
Ranch Hand
Posts: 55
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Everyone STOP
We have to separate things:
- SPEC: spec says that the only non-idempotent method is POST. Thats all. We have to learn it and thats the only right answer on the exam.
- LIVE: as we know live is different that spec sometimes ;) you can make:
* POST that is not changing anything (so we can call it then idempotent)
* GET thats changing data (what is the problem to update DB in doGet method ???)
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic