Using Hangfire with remote MSMQ

I’m trying to setup two hangfire instances across two different servers, using MSMQ…

Should this work? Both servers can see the queues through the web interface (although this data may be via the database?), using configuration:

        var storage = new SqlServerStorage("ProductData_Schedule")
            .UseMsmqQueues("FormatName:Direct=TCP:<IP>\hangfire-{0}", new[] {"default"});

But only the 1st server () will pick items off of the queue to process. What am I missing here?

Many thanks,

1 Like