flatiron/resourceful — Issue #25: Add retry logic to couchdb `update`
Author: thejh
Created: 2011-12-04 13:42:27+00:00
State: open

For couchdb, an update conflict shouldn't directly throw an error. It should cause a retry: random wait, `GET` the new version, re-apply the transformation, try to `PUT` again. Repeat until it works. Also, I think that it would be good if the update function accepted a transformation function rather than a new version. Have a look at this:

https://github.com/thejh/node-relax#readme
https://github.com/thejh/node-relax/blob/master/index.co#L40-55