Skip to main content

Posts

Showing posts from September, 2018

Windows Service To Manage Worker Processes

In one of my projects I needed to have multiple instance of the same process running in parallel and each one of them if it fails for some reason needs to restart immediately. The idea was to have a message queue, in this case I'm using Azure, and multiple competing consumers (Each process is a consumer). I had differences options: 1. Create multiple windows services that would be managed by the operating system, but the main down side is that whenever I need to scale by increasing the number of consumers I'll have to install a new windows service, likewise if I want to scale down I'd have to stop services. 2. Create a windows service that is in charge of starting and maintaining a certain number of processes running at any time depending on the a configuration file. 3. The third option I've considered is using Azure workers, but I quickly dismissed it when I found out how much it was costing me, since these consumers are running continuously, but if it was for a li...