I was watching this AWS Certified Developer Associate's training course and got to the section of DynamoDB. Apparently, there are several kinds of calculations to get done during the creation & configuration of a DynamoDB table (different calculations for both Read Unit Capacities and Write Unit Capacities, involving the possible inputs as strongly/eventually consistent reads, or standard/transactional writes), and I was told that this calculation was going to come up on the actual DVA-C01 exam as well.
Thus, I thought of coding out the capacity units calculation program for "fun", although it definitely took me 2 hours to complete... but was worth it.
- RCU (Read Capacity Units) - strongly consistent and eventually consistent reads
- WCU (Write Capacity Units) - standard and transactional writes
No installs or server needed. It runs entirely in the browser.
- Download
dynamodb-calculator.html - Double-click the file to open it in any browser (Chrome, Firefox, Safari, Edge)
- Enter your values and the results update instantly
Requires Python 3.
python capacity_calculator.pyYou will be prompted to enter values for each calculation in the terminal.
| File | Description |
|---|---|
dynamodb-calculator.html |
Web UI - open directly in a browser |
capacity_calculator.py |
Original terminal-based Python script |