We are building a web application on top of the Amazon web services stack, and I still love it.
We also make full use of test-based development, and it also seems fantastic.
I just hope someone can help me with the problem I am having that is related to a possible Amazon SimpleDB sequence.
The best example of a problem is the unit test, which adds the user and then verifies that the user has been added successfully by making a call to retrieve this newly added user.
I could easily continue and just write tests for this, and everything could work fine, but I know about “possible consistency” and that when I make a call to retrieve the user, the user may not actually be added. Obviously, if the fetch select function is called and the user is not logged in, it will return false or fail.
What I would like to know is the best way to handle this? I saw suggestions for creating a function that sleeps for 5 seconds between requests and attempts 10 times. I also saw exponentially biased solutions. What is the best solution?
joelg source share