4 ms·
"Your business has millions of customers and no single customer can do so many actions so quickly that the individual could create a hot key. Under this key you
by cherioo 9y ago
"Your business has millions of customers and no single customer can do so many actions so quickly that the individual could create a hot key. Under this key you are storing around 2KB of data.
...
Potentially getting 1–5 requests per second for a given second but certainly not a sustained load of that.
...
This will not work at scale in DynamoDb."
What? Why? Suppose that's 5 million customers, you will only have a 10GB table which fits in a single DynamoDB shard, with no sharding. With the restriction of 1-5 operation per customer per second, this sounds like the ideal use case for DynamoDB.
What am I missing?
- fragsworth 9y agoAmazon is limiting it to 5 operations per second per shard, not per customer. That is if you have 200 shards and 1000 write capacity. It's a problem with how Amazon calculates your capacity units as it scales up Dynamo for you, if you have a particularly large data set with a few very active users.
- phamilton 9y agoThe parent post is suggesting that 5 Million customers does not in any way imply 200 shards. It's much more likely that with 5M customers you have 1 or 2 shards. That's 4KB (one document) per customer.