Reputation: 2539
What is the difference between Receive and Peek in the context of Azure Service Bus Topics?
Upvotes: 3
Views: 6338
Reputation: 24895
So this means you'll use the Peek when your goal is to look at the messages without actually consuming them (maybe you're building a "Queue browser", ... or your process needs to decided if it wants/can consume the message). And you'll use Receive when you're really planning to consume the message and do whatever you need to do with it.
Here is documentation on the PeakLock
and ReceiveAndDelete
values for ReceiveMode
. Note that PeakLock
is the default.
Upvotes: 9