teleportd/node-dynamodb — pull request #36 by garo (2012-07-19 12:57:21+00:00)
Title: Entropy in exponential falloff retry and get new STS auth token earlier

Here's two patches which we've found helpful in our environment:

1) Add random entropy to the exponential falloff. This has helped us to handle more extreme load with dynamodb as the retries will distribute into the future, smoothing the peak loads.

2) Request new STS auth token one minute earlier instead of the original two seconds. We have found that sometimes STS request might take longer than two seconds (rarely, but it happens) and also that an EC2 instance clock might be easily drift more than two seconds, resulting in "The security token included in the request is expired".