teleportd/node-dynamodb — pull request #26 by garo (2012-03-08 12:16:35+00:00)
Title: Implemented simple operation retry on configured provisioned throughput exception

We implemented a simple retry logic with exponential delay when an operation failed due to the configured provisioned throughput exception.

The logic is configured with two constructor options: retries and delay. The first specifies how many times the operation is tried out and the second the first delay. Sub sequential delays are calculated as retryCount^2 * delay.

We're currently trying this out on our production cluster and it seems to work just fine with the specified default values of five retries and 10ms starting delay.