2. What is Service Bus
Relay Service
Queues
Topics
Notification Hubs
3. Relay Service
Allows communications between applications that cannot see one another
Request/Response with an intermediary
Builds on WCF relay (ws-Relay)
RPC & REST
XML, Binary, Images
Relay Service
(Azure)
External System
Corporate
System
4. Queues
Message-based communication
Messages contain application-specific instructions
Allows loose coupling of systems
Scalable processing of messages
Real World: Xbox Statistics
Client
Message
Message
Message
Processor/Service
5. Two Azure-Based Queues
Windows Azure Messaging Queues (Service Bus)
◦ Up to 256KB message size; Up to 5GB total queue size; max TTL: none
◦ Duplicate detection
◦ Ability to process groups of messages as a unit
◦ Transactional
◦ Guaranteed FIFO
◦ “Peek and Lock” or “Receive and Delete”
Windows Azure Storage Queues
◦ Up to 64KB message size; Up to 100TB total queue size; max TTL: 7 days
◦ “Peek and Lease”
6. SOA Vision
Loose coupling of systems that work together
Distinct autonomous services
Standardized contracts for communications
Well defined messages
Ubiquitous availability
=
7. Topics
Enables Queue-based Pub/Sub model
Subscribers received messages based on filter criteria
A rule contains filter criteria and optionally filter actions – can
change messages
Real-World: SharePoint Workflows
Client
(Publisher)
Message
Message
Message
Processor/Service
(Subscriber)
Filter/Rules
Processor/Service
(Subscriber)
Filter/Rules
8. REST API
Send to Queue/Topic
Receive from Queue/Topic
Filter
https://{serviceNamespace}.servicebus.Windows.net/{path}