Hi Guys,
We are using a single server storage MS SQL Server and we have multiple servers.
We want to have recurrent jobs on all the servers.
How can we implement this?
I saw multiple solution an Queues in the forum section, but it is not so clear.
Simple variation of the service discovery pattern.
See my answer here:
Assuming you’re indeed referring to a load balancer scenario, this is actually a very simple variation of the Service Discovery pattern.
Every instance of you Hangfire server that starts up, registers an ID unique to that server instance (e.g machine name) in a Db table / Redis dictionary.
When you add a job to the queue that you want to run on all registered servers, you first query whatever store you used for your unique server IDs, get all registered servers and add the same job for each …
bigB
April 4, 2019, 5:56pm
3
Is it not possible to have hangfire server and db running in all servers and clients enques the same job in all the server?
UPDATE:
Solved the problem using different queues on every machine and setting dynamic job in on every server.