I'm using Hangfire with MSMQ. Here is the setup
- 2 Front-end Servers (for IIS), I will call them web1 and web2
- A 3rd server for Hangfire Windows Service (I'll call it app1)
- A load balancer between them.
Problem
When I tried to access Hangfire dashboard using the hostname (let's say koko.com/hangfire) the message will be enqueued in one of the web servers MSMQs. You can see it in Outgoing MSMQ messages in web1 or web2.
So I did more investigation to know why the message is not moving out from Outgoing Messages.
I simply accessed the dashboard from http://localhost/hangfire in web1 and it works. then I enqueued the jobs from there and it did not work. When I repeat the same process in web2 it works!
Why enqueuing messages from web2 is working but not in web1?! The messages are stuck in web1 Outgoing Queues