# Settings Hangfire for Web Farm

**URL:** <https://discuss.hangfire.io/t/settings-hangfire-for-web-farm/1766>\
**Category:** question\
**Created:** [February 8, 2016, 7:11am UTC](https://discuss.hangfire.io/t/settings-hangfire-for-web-farm/1766 "2016-02-08T07:11:26Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kpohodyaschiy](https://avatars.discourse-cdn.com/v4/letter/k/a88e4f/32.png) [@Kpohodyaschiy](https://discuss.hangfire.io/u/Kpohodyaschiy)\
**Post date:** [February 8, 2016, 7:11am UTC](https://discuss.hangfire.io/t/settings-hangfire-for-web-farm/1766/1 "2016-02-08T07:11:26Z")

</div>

Hello.  
I have 2 farm-server for app working on single Server just for zero downtime during update.  
While first is working i update second, warm it and switch traffic to second.

Hangfire work with MSMSQ+SQL server.

Should i create 2 queues (each for every Hangfire-server instance) ?  
Or 2 HF-servers can work through single queue without interfere each other?

Can you show sample of cinfiguration?

My current config is:

` GlobalConfiguration.Configuration  
.UseSqlServerStorage(“DB”)  
.UseMsmqQueues(@".\private$\hangfire-{0}", “default”)

```
            app.UseHangfireDashboard();
            app.UseHangfireServer();`
```
