How do I determine if a write succeeded with amazon DynamoDB?
If I do a putItem() which returns a result structure, how do I determine if the write succeeded or failed?
AWS RESTful API is using HTTP status codes for identification of problems.
PutItem returns HTTP code 200 if your item was accepted by DynamoDB for writing. All APIs (incl. PHP and Java) parse these codes and throw exceptions if it’s not 200.
Keep in mind, that code 200 doesn’t mean that you can immediately read this item from DynamoDB. It only means that it’s accepted for writing. Read more about DynamoDB consistency models.
- Database Administration Tutorials
- Programming Tutorials & IT News
- Linux & DevOps World
- Ebook Reviews
- PES Matches, Skills & News