Que) What would happen if a single key becomes hot and receives 100x traffic ? How would DynamoDB work? 🤔
----------------------------
Ans) DynamoDB can’t split a partition based on a single key, because it splits based on key range.
Requests to the partition containing this hot key will be throttled since it can only scale to 2x at an instance. Client will possibly get "ProvisionedThroughputExceededException" error.
Very informative article on adaptive capacity. To control adaptive capacity, I wonder if they use something like the PID controller (Proportional–integral–derivative controller), which is used to regulate an output signal based on the input signal and parameters (P, I, and D). Signals here can be throughput. I learnt about the PID controller in my electronics course.
Que) What would happen if a single key becomes hot and receives 100x traffic ? How would DynamoDB work? 🤔
----------------------------
Ans) DynamoDB can’t split a partition based on a single key, because it splits based on key range.
Requests to the partition containing this hot key will be throttled since it can only scale to 2x at an instance. Client will possibly get "ProvisionedThroughputExceededException" error.
Well-written article on DynamoDB capacity unit. Adding this to my notes :)
Very informative article on adaptive capacity. To control adaptive capacity, I wonder if they use something like the PID controller (Proportional–integral–derivative controller), which is used to regulate an output signal based on the input signal and parameters (P, I, and D). Signals here can be throughput. I learnt about the PID controller in my electronics course.