dynamoid
dynamoid copied to clipboard
Dynamoid Behavior when GetItem takes >5000ms
Hey I don't know how to test this but what is the expected behavior when DynamoDB drops a GetItem after 5 seconds? Does Dynamoid retry?
Excellent question.
I do not know the specific answer, and would have to investigate to find out. But I can tell you the spirit this code was written in:
Failures at the data store should not be handled by the gem, but should be handled by the caller. Every use case will require something different. Some users may appreciate the timeout (if, in fact, there is one) and handle failures by pushing data elsewhere. Others may have an exponential backoff system in place (as Amazon recommends for when you exceed quota).
I don't think it is the goal of the gem to retry, though it might at some point have that be an option you could turn on (assuming it isn't already there).