Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Best practices for Hangfire on Azure

Tags:

azure

hangfire

I am attempting to migrate an OnPrem solution to Azure. The application uses Hangfire fairly heavily. Hangfire is hosted in a windows service and is backed by SQL Server.

I prefer not to remove this dependency unless absolutely required. (alternatives being functions/webjobs.)

Are there any guidelines/best practices for running Hangfire on Azure?

Barring the differences in storage characteristics, is Hangfire expected to work exactly on azure as it does OnPrem?

On googling + scanning github issues & SO:

  1. People do seem to be using Hangfire on Azure.
  2. Could not find any best-practice/migration documents around this.

Thanks, Partho

like image 771
Partha P. Das Avatar asked Jul 08 '18 13:07

Partha P. Das


People also ask

What is azure hangfire?

It is an open-source framework that helps you to create, process and manage your background jobs, i.e. operations you don't want to put in your request processing pipeline. It supports all kind of background tasks – short-running and long-running, CPU intensive and I/O intensive, one shot and recurrent. Hangfire Stats.

What is hangfire in database?

An easy way to perform background processing in .NET and .NET Core applications. No Windows Service or separate process required. Backed by persistent storage. Open and free for commercial use.

What is hangfire SQL Server?

Hangfire. An easy and reliable way to perform fire-and-forget, delayed and recurring, long-running, short-running, CPU or I/O intensive tasks inside ASP.NET applications. No Windows Service / Task Scheduler required. Even ASP.NET is not required. Backed by Redis, SQL Server, SQL Azure or MSMQ.


1 Answers

If you use Hangfire, I highly recommend you use their Azure Service Bus package. Which switches the polling to Azure SB

like image 104
Sajeetharan Avatar answered Oct 09 '22 02:10

Sajeetharan