Is it good practice to share application database with Hangfire ?
Are there any issues we can expect when we sharing database for job storage with rest of application ?
Hi Peter -
I’ve seen this done in product a few times with no problem. Hangfire does a good job of not interfering with other things.
There is one problem I have seen with this - if you restore a backup of all your application database, it will include all job history and recurring jobs.
For example - If you restore your application database to a TEST environment - it will include all your recurring jobs. If you run hangfire in your test environment - it will begin running those jobs. This may not be an issue, or could even be a good thing.
This is the only concern I would have storing Hangfire data within your application database.