Windows service equivalent

+3 votes
Hi,

I have to create new windows service in .net that should always be running and interact with some webAPI. So now instead of going for .net windows service and am looking for its equivalent in Azure. I came across Web jobs and Azure functions. Can someone help me with which one is best suited for my requirement here .
Aug 10, 2020 in Azure by sonalMis
• 160 points
1,568 views

1 answer to this question.

+1 vote

You can probably look at continuously-running web jobs. 

Refer to Running Background tasks with WebJobs on Microsoft Azure

Some other alternate options include PaaS cloud services worker roles and Azure Service Fabric reliable services - but these are likely overkill if you just want a basic service.

answered Aug 10, 2020 by Sirajul
• 59,230 points
And how about using Azure functions? Does it has limitations for developing such services?
Azure functions seems like a good option when your use case involves something like migrating windows services into something cloud based. These azure functions can be triggered by a timer and so like a windows service can be scheduled at a certain time of the day.

Hope this helps!

There are actually a lot of ways to achieve your use case. You could probably choose any of these to achieve your goal.

  • Install your service as you always have, in a Windows Server VM

  • Run your code, without the Windows Service wrapper, in a VM (either Windows or Linux, depending on language)

  • Pull your core code out of the service, and run it within a web/worker role (cloud service).

  • Run your code in a WebJob.

  • Run your code in a Web App (you'd need to add some way to get to it, like a REST API sitting in front of it. 

Related Questions In Azure

0 votes
1 answer

Are Docker and Azure Service Fabric both the same?

It's confusing since Docker (the company) is ...READ MORE

answered Jun 1, 2018 in Azure by null_void
• 3,220 points
2,679 views
0 votes
1 answer

How to choose between Azure App Service and Azure Service Fabric?

Microsoft has created the document with a comparison for ...READ MORE

answered Jun 13, 2018 in Azure by null_void
• 3,220 points
2,280 views
0 votes
1 answer

How can I use “Azure File Storage” with Web App Service?

If you're looking for mapping a drive ...READ MORE

answered Aug 11, 2018 in Azure by null_void
• 3,220 points
4,142 views
0 votes
1 answer

Azure Service Fabric vs Azure Container Services

Beside the link you pasted for "Choosing ...READ MORE

answered Sep 24, 2018 in Azure by null_void
• 3,220 points

edited Oct 7, 2021 by Sarfaraz 1,251 views
0 votes
2 answers

Which should i use for ASP.NET MVC Development: Windows Azure or Amazon EC2?

Both the cloud platforms have slightly varied ...READ MORE

answered Mar 7, 2019 in Azure by Prerna
• 1,960 points

reshown Mar 7, 2019 by Vardhan 1,015 views
0 votes
1 answer

How to install Windows Azure Storage Emulator?

There may be an issue with the ...READ MORE

answered Mar 7, 2019 in Azure by Prerna
• 1,960 points
2,663 views
0 votes
1 answer

How to set default Web page for a website on Microsoft Windows Azure?

This blog post should resolve your issue: http://blogs.msdn.com/b/cesardelatorre/archive/2010/07/22/how-to-set-a-default-page-to-a-windows-azure-web-role-app-silverlight-asp-net-etc.aspx Look ...READ MORE

answered Mar 27, 2019 in Azure by Prerna
• 1,960 points
2,868 views
0 votes
1 answer

How to add a body to a HttpWebRequest that is being used with the Azure Service management API?

The following code should help: byte[] buf = ...READ MORE

answered Apr 3, 2019 in Azure by Prerna
• 1,960 points
2,493 views
0 votes
1 answer

Can I provision an Azure service without using the portal?

Yes, It is possible to provision the ...READ MORE

answered Dec 27, 2019 in Azure by Sirajul
• 59,230 points
646 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP