IoT MQTT Usage Plan (throttling and quota) for clients

0

Is there any way create Usage Plan such as ApiGateway for AWS IoT MQTT? I want to control how many messages are sent by clients. Similar question with body validation (structure and size).

已提问 1 年前217 查看次数
1 回答
1

Hi,

at the time being AWS IoT does not provide any functionality to create a usage plans. You can monitor the number of messages sent by clients (either with your own solution or using Device Defender to detect anomalous behaviour) and implement counter-measures, such as disabling the certificates associated to the misbehaving devices.

In terms of payload validation, you can perform validation in the AWS IoT Rule via a Lambda function or by checking that expected fields are present in the message and possibly have the right values using the WHERE clause. In case the message is not valid it will be ignored. You can monitor the number of invalid messages by comparing the rule metrics against the rule action metrics, since actions are executed only if the WHERE clause matches, ie the message is valid.

Cheers,

Massimiliano

AWS
专家
已回答 1 年前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则