I have seen a lot of people mentioning, that a way to deal with limited WCUs in DynamoDB is to send your requests in a Queue and let the queue insert the data into dynamodb in a way that will not go over your allocated WCUs.
Does anyone have any examples of this? I am currently working with aws lambda in python and nodeJS.
What I understand:
If lambda wants to put 2,000 items into dynamodb and we only have 100 WCUs, instead of having lambda retry and or waiting between each requests.
We can send the items to a SQS queue which will then input the items at a rate of 100WCUs per second.
Is this the right workflow?