I have a request queue and a response queue. I would like to take the message out of the request queue and put it into the response queue. I would like to be able to identify that the same message that was taken out of the request queue has been put into the response queue.
I am using Boto on GAE.
Firstly, I assumed that the message id would be constant. So I read the message from request queue, added the same message object to the response queue and queried the id - SQS had generated a new one.
Secondly, the body of my message is a json object so I added a custom field 'messageId' and generated my own id to store with the queue. But then I saw that there is a limit of reading 10 messages at a time from the queue. In addition, it is not guaranteed that the message will be returned because of the distributed nature of SQS.