QuestionQ88

VerifiedTroubleshooting and Optimization

A company runs an application on AWS. The application uses an AWS Lambda function that is configured with an Amazon Simple Queue Service (Amazon SQS) queue called high priority queue as the event source. A developer is updating the Lambda function with another SQS queue called low priority queue as the event source. The Lambda function must always read up to 10 simultaneous messages from the high priority queue before processing messages from low priority queue. The Lambda function must be limited to 100 simultaneous invocations.

Which solution will meet these requirements?

Explanation

Maximum concurrency on event source mappings limits concurrent invocations per queue. Setting high priority to 10 and low priority to 90 ensures high-priority messages get 10 simultaneous Lambda instances while low-priority gets 90, totaling 100. This gives priority queues dedicated concurrency capacity without code changes.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!