Database Reference
In-Depth Information
Tool
Reference Link
Alternator
https://github.com/mboudreau/Alternator/
Ddbmock
https://pypi.python.org/pypi/ddbmock
Client-side AWS https://github.com/perrystreetsoftware/clientside_aws
Injecting failures
When working with services hosted by someone else, we have to rely on the service pro-
vider for everything. I am sure most of the users would surely be concerned about these
things while using Amazon services. While designing any system, we always think about
the failure scenarios as well, and we always consider such a case in our coding to avoid
unexpected behavior of the system.
Today, what would happen to your application if DynamoDB starts giving delayed re-
sponse or if it starts giving provisioned throughput exceeded exceptions and you are not
prepared to handle a sudden burst? It's difficult to imagine, isn't it? So, to answer all such
uncertainties, AWS has provided us with a framework called Request Handlers that allow
you to inject latencies in response. It also allows you to test your code in the case of a pro-
visioned throughput burst.
AWS SDK for Java contains a Request Handler, which can help you test your application
for failures. You can simply inject the latencies, or you can throw a provisioned through-
put and write code to see how your application can handle them if it happens actually.
You can find some more information about the usage and some sample implementation at
the following links:
http://java.awsblog.com/post/Tx3I6AQJJXRW7EO/Injecting-Failures-and-
Latency-using-the-AWS-SDK-for-Java
https://github.com/awslabs/aws-dynamodb-examples/tree/master/inject-errors-
latencies
Search WWH ::




Custom Search