简体   繁体   中英

AWS IoT MQTT setup quota and throttling per client

Is there any way setup quota and throttling such as ApiGateway for AWS IoT? I want to avoid a situation where clients will send a huge number of messages to MQTT, for example, I would like to limit messages sent to MQTT to 1 message per second.

Similar question with body validation (structure and size).

Of course, I can use lambda and ApiGateway and then send message to MQTT, but it seems to me that this is an overhead

Perhaps there are some best practices?

For the throttling part, I have used API Gateway with api key and usage plan . You don't need a lambda, api gateway can be integrated with AWS IoT service directly for publish. The structure of the request can be validated using request validation in API Gateway .

Now, if you also need to check the content length, then you would need to have a lambda to validate it. Or you can use AWS WAF .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM