Maximum throughput for incrementing an atomic counter in DynamoDB with On-Demand Capacity Throughput default quotas

0

I would like to know, what the maximum throughput in DynamoDB for incrementing an atomic counter would be.

Consider a table with just an id and a counter attribute, so that the overall item size is less than 1K.

I would use something like this UpdateExpression for incrementing the counter:

SET voteCounter = if_not_exists(voteCounter, :startValue) + :incValue

Taking into account the default Throughput Default Quotas for On-Demand Capacity of 40.000 write request units, i would expect to get 40.000 increments per second in the best case. Best case would mean, no other operations would happen on my DynamoDB.

As this is a rather extreme use case i could imagine, that the maximum throughput of 40.000 updates per second can only be reached, if updates are distributed on lots of different items and in my use case throughput would be significantly lower. Therefore i am curious, whether 40.000 increments per second is possible.

P.S.: I am aware that there are approaches for Scaling Distributed Counters but i am just curious for the raw numbers, which are realistic for the use case as descibed above.

AWS
gefragt vor 4 Jahren824 Aufrufe
1 Antwort
0
Akzeptierte Antwort

See https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/bp-partition-key-design.html particularly the 'Isolate Frequently Accessed Items' section.

"If your application drives consistently high traffic to a single item, adaptive capacity might rebalance your data such that a partition contains only that single, frequently accessed item. In this case, DynamoDB can deliver throughput up to the partition maximum of 3,000 RCUs or 1,000 WCUs to that single item’s primary key."

These per-item limits apply to both OnDemand and Provisioned billing modes.

AWS
beantwortet vor 4 Jahren
profile picture
EXPERTE
überprüft vor einem Monat

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen

Relevanter Inhalt