# Different Dashboards, Different Databases, Different Redis Db ,shared jobs

**URL:** <https://discuss.hangfire.io/t/different-dashboards-different-databases-different-redis-db-shared-jobs/8933>\
**Category:** question\
**Tags:** redis, queues, dashboard\
**Created:** [January 31, 2022, 12:16pm UTC](https://discuss.hangfire.io/t/different-dashboards-different-databases-different-redis-db-shared-jobs/8933 "2022-01-31T12:16:52Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ali.h](https://dub1.discourse-cdn.com/flex017/user_avatar/discuss.hangfire.io/ali.h/32/1686_2.png) [@ali.h](https://discuss.hangfire.io/u/ali.h)\
**Post date:** [January 31, 2022, 12:16pm UTC](https://discuss.hangfire.io/t/different-dashboards-different-databases-different-redis-db-shared-jobs/8933/1 "2022-01-31T12:16:52Z")

</div>

Suppose we have two different apps with two difference Dashboards one of them uses Redis Database 0 and enqueue Methods in specific Queue named QueueX , and the other app Uses Redis Database 1 and Redis Server with it’s queue named QueueX.  
The first one should only enqueue Some Jobs, then the enqueued jobs should be proceeded in Second Dashboard.  
First app:

```auto
GlobalConfiguration.Configuration.UseRedisStorage("localhost", 
    new Hangfire.Pro.Redis.RedisStorageOptions() 
    { 
        InvisibilityTimeout = TimeSpan.MaxValue,
        Database = 0
    }).UseConsole();

```

Second app:

I think if I established both of them in Single Redis Db then it will works like a charm, but problem is Different Redist Db number.

```auto
appBuilder.UseHangfireServer(new BackgroundJobServerOptions
{
    ServerName = $"ServerX",
    WorkerCount = 2,
    Queues = new[] { "QueueX" }
});
.....
.....
.....
GlobalConfiguration.Configuration.UseRedisStorage("localhost",
            new Hangfire.Pro.Redis.RedisStorageOptions()
            {
                InvisibilityTimeout = TimeSpan.MaxValue,
                Database = 1,
                Prefix = "hangfire:app2:",
            }).UseConsole();

```

and the method in app1 :

```auto
[Queue("QueueX")]
public static void Method1(){}

```

So Scenario is something like below:

Dasboard1 established on Redis Db 0 and then Method1 =\> Enqueue-ed on QueueX at runtime

Dasboard2 established on Redis Db 1 with HangfireServer named ServerX and QueueX.

The `FetchNextJob` here [Hangfire.Redis/RedisConnection.cs at master · HangfireIO/Hangfire.Redis · GitHub](https://github.com/HangfireIO/Hangfire.Redis/blob/master/Hangfire.Redis/RedisConnection.cs) will fetch job based Db prefix not Db number  
Is there a way to enqueue job in pecific Db? or something else.
