title: Implementing WebHooks with ServiceStack
body: <p>I'm currently working on a REST service allowing to control and monitor some physical devices.</p>
  
  <p>The corresponding REST API is largely based on principles and ideas you can find in the following article: "<a href="http://bit.ly/16USXhC" rel="nofollow">Controlling and Monitoring Devices with REST</a>". </p>
  
  <p>The monitored and controlled devices can generate some events to which clients must be able to subscribe. My idea was to implement that part using <a href="http://bit.ly/16n6tV7" rel="nofollow">RESTful WebHooks</a>.</p>
  
  <p>So whenever an event arises, my service makes a REST API callback to each subscriber in order to notify it.</p>
  
  <p>My question, now:</p>
  
  <p>What would be a proper way to implement this scenario using ServiceStack (<strong>version 3.9.71</strong>)? </p>
  
  <p>My service must be able to queue subscriptions and dispatch events to subscribers. It must also deal with situations where clients are down or unreachable, and potentially retry sending notifications.</p>
  
  <p>Do I have to implement everything from scratch (using, for example, a ServiceStack hosted <a href="https://github.com/ServiceStack/ServiceStack/wiki/Messaging-and-redis" rel="nofollow">RedisMqServer</a>) or is there already something that goes further in my direction? I've googled around without much success.</p>