cookie-cutter
cookie-cutter copied to clipboard
Using QueueMetadata fields to represent different data and types
We are using QueueMetadata.VisibilityTimeout
to pass in the number of seconds for the visibility timeout and to return the timeNextVisible
date in the format of "Tue, 21 Apr 2020 16:33:23 GMT"
Similarly we are using QueueMetadata.TimeToLive
to pass in the number of seconds for a message’s time to live and to return the expirationTime
date in the format of "Tue, 21 Apr 2020 16:33:23 GMT"
We should instead add QueueMetadata.TimeNextVisible
and QueueMetadata.ExpirationTime
.
This can potentially break downstream users if they use the current metadata to access timeNextVisible
and expirationTime
.