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
Purpose of Screen: High Level View of the AppFabric as a Relay |
Purpose of Screen: Connect the listener |
Purpose of Screen: Connect the publisher |
Purpose of Screen: Ready to send weather based on zip code |
Purpose of Screen: Listeners automatically popup a window |
Purpose of Screen: The national weather service provides the weather as a web service |
Downloading and Installing
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”