O'Reilly logo

Learning AWS - Second Edition by Amit Shah, Aurobindo Sarkar

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Using queues

SQS gives you tremendous power to decouple your architecture. However, resilience is only one part of the story. You can use queues to manage transaction costs. For example, in an application that uses the freemium business model, SQS can trigger auto scaling groups based on your customer types, free or paying. In order to pay customers, you can scale the fleet when there are more than a certain number of requests in the queue or the age of the requests exceed a certain threshold (based on SLAs).

Instead of using queues, you can simplify your architecture further using AWS Lambda service based on S3 event triggers. You can use two buckets—one for incoming input that uses an S3 event to trigger Lambda function for processing and ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required