4. Notification Hub
Notifications to mobile
devices
Queues
Message delivery with
Queues
Topics
Message delivery with
Topics
Relay
Connect on-premise with
Cloud
Windows Azure Service Bus Namespace
Messaging Notification Connectivity
5. Service Bus & Access Control
➔ Each SB-namespace has an ACS-namespace
➔ SB Namespace : [name].servicebus.windows.net
➔ ACS Namespace : [name]-sb.accesscontrol.windows.net
➔ PreconfiguredACS settings
➔ Relying party
➔ Service identity ‘owner’
➔ Cannot be deleted
6
Introduction to Service Bus
6. Service Bus Rights & Claims
7
Introduction to Service Bus
Service Bus defines one
authorization claim type with three
possible values that indicate the
authorized operation(s)
‘net.windows.servicebus.action’
8. What is a Service Bus Relay?
➔ Hybrid scenario
➔ Expose on-premise WCF services
➔ “Relay” connection with 3th party & cloud
➔ ACS security on endpoints
➔ Service BusWCF bindings
Service Bus Relay
17. Service Bus Queues vs Storage Queues
➔ Storage Queue
➔ Unlimited queues
➔ Unlimited queue size
➔ Max 8 KB messages
➔ MaxTime-To-Live = 7 days
➔ NoWCF support
➔ REST only
➔ Windows Azure credentials
➔ No ordering guarantee
18
Service Bus Messaging
➔ Service Bus Queue
➔ Max 10 000 queues in sb-ns
➔ 5 GB queue cap
➔ Max 256KB messages
➔ InfiniteTime-To-Live
➔ WCF support
➔ REST &TCP
➔ ACS roles
➔ FIFO order guarantee
21. Downsides of Push Notifications
➔ Target multiple platforms Code multiple interfaces
➔ No broadcast Send message one-by-one
➔ No recipient filtering
➔ No monitoring
22
Service Bus Notification Hubs
22. How Service Bus Notification HubWorks
Service Bus Notification Hubs
23. Service Bus Notification Hub to the rescue!
➔ Cross-platform out-of-the-box
➔ Works on any backend (cloud or on-premise)
➔ Personalized push notifications
➔ Easy-to-use infrastructure
➔ Delivery patterns
➔ Broadcast
➔ Filter recipient based on tags
➔ Monitoring in portal or by code
24
Service Bus Notification Hubs
29. Queue demo
➔ Creating a queue
➔ Sending a message
➔ Receive / Peeking a message
➔ Forwarding to other queue
➔ Deadlettering
➔ Duplicate detection
Service Bus Messaging
30. Topics demo
➔ Creating a topic
➔ Creating subscriptions
➔ Sending a message from subscription
➔ Receive a message from subscription
➔ Duplicate detection on topic
➔ Deadlettering on subscription
➔ Forwarding to other entity
Service Bus Messaging
Slide Objectives:Explain main differences between Relay and BrokerSpeaking Points:Main difference between Relay messaging and Broker messagingRelay messaging goes through direct, TPC-like connectionBroker manipulate messages (such as stamping) while relay is pass-throughBroker has storage, allowing loose-coupling between the sender and the receiver
Platform dependency – code multiple interfaces in the backendScale – PNS handle needs to be refreshed when app is launched; Most PNSs don’t support multicastingRouting – not able to filter messages by custom criteria unless keeping track of each app