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

demandé il y a un an217 vues
1 réponse
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
répondu il y a un an

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions