Closed Akavall closed 7 years ago
Your request rate is too high. The AWS SDKs for DynamoDB automatically retry requests that receive this exception. Your request is eventually successful, unless your retry queue is too large to finish. Reduce the frequency of requests and use exponential backoff. For more information, go to Error Retries and Exponential Backoff in the Amazon DynamoDB Developer Guide.
I increased Read and write capacity units from 1 to 3 for both, and the problem seems to went away.
1 read and write should be enough... that really just means 1 r/w per second:
Are we calling it in a loop somewhere?
We read and write as fast as we click on "Take Turn" or "AI Turn". I am pretty sure there isn't anything else. But it is not hard to click faster than once per second (in a normal game flow, not randomly clicking really fast), and then it pauses for couple of seconds to catch up.
After first couple of games, games become really slow.
There is actually an error message:
Look like a simple fix, but would rather explore a little bit before just increasing throughput.