Skip to content

aws iot core client id throttled

0

I want to publish messages to IoT Core through multiple sessions in ec2. But my cloudwatch log shows client_id_throtteld error. I had a DUPLICATE_CLIENTID error before that, so I uniquely changed the client ID this time. But I now have a client_id_throttled error. What should I do?

For your information, my certificate policy is as follows.

{ "Effect": "Allow", "Action": [ "iot:Connect", "iot:ListRetainedMessages" ], "Resource": "arn:aws:iot:ap-northeast-1:ACCOUNT:client/${iot:ClientId}" }

asked 2 years ago529 views

1 Answer
1

Hi. Do you mean the THROTTLE disconnect reason described here? https://docs.aws.amazon.com/iot/latest/developerguide/life-cycle-events.html#connect-disconnect. If so, you can look into the IoT CloudWatch metrics to see particular throttles you may be suffering: https://docs.aws.amazon.com/iot/latest/developerguide/metrics_dimensions.html#message-broker-metrics

If you mean specifically a Connect.ClientIDThrottle reported in CloudWatch metrics, it means you're hitting this limit:

https://docs.aws.amazon.com/general/latest/gr/iot-core.html#message-broker-limits

Enter image description here

In that case, you'll need to change your client logic to not attempt to connect more than once per second.

AWS
EXPERT

answered 2 years ago

EXPERT

reviewed 2 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.