Course contentsShow
← System Design
Lesson 675 of 1,91918. Message Queues and BrokersFree lesson

Azure Service Bus Features

Queues, topics, sessions, and advanced features like duplicate detection and scheduled messages.

Azure Service Bus Features

What you'll learn: How Azure Service Bus provides queues, topics, sessions, and advanced messaging capabilities for enterprise cloud applications.

What Is Azure Service Bus?

Azure Service Bus is Microsoft's fully managed enterprise message broker in the cloud. It builds on the queue and pub-sub patterns you've learned, adding enterprise-grade features for complex workflows and guaranteed delivery scenarios.

Core Messaging Primitives

Queues provide point-to-point communication with competing consumers. Messages wait until a receiver processes them—perfect for work distribution across multiple workers.

Topics enable pub-sub patterns where multiple subscriptions can independently receive copies of messages. Each subscription acts like a virtual queue with its own filtering rules.

Sessions: Ordered Message Processing

Sessions group related messages together, ensuring they're processed in order by the same consumer. Think of a shopping cart: all actions for cart #123 should be handled sequentially by one processor, while cart #456 can be handled by another simultaneously.

Sessions use a SessionId to group messages—only one consumer can lock a session at a time, guaranteeing ordering within that session while maintaining parallelism across sessions.

Advanced Features

Duplicate Detection automatically identifies and discards messages with the same MessageId within a configurable time window—critical when exactly-once processing matters.

Scheduled Messages let you enqueue a message now but delay its availability until a future timestamp. Useful for reminder notifications or delayed retry logic without external schedulers.

Other enterprise features include dead-letter queues for failed messages, message deferral, and transactions across multiple queues/topics.

Key Takeaway: Azure Service Bus extends basic queuing and pub-sub with sessions for ordered processing, duplicate detection for exactly-once semantics, and scheduled messages for time-delayed delivery—essential features for reliable enterprise messaging patterns in the cloud.