Your SlideShare is downloading. ×
0
Service Bus
Pavlo Revenkov
EPAM Cloud Computing Competency Center
Email: pavlo_revenkov@epam.com
Skype: rp_risingstar
Windows Azure Queue

2
Worker-role

Web-role

Worker-role
Web-role

Worker-role
Windows Azure Services Bus
Worker-role

Web-role

Queue #1

Worker-role
Web-role

Topic

Queue #N

Worker-role

3
4
Windows Azure
Queues

Windows Azure
Service Bus Queues

- No ordering guarantee

- First-In-First-Out

- At-Least-Once d...
Management

5

URI: sb://<namespace>.servicebus.windows.net/
Namespace Manager
Management
Queues

Topics

Subscriptions

Q...
Workflow

6

var namespaceManager =
NamespaceManager.CreateFromConnectionString(
CloudConfigurationManager.GetSetting(conn...
Service Bus Relay

7

Worker-role
Web-role

WCF-service

Client
Configuration
Everything you need is to change “*.config” file!
<extensions>
<bindingExtensions>
<add name=“netTcpRelayBin...
Demo

9
References

10

How to use the Service Bus



windowsazure.com/en-us/develop/net/how-to-guides/service-bus-queues/
windo...
Questions?

11
Upcoming SlideShare
Loading in...5
×

Windows Azure Service Bus

413

Published on

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
413
On Slideshare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
21
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Transcript of "Windows Azure Service Bus"

  1. 1. Service Bus Pavlo Revenkov EPAM Cloud Computing Competency Center Email: pavlo_revenkov@epam.com Skype: rp_risingstar
  2. 2. Windows Azure Queue 2 Worker-role Web-role Worker-role Web-role Worker-role
  3. 3. Windows Azure Services Bus Worker-role Web-role Queue #1 Worker-role Web-role Topic Queue #N Worker-role 3
  4. 4. 4 Windows Azure Queues Windows Azure Service Bus Queues - No ordering guarantee - First-In-First-Out - At-Least-Once delivery - At-Least-Once, At-Most-Once - Message size up to 64 KB - Message size up to 256 KB - Queue size up to 100 TB - Queue size up to 5 GB - One-to-one message delivery - Publish/Subscriber - Time-to-live up to 7 days - Time-to-live unlimited - In-place update - No in-place update
  5. 5. Management 5 URI: sb://<namespace>.servicebus.windows.net/ Namespace Manager Management Queues Topics Subscriptions QueueClient TopicClient SubscriptionClient Send Receive
  6. 6. Workflow 6 var namespaceManager = NamespaceManager.CreateFromConnectionString( CloudConfigurationManager.GetSetting(connectionString)); if (!namespaceManager.SubscriptionExists(path)) namespaceManager.CreateSubscription(new SubscriptionDescription(path)); var subscriptionClient = Microsoft.ServiceBus.Messaging.SubscriptionClient .CreateFromConnectionString(...); var message = subscriptionClient.Receive(); try { ... message.Complete(); } catch (Exception) { message.Abandon(); }
  7. 7. Service Bus Relay 7 Worker-role Web-role WCF-service Client
  8. 8. Configuration Everything you need is to change “*.config” file! <extensions> <bindingExtensions> <add name=“netTcpRelayBinding” type=“Microsoft...NetTcpRelayBindingCollectionElement” /> ... <behaviorExtensions> <add name=“transportClientEndpointBehavior” type=“Microsoft...TransportClientEndpointBehaviorElement” /> ... <behavior name=“sbTokenProvider”> <transportClientEndpointBehavior> <tokenProvider> <sharedSecret issuerName=“[NAME]” issuerSecret=“[KEY]” /> ... <endpoint contract=“<contractname>” binding=“netTcpRelayBinding” address=“sb://<namespace>.servicebus.windows.net/<servicename>” behaviorConfiguration=“sbTokenProvider” /> 8
  9. 9. Demo 9
  10. 10. References 10 How to use the Service Bus   windowsazure.com/en-us/develop/net/how-to-guides/service-bus-queues/ windowsazure.com/en-us/develop/net/how-to-guides/service-bus-topics/ Hybrid application using Service Bus Relay  windowsazure.com/en-us/develop/net/tutorials/hybrid-solution/ Windows Azure Queues vs. Windows Azure Service Bus  msdn.microsoft.com/en-us/library/windowsazure/hh767287.aspx
  11. 11. Questions? 11
  1. A particular slide catching your eye?

    Clipping is a handy way to collect important slides you want to go back to later.

×