servicebus - Temporarily hiding a message in azure service bus queue/topic -
i have scenario of messages depend no completion of messages completed. there precondition set of messages processed message should processed first. precondition message long running process can take 30 minutes process.
what hide message lets 5 minutes subscribers when sense precondition not complete , after 5 minutes available again , hidden next 5 minutes if cant processed , on.
i can see can use sessions , defer solution not want go way. since require maintain storage keep defered messages in non queue storage.
another way peak lock on message , leave alone , let lock expire in due time reappear in queue.
is there better way of doing this?
there couple ways achieve this. when message can choose defer it. remove active queue , have later ask message messageid. scenario may possible use scheduled messages (see below) involve receiving message , scheduling 1 using following: http://msdn.microsoft.com/en-us/library/windowsazure/microsoft.servicebus.messaging.brokeredmessage.scheduledenqueuetimeutc.aspx
Comments
Post a Comment