4

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

muthuvel
  • 1,092
  • 10
  • 17

1 Answers1

4

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.

Chris Fulstow
  • 41,170
  • 10
  • 86
  • 110
  • The question asked if you can update the time, not if you can set it when initially writing to the queue – Eric M. Mar 08 '22 at 10:40