Learner
Learner

Reputation: 55

Azure Service Bus Message Lock

Suppose in an Azure Bus which is working in Peek-Lock Mode there is a default lock period of 30 Seconds.

Does this mean that if a message entered lock in period , then during the lock period next message is also not available to other consumers?

Does a deferred Message is available to other consumers or is it moved to separate queue?

Upvotes: 1

Views: 468

Answers (1)

Gaurav Mantri
Gaurav Mantri

Reputation: 136126

Does this mean that if a message entered lock in period , then during the lock period next message is also not available to other consumers?

No, only the message that has been locked is not available to other consumers.

Does a deferred Message is available to other consumers or is it moved to separate queue?

The deferred message remains in the same queue and will not be available to any consumer. From this link:

When a queue or subscription client receives a message that it's willing to process, but the processing isn't currently possible because of special circumstances, it has the option of "deferring" retrieval of the message to a later point. The message remains in the queue or subscription, but it's set aside.

Upvotes: 2

Related Questions