ThrottlingException when calling IoT SearchIndex

0

Hi

I have just implemented an api to get the online status for our IoT devices using the SearchIndex operation in AWS IoT. This worked fine during testing, but when it was put into production it failed immediately. I tried manually doing a SearchIndex from the console at the time and got the following error:

> aws iot search-index --index-name "AWS_Things" --query-string "thingName:xxx" --profile yyy

An error occurred (ThrottlingException) when calling the SearchIndex operation (reached max retries: 2): Rate exceeded

How can I find out what the current throttling limit is for this operation?

I found a list of throttling limits in the documentation, but can't see anything that concerns the IoT Index: https://docs.aws.amazon.com/general/latest/gr/iot-core.html#throttling-limits

From our logs found that the API was hit about 90 times per second at the time. We currently have around 430K devices.

We could reduce the load by doing some caching on our side, but without knowing what the limits are, it is difficult to know if that will be sufficient.

Is there perhaps a better way to query the online status of a device?

gefragt vor 2 Jahren515 Aufrufe
1 Antwort
1
Akzeptierte Antwort

Hi,

the SearchIndex API is part of AWS IoT Device Management. You can find the quotas at https://docs.aws.amazon.com/general/latest/gr/iot_device_management.html. The quota is adjustable according to the documentation.

KR, P.

AWS
EXPERTE
beantwortet vor 2 Jahren

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