Your SlideShare is downloading. ×
Windows Azure Service Bus
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply

Windows Azure Service Bus

1,247

Published on

Windows Azure Service Bus overview.

Windows Azure Service Bus overview.

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

  • Be the first to like this

No Downloads
Views
Total Views
1,247
On Slideshare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
6
Comments
0
Likes
0
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

  • 1. 06/09/2012Ревенков ПавелEPAM Cloud Computing Competence Centerpavlo_revenkov@epam.comWINDOWS AZURE SERVICE BUS
  • 2. ОБМЕН СООБЩЕНИЯМИ Worker-роль Web-роль Очередь Worker-роль Web-роль Worker-роль Очередь #1 Worker-рольWeb-рольWeb-роль Topic … Worker-роль Очередь #N Worker-роль
  • 3. СРАВНЕНИЕ Windows Azure Windows Azure Queues Service Bus Queues• Размер сообщения до • Размер сообщения до 64 Кб 256 Кб• Размер очереди ограничен • Размер очереди не может размером Storage Account превышать 100 ТБ 5 ГБ• Механизм обмена сообщениями: • Механизм обмена сообщениями: one-to-one Publish/Subscriber• Время жизни сообщения: • Время жизни сообщения: До 7 дней Более 7 дней• Обновление сообщения «на лету» • Сообщение не изменяется
  • 4. УПРАВЛЕНИЕ URI вида:  sb://<namespace>.servicebus.windows.net/ Namespace Manager Управление Queues Topics Subscriptions Send Receive
  • 5. ПРИНЦИП РАБОТЫ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();}
  • 6. SERVICE BUS RELAY Рабочая роль Веб-рольWCF-сервис Клиент
  • 7. НАСТРОЙКА Вся настройка сводится к правке .config файла! <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. ССЫЛКИ И МАТЕРИАЛЫHow to Use the Service Bus  https://www.windowsazure.com/en-us/develop/net/how-to- guides/service-bus-queues/  https://www.windowsazure.com/en-us/develop/net/how-to- guides/service-bus-topics/Hybrid Application Using Service Bus Relay  https://www.windowsazure.com/en- us/develop/net/tutorials/hybrid-solution/Windows Azure Queues and Windows Azure Service BusQueues - Compared and Contrasted  http://msdn.microsoft.com/en- us/library/windowsazure/hh767287.aspx
  • 9. QUESTIONS?

√ó