An Absurd Way to Try Amazon DynamoDB On-Demand

There are different ways to learn and test Amazon DynamoDB on-demand and test how the database processes requests without capacity planning. There are conventional ones, where you follow the AWS documentation and “start 1,000 Lambda functions in parall…


This content originally appeared on DEV Community 👩‍💻👨‍💻 and was authored by Renato Losio

There are different ways to learn and test Amazon DynamoDB on-demand and test how the database processes requests without capacity planning. There are conventional ones, where you follow the AWS documentation and "start 1,000 Lambda functions in parallel to generate load on the API endpoint, using random HTTP methods and random data for the item".

Or you can try a more absurd way to demonstrate how the write capacity and your billing are predictable in an on-demand mode. You can cycle the Tour de France from Briançon to Alpe d'Huez, invoking a Lambda function to generate the required load and match the profile of the stage. Climbing the legendary and gruelling Col du Galibier and Col de la Croix de Fer on two wheels is significantly harder than on DynamoDB.

ConsumedWriteCapacityUnits
ConsumedWriteCapacityUnits on the Tour de France

Lambda Invocations

Lambda Invocations on the Tour de France
The correlation between the ConsumedWriteCapacityUnits that we pay on DynamoDB - as there is no provisioned one - and the Lambda Invocations metrics is pretty striking. And they both match the route we had to cycle.

Conclusions

DynamoDB is indeed elastic but It is just a game, do not take me too seriously. Now go out there and start cycling!


This content originally appeared on DEV Community 👩‍💻👨‍💻 and was authored by Renato Losio


Print Share Comment Cite Upload Translate Updates
APA

Renato Losio | Sciencx (2022-09-18T14:28:53+00:00) An Absurd Way to Try Amazon DynamoDB On-Demand. Retrieved from https://www.scien.cx/2022/09/18/an-absurd-way-to-try-amazon-dynamodb-on-demand/

MLA
" » An Absurd Way to Try Amazon DynamoDB On-Demand." Renato Losio | Sciencx - Sunday September 18, 2022, https://www.scien.cx/2022/09/18/an-absurd-way-to-try-amazon-dynamodb-on-demand/
HARVARD
Renato Losio | Sciencx Sunday September 18, 2022 » An Absurd Way to Try Amazon DynamoDB On-Demand., viewed ,<https://www.scien.cx/2022/09/18/an-absurd-way-to-try-amazon-dynamodb-on-demand/>
VANCOUVER
Renato Losio | Sciencx - » An Absurd Way to Try Amazon DynamoDB On-Demand. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2022/09/18/an-absurd-way-to-try-amazon-dynamodb-on-demand/
CHICAGO
" » An Absurd Way to Try Amazon DynamoDB On-Demand." Renato Losio | Sciencx - Accessed . https://www.scien.cx/2022/09/18/an-absurd-way-to-try-amazon-dynamodb-on-demand/
IEEE
" » An Absurd Way to Try Amazon DynamoDB On-Demand." Renato Losio | Sciencx [Online]. Available: https://www.scien.cx/2022/09/18/an-absurd-way-to-try-amazon-dynamodb-on-demand/. [Accessed: ]
rf:citation
» An Absurd Way to Try Amazon DynamoDB On-Demand | Renato Losio | Sciencx | https://www.scien.cx/2022/09/18/an-absurd-way-to-try-amazon-dynamodb-on-demand/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.