Read http://docs.geteventstore.com/introduction/competing-consumers/ yesterday and wrote some exploratory code using ConnectToPersistentSubscription API. Wondering if there is any guidance or best practices around connecting clients from a windows service.
For example, I noticed that persistent subscriptions can be dropped for a few different reasons. If I start up a windows service that creates 3 subscriptions, then use the UI to edit the Message Timeout for the subscription, all 3 of those subscriptions get dropped and stop receiving messages. Subscriptions also get dropped when they timeout processing a message, and when the eventstore clusternode process is exited. There are other reasons too, these are just the ones I am familiar with after a day.
In a windows service, I would want to connect up new subscription clients under certain circumstances when existing subscriptions get dropped. Has anybody done this before, any experiences or knowledge to share?
Thanks,
Dan