DynamoDB Pricing OnDemand vs Provisioned Throughput

I’m developing an app and found that my dynamodb costs were surprisingly high. The usage pattern is pretty much “no usage” and then “sometimes a little usage” because I’m still in development (I’m using Amplify and it creates multiple stacks and sets the Provisioned throughput to 15 RCU / 15 WCU).

So, I changed Provisioned Throughput to OnDemand throughput and I’m expecting a bill of pretty much $0.00 during the dev phase. I just wanted to post here to confirm that my understanding is correct and also let others know that they can save costs like this. (Is my understanding correct?)

I believe that OnDemand is cheaper than autoscaling because even 1/2 WCU or RCU has some hourly cost associated and the savings don’t outweigh the sparse nature of a dev application.


Related discussions:

https://www.keithrozario.com/2017/12/writing-millions-of-rows-into-dynamodb.html

That’s an interesting read.. I didn’t know about auto-scaling’s inefficiency. Other than that, though, I wasn’t able to glean any information about my question.. is there something that I’m missing?

No I knew its unrelated but you should learn what “on-demand” really means. If you do a high throughput in your dev environment several times a day even tho while its for a few minutes. You might end up being charge by a high capacity unit usage.

OnDemand is the way to go imo unless you are dealing with significant scale. It technically costs more, but unless you have the finger on the pulse of your usage patterns, AutoScaling/Provisioned Throughput will usually end up costing more. Not to mention the fact that OnDemand gives you the luxury of just not having to think about it. Your assertion is correct in that you should end up spending close to nothing based on your use case

Much appreciated, thanks!

My bill went way down when I switched to on-demand - my usage was similar to yours (though its a production load, not dev), lots of time nothing, and then bursts a few times a week in response to mass mailings that clients may do on a random basis - on demand saved me about 90%, though it was 90% of a not very big number to begin with.

Similar experience. I started saving more than 90%+ of my Dynamo costs. About $2000 saved every month. My usage was just like yours, mostly light-weight, heavy 2 days a month.

Ah, got it, thanks!

From personal experience, I’d agree with every point here.

Yeah, the only reason to use Autoscaling at this point is if you have known usage patterns within a narrow window and are OK with failures outside of that window in order to control costs.