Is it possible to alter /Update Expiration time in Azure Queue?

2.2k views Asked by At

Is it possible to alter /Update Expiration time from 7 days to 10 days or 7 days to 1 day in Azure Queue?

What is the use of PopReceipt and Next Visible field in Azure Queue?

enter image description here

1

There are 1 answers

1
Chris Fulstow On

Yes, when you put a message on the queue you can specify a messagettl value for the number of seconds before the message expires and is automatically removed. The maximum allowed value is 7 days, which is also the default.

If you're using the .NET SDK then you can pass this as a TimeSpan timeToLive argument into the CloudQueue.AddMessage method.

The PopReceipt is an identifier that's used when a message is retrieved and is used by clients to subsequently delete a message once it's been processed. The NextVisible time is also used when a message is retrieved, to indicate when the message will become visible again to all other clients, if it's not first deleted by the client that retrieved it.