Cost comparisons of DynamoDB: Provisioned vs On-demand

0

Hi all, I'm trying to get my head around trying to use DynamoDB cost effectively. I'll be a bit simplistic here, so forgetting any subtlety of sizes of data to read/write etc. As I read it: On-demand costs are $1.46 per 1m writes and $0.297 per 1m reads. Whereas provisioned costs are $0.000772 per write and $0.0001544 per read.

Normalising to cost per million units gives:

On-demand Write $1.46 per 1m
On-demand Read $0.297 per 1m
Provisioned Write $772 per 1m
Provisioned Read $154.4 per 1m

I must be missing something here, Anybody?

Thanks, K

Edited by: Kabaman on Jun 4, 2019 4:13 AM

Edited by: Kabaman on Jun 4, 2019 4:13 AM

Kabaman
질문됨 5년 전500회 조회
3개 답변
0

Yes I think you missed the points of the difference between the two.

Provisioned means you have a max number of writes/reads per second your table can do, you do not pay per-read, you pay per hour, this is ideal if your table is going to have a predictable traffic, it gets better with the auto scaling, so let's say you have double the traffic during the night, that still is a predictable scenario and provisioned with auto scaling is the best solution.

Now the on-demand is when you have no idea how your traffic is going to come, maybe you get a sudden surge of 1 million requests in one hour but no requests on the rest of the day, provisioning for this would end up too expensive or unreliable as it could throttle.

Remember that provisioned will throttle if you don't have enough RCUs, and your request will fail.

mojimi
답변함 5년 전
0

The provisioned throughput costs are for reads or writes per second for one hour. So given your example of $0.0001544 per read, if you use all of your provisioned throughput you can do 3600 reads at one per second over an hour, so the per read price is $0.000000042888889 ($0.0001544/3600), or about $0.043 per million reads.

답변함 5년 전
0

Mis-read info, thanks.

Kabaman
답변함 5년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠