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).

asked a year ago214 views
1 Answer
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
EXPERT
answered a year 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.

Guidelines for Answering Questions