50 likes | 189 Views
Windows Azure Service Bus Topics / Subscriptions. Olav Tollefsen Microsoft Norge AS Email: olavt@microsoft.com Twitter: olavtoll. R. Topics. R. S. R. Topic. Sub. Sub. Sub. R. R. Message Distribution
E N D
Windows Azure Service Bus Topics / Subscriptions Olav Tollefsen Microsoft Norge AS Email: olavt@microsoft.com Twitter: olavtoll
R Topics R S R Topic Sub Sub Sub R R Message Distribution Each receiver gets its own copy of each message. Subscriptions are independent. Allows for many independent ‘taps’ into a message stream. Subscriber can filter down by interest. Constrained Message Distribution (Partitioning) Receiver get mutually exclusive slices of the message stream by creating appropriate filter expressions.
Messaging API Hello World! • varnsm = NamespaceManager.Create(); • nsm.CreateQueue("newQueue"); varclient = QueueClient.Create("newQueue"); • client.Send(new BrokeredMessage { Properties = {{ "Greeting", "Hello World!"}}}); • varm = client.Receive(); • Console.WriteLine(m.Properties["Greeting"]); 1 2 3 <appSettings> <addkey="Microsoft.ServiceBus.ConnectionString" value="Endpoint=sb://[your namespace].servicebus.windows.net; SharedSecretIssuer=owner;SharedSecretValue=[your secret]" /> </appSettings>
Hands-On LAB Step 8