Azure queue - return timed out messages to the head of the queue -


when message retrieved azure queue not deleted it, messages visibility timeout expires , message (re)added end of queue.

is there way return such messages head of queue instead?

when azure queue messages re-appear, don't sent end of queue. reappear, , @ point, no real guarantee of order. doesn't moved current position; it's visible again. azure storage queues aren't set guaranteed order. no, there's no way force message appear @ head of queue when reappears after invisibility timeout expires.

also, check out this forum answer jai haridas regarding queue message ordering. specifically:

the messages in queue today sorted visibility time. ordering of messages purely depends on when made visible. however, important app not assume fifo order or specific order may change in future. can rely 1) message eligible based on visibility timeout , 2) message processing should made idempotent , use new updatemessage save state

updatemessage() allows modify queue message (e.g.adding breadcrumbs), next time start processing it, can pick @ point beyond "start." note can adjust timeout value, while it's still in possession , invisible, allow keep working on message.


Comments

Popular posts from this blog

c++ - Difference between pre and post decrement in recursive function argument -

php - Nothing but 'run(); ' when browsing to my local project, how do I fix this? -

php - How can I echo out this array? -