Your Web News in One Place

Help Webnuz

Referal links:

Sign up for GreenGeeks web hosting
September 18, 2022 02:28 pm GMT

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 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 Brianon 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!


Original Link: https://dev.to/aws-heroes/an-absurd-way-to-try-amazon-dynamodb-on-demand-3clo

Share this article:    Share on Facebook
View Full Article

Dev To

An online community for sharing and discovering great ideas, having debates, and making friends

More About this Source Visit Dev To