Hosting a Hangfire console application on azure

Ali 0 Reputation points
2024-03-07T10:40:21.2733333+00:00

This is more of a suggestion then a technical question. Greetings to you fellow reader, We have a console application that uses hangfire to do something, there is another project hosted on azure which changes the CRON job and updates it, so it's not something static. We need to host this console application, what would be the ideal service to be used on Azure? We are not very familiar to Azure and we have been experimenting with it lately to learn more, and so guiding us to what service could be used in this scenario would be great.

Thank you.

TLDR; What service can be used to host a console application which only uses Hangfire?

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,573 questions
Azure Container Apps
Azure Container Apps
An Azure service that provides a general-purpose, serverless container platform.
327 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
7,284 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. deherman-MSFT 35,011 Reputation points Microsoft Employee
    2024-03-07T20:22:03.48+00:00

    @Ali
    I am not very familiar with Hangfire but here are a few services which might fit your needs:

    • Azure App Service: This is a fully managed platform for building, deploying, and scaling web apps. You can deploy a console application as a WebJob within an App Service. This allows you to run background tasks with the same context and capabilities of your web application.
    • Azure Functions: This serverless compute service lets you run event-triggered code without having to explicitly provision or manage infrastructure. It can be a cost-effective option if your jobs are sporadic or don’t require a continuous background service.
    • Azure Virtual Machines: For more control over the environment where your console .application runs, you can use Azure VMs. This is particularly useful if your jobs are CPU intensive and long-running.
    • Azure Container Instances (ACI): If your application is containerized, ACI provides a way to run containers in Azure without having to manage servers or clusters of virtual machines.
    • Azure Kubernetes Service (AKS): For applications that require orchestration, AKS allows you to deploy and manage containerized applications using Kubernetes.

    There is another Q&A thread here which discusses some options. You also might checkout some of the discussions on the Hangfire forums, like this one.

    For questions about which products and services best fit your workload I highly encourage you reaching out to our sales team.


    If you still have questions, please let us know in the "comments" and we would be happy to help you. Comment is the fastest way of notifying the experts.

    If the answer has been helpful, we appreciate hearing from you and would love to help others who may have the same question. Accepting answers helps increase visibility of this question for other members of the Microsoft Q&A community.

    Thank you for helping to improve Microsoft Q&A!

    User's image

    0 comments No comments