A LIFO queue can manage this load, by prioritizing validation of newer connection events. A legacy system validates the IP addresses, but its throughput capacity cannot match the peak connection rate of the IoT devices. If the validation work is not done at connection time, it can be done later. Users open the application soon after the device connects so the most recent connection events should take priority for the validation work. As part of optimizing the responsiveness of a mobile application, an IoT application validates device IP addresses after connecting to AWS IoT Core. To help understand the approach, consider the following use case. This is useful when your workload must communicate with a system that is throughput-constrained and newer tasks should have priority. Under heavy load, earlier tasks are deprioritized and eventually removed. The LIFO task queue gives priority to newer queue tasks over earlier tasks. This uses AWS Lambda, Amazon DynamoDB, AWS Serverless Application Model (AWS SAM), and other AWS Serverless technologies. This post shows how to implement a serverless LIFO task queue. However, there are use cases where you need a LIFO (Last-In-First-Out) queue. Both queue types give priority to tasks created earlier over tasks that are created later. When implementing a task queue, you can use Amazon SQS standard or FIFO (First-In-First-Out) queue types. This post was written by Diggory Briercliffe, Senior IoT Architect.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |