Batch!

October 28, 2007

James Snell shows an example of GData batch updates and writes:

If the mere sight of this doesn’t give you shivers and shakes, let me give you a few reasons why it should.

Shivering and shaking, I note that in addition to his (very valid) reasons, XML fragments like

<batch:operation type="insert"/>

should make it obvious: Anytime you find yourself adding words like “operation” to your representation, you’ve violated one of the core RESTful HTTP principles, which is that the intent should be communicated using the HTTP verb.

About

This page contains a single entry from Stefan Tilkov's Random Stuff posted on October 28, 2007 10:03 PM. The previous post in this blog was String#to_proc. The next post in this blog is The Day the Routers Died. Many more can be found on the main index page or by looking through the archives.

Comments

I hope this helps make it clear why some of us in the Atompub WG argued batch out of the spec. There are other essential problems with batch over HTTP; I’m not sure it can be done cleanly.

Incidentally, I don’t see how gdata batch is any worse than the features draft or requests to use Atompub to upload binary+atom in one shot for media resource handling.

Posted by: Bill de hOra at October 29, 2007 2:22 PM | link

I started a comment but it got too long, so I put it here: http://appside.blogspot.com/2007/10/poking-at-roa.html

Posted by: Erik at October 30, 2007 1:26 AM | link

Bill, I can understand the reference to compound posts, but I’m not sure why you’re drawing a comparison to the features draft.

Posted by: James Snell at October 30, 2007 5:14 AM | link