- Newest
- Most votes
- Most comments
It's the same as buying gas. If the price is $4 per gallon and you fill half a gallon, it costs $2.
16 WRUs gets charged 16 / 1,000,000 * $1.25
Hi
No, that's not quite how DynamoDB on-demand billing works. Here's how it actually charges:
- You are billed for the total number of read and write request units (RU) your table consumes per hour, not accumulated towards a million.
- Each request consumes a specific amount of RU depending on its size and type of operation (read vs write, strongly consistent vs eventually consistent).
For example a write request that modifies 1 KB of data consumes one write RU, and a strongly consistent read of 4 KB data consumes one read RU.
So, in your example, if each of your requests consumes 8 RU (which is unlikely), you'll be billed for 16 RU for that hour if those are the only requests made. This billing resets every hour, not every month.
Pricing for On-Demand Capacity - Amazon DynamoDB:
Amazon DynamoDB On-Demand – No Capacity Planning and Pay-Per-Request Pricing
Oh okay, so it's per hour. The documentation page (and product page for that matter) are not clear on that. They just say how much gets charged, but not at what rate. Thank you for your response!
Regarding the last piece of your answer though... Doesn't an eventually consistent read of an item up to 64 KB = 8 read RUs? Unless I'm just butchering the math/logic, isn't it likely to receive 64 KB of data in a single request?
Relevant content
- asked 2 years ago
- asked 2 years ago
- AWS OFFICIALUpdated 3 years ago
- AWS OFFICIALUpdated a month ago
- AWS OFFICIALUpdated 3 months ago
- AWS OFFICIALUpdated 3 months ago
That makes things a tad bit clearer. The problem is, I don't know the rate at which the WRU charge is happening. In other words, how often am I getting charged 16 / 1,000,000 * $1.25? It isn't specified anywhere that I've read. But I got the answer. Thank you for your response!
You can consider the charge as immediate, although the actual bill comes later. The bill may summarize usage as sums of hourly or daily consumption.