Understanding the AppFabric – Implementing the Publish & Listen

Weather Station

This app uses the service bus and does not need to be deployed to the service bus.

It simply uses the AppFabric as a "relay" for publishers to communicate with consumers in a many to many fashion.

It demonstrates AppFabric’s Service Bus in a cool way, specifically using a binding that supports multicast eventing and allows N event publishers and M event consumers to rendezvous at the same endpoint.

In my example, multiple publishers get weather (based on a zip code) and publish it to multiple listeners. Once the listener gets the weather, it pops up a window with the weather information it received.

This application gets the weather from the a web service at the National Weather Service and simply “relays” the weather to listeners.

Uses WPF. You can run any number of publishers and consumers at the same time.

Demo Video

hyperlink

https://brunoblogfiles.com/videos/azure/WeatherStation.wmv

 

Purpose of Screen: High Level View of the AppFabric as a Relaysnap0292How To Get This Screen: : Not applicable

 

Purpose of Screen: Connect the listenersnap0294How To Get This Screen: : Click Connect to Service

 

Purpose of Screen: Connect the publishersnap0295How To Get This Screen: : Click Connect To Service

 

Purpose of Screen: Ready to send weather based on zip codesnap0296How To Get This Screen: : Type in a zip code and click "Send Weather Report"

 

Purpose of Screen: Listeners automatically popup a windowsnap0297How To Get This Screen: : This is a wpf application that uses the service bus

 

Purpose of Screen: The national weather service provides the weather as a web servicesnap0298How To Get This Screen: : Not Applicable

 

Downloading and Installing

hyperlink[4]

https://brunoblogfiles.com/zips/weathestation.zip

 

Instructions to run:

Run MulticastHost.exe first (Weather Station Billboard)

- Click “Connect to Service”

Run MulticastSample.exe (

- Type in a zip code

- Click “Connect to Service”

- Click “Send Weather Report”