O'Reilly logo

Amazon SimpleDB Developer Guide by Prabhakar Chaganti, Rich Helms

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Consistent Read and Conditional Put / Delete announcement

Two key enhancements were announced on February 24, 2010 to SimpleDB: Consistent Read for getAttributes/Select and Conditional Put/Delete.

ConsistentRead = true for getAttributes and Select

Consistent Read enables you to get the most recent values bypassing the eventual consistency system. Consistent Read should not be used as a way to bypass eventual consistency, but is very useful in counters and code where reading the most recent value is critical.

In the following PHP sample, we create an item with the date/time and immediately use a getAttributes with ConsistentRead=true, then a normal getAttributes. The Consistent Read will return the just-updated value while the eventual consistency ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required