Priority Amazon SQS queue

Is it possible to create a queue of priorities using a simple mass Amazon service representative?

Initially, I could not find anything on this subject, so I created two stages. The total of all and foremost priority. I put the message in the queue in accordance with a certain rule me, but confusion arises during the deletion of messages.

How to make long queues in the poll to my combination queues behave as a priority queue?

+6
source share
2 answers

I think you are on the right track, creating two lines - the usual place and a priority queue.

In this case, you do not need a lengthy interrogation. Because the messages in the priority queue have priority over messages in the normal queue, you can make this approach:

  • Poll priority queue as long as the message is no more.
  • Surveys generally all and repeat step 1 after each post in the normal queue.
+4
source

You can use the Shoryuken and set a higher weight for setting priorities:

queues: - [high_priority_queue, 5] - [low_priority_queue, 1] 
+1
source

All Articles