I am having aws lambda with two sqs triggers: queue1 and queue2. Is it possible to make aws lambda to prioritise events from queue1 over queue2?
If yes, how can I do that. Please share any samples or documentation link for doing this.
I am having aws lambda with two sqs triggers: queue1 and queue2. Is it possible to make aws lambda to prioritise events from queue1 over queue2?
If yes, how can I do that. Please share any samples or documentation link for doing this.
We point both queues to the same Lambda Function. When the function is invoked, check if its source is the priority queue. If it is, process it. If it isn't, check if messages are available on the priority queue. If there are, return the current message to its queue. If there aren't, process the message. Repeat. https://bitesizedserverless.com/bite/implement-the-priority-queue-pattern-with-sqs-and-lambda/