Azure Service Bus Demo

C# .NET · MVC · Azure Service Bus · Managed identity

Service Bus queue

Send messages to the queue demo-asb-queue, peek at what is waiting, then receive one with a peek-lock and decide its fate: complete, abandon or dead-letter.

Azure Service Bus queues icon

1Send

Adds a new message to the queue. New messages start with a delivery count of 0.

2Peek

Reads up to 10 messages without locking or removing them, and without adding to their delivery count.

Body Message ID Sequence Deliveries Enqueued
The queue is empty. Send a message to see it here.

3Receive (peek-lock)

Locks the oldest message for processing without deleting it. This creates a lock token and starts the "locked until" countdown. While a message is locked, peeking can't see past it until it is unlocked.

Still to do

Scheduled messages, so a message can be retried later instead of straight away.