Search code examples
hangfire

Monitoring UI when Hangfire server part of seperate process?


Where or how would one get to the Hangfire monitoring UI dashboard if you were to install Hangfire nuget packages as part of a seperate (windows) service?

eg. this
enter image description here

instead of this:
enter image description here


Solution

  • As you can see from the diagram in your question, the bridge between a Hangfire Dashboard and Hangfire background workers is the storage that they share... The Dashboard displays information about the jobs, based on what it sees in the storage, and the background workers execute and report on jobs by reading/writing from/to the storage.

    e.g. If you're using, SQL Server as the storage, then you can have a Dashboard hosted in one web app, and one or more background workers hosted in Windows Service(s), as long as you have them all point to the same SQL Server database.

    Hangfire's documentation is pretty straightforward and describes:


    If it helps, in the repository of Hangfire.Dashboard.Customize you can see examples of a standalone Hangfire Dashboard being hosted inside: